Skip to main content
1-Visitor
March 25, 2020
Question

Thingworx List Widget auto trigger Selected row changes event

  • March 25, 2020
  • 5 replies
  • 2751 views

I have a Combobox list and binding the list data by a service call after this service called I invoke another service to get selected item and binding again to SelectedText properties of Combobox then the event selected row change of Combobox will auto-trigger.  

How can I avoid this case, because this action will trigger another service in my logics    

 

 

Thanks All!

5 replies

22-Sapphire I
March 25, 2020

If you absolutely need

Service Complete -> Get info -> Set SelectedRow

but need SelectedRow not to trigger the first time, you could .. cheesy as it may be, use some boolean flag to indicate 'First load' and use that into a validator then Selected Row Changed, to either toggle First load or fire the service you want.

vxba1-VisitorAuthor
1-Visitor
May 4, 2020

Thanks @PaiChung ,

 

I will try this solution and let you know.

Community Manager
April 6, 2020

Hi @vxba.

 

If the previous response allowed you to find a solution, please mark it as the Accepted Solution for the benefit of others with the same question.  Or, if you have found your own solution, please post it here and mark that as the Accepted Solution.

 

Regards.

 

--Sharon

1-Visitor
April 6, 2020

could you maybe add a button to run your service and not bind the selected row change to anything at all?

 

Community Manager
April 15, 2020

Hi @vxba.

 

If one of the previous responses allowed you to find a solution, please mark the appropriate one as the Accepted Solution for the benefit of others on the community.

 

Regards.

 

--Sharon

Community Manager
May 20, 2020

Hi @vxba.

 

How did the solution provided by @PaiChung work out for you?  If you found it to be an acceptable solution, please mark the appropriate post as the Accepted Solution for the benefit of others on the community.

 

Regards.

 

--Sharon

vxba1-VisitorAuthor
1-Visitor
May 26, 2020

Hi @slangley  and @PaiChung.

I have attempted to implement this solution but. the big problem is I cannot identify when is the first load

Do you have other solutions or some demo?

 

Thanks!

22-Sapphire I
May 26, 2020

Hi, one way to 'determine' first load is to just have a hidden boolean value or boolean mashup parameter with a default value.

Then you can use the Expression/Validator function to check that value and update it accordingly