cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Very strange behavior for the Event:Parameter of Collection Widget

Pearl

Very strange behavior for the Event:Parameter of Collection Widget

Hi , 

If you set MashupParameterBindings to Collection,for exampe: { "description": "theDesc" },  then the Collection will has a mashup parameter called Event:Description .   

I bind the Event:Description to a express with auto evaluate and hope it can reflect the change of the paramter,  but I feel very confused about the behavior. 

In the inner mashup, I bind the new value to a expression and bind the expression's output to the mashup paramter, what I observed is: 

  • If click via a button then the mashup parameter get changed but the Event:Description's binding expression is not triggered
  • If click via a value display then mashup parameter get changed and Event:Description's binding expression is triggered , but it always reflect the previous value .  If you check the debug info you'll see a data change event is triggered before the value display's click event , although the click event is the first action you performed. 

 

Please try the attached xml file to reproduce the strange behavior: 

1. Input value to New Value field in any cell on the left screen, then click "Button",  you'll see the upper text box get changed but the new description on the right screen doesn't change.

2. This time input value to New Value then click "Click" , repeat twice , you'll see the New description on the right screen always display the previous value . 

 

Is it a bug or designed behavior ? 

 

Regards,

Sean

4 REPLIES 4

Re: Very strange behavior for the Event:Parameter of Collection Widget

Hi @seanccc.

 

Which version of ThingWorx are you running?  We tested under 8.4.2 using the provided mashup, but were unable to recreate the issue you describe.

 

Regards.

 

--Sharon

Highlighted

Re: Very strange behavior for the Event:Parameter of Collection Widget

@slangley ,

My environment is ThingWorx 8.4.2-b2151 + Chrome  76.0.3809.100  + Windows server 2016 + Postgresql 10.x.

 

Did you test it via importing my attached entity.xml ? 

 

regards,

Sean

Re: Very strange behavior for the Event:Parameter of Collection Widget

Hi @seanccc.

 

Yes, we did test it using the .xml you provided.

 

To ensure we're on the same page, can you provide some screenshots of you're configuration and what you're seeing?  You may also want to test it using a different browser.

 

Regards.

 

--Sharon

Re: Very strange behavior for the Event:Parameter of Collection Widget

@slangley ,

 

I found why you cannot reproduce it .  I exported the mashup via tag but for certain reason , not all of the mashup get exported.  

 

Please try the attached new entity.  You'll find a mashup called "CollectionEventParamter" after importing.  Executing the mashup, you'll observe: 

Input value to any "New Value" field on the left screen, then if click Button , the right screen has no changes.  if click "Click", the  "New description" of right screen display the previous value of the "New Value".  

 

I tried in both of Chrome and Firefox,  and got the same result. 

 

Regards,

Sean