Skip to main content
1-Visitor
Oct 11, 2018 10:18 PM UTC
Question

Clearing dropdown selection

Hi,

 

Capture.PNG

I currently have a panel like the picture above, which allows users to type in a new building name and select a site from a dropdown list and add it to the database.

 

After the user clicks the 'Add' button, both the Building name textfield and the Sitename dropdown list should be emptied out. Right now, when a user clicks Add, the Building name textfield becomes empty (I did it binding the textfield to a property and writing a service that changes the property to '  '). But, it does not empty the dropdown list. I have tried using the same method I used for the textfield like binding a property to the selectedText feature of the dropdownlist and setting that to ' ', but this doesn't seem to work for the dropdown widget.

 

How can I achieve this?

Thank you!

5 replies

5-Regular Member
Oct 12, 2018 12:48 PM UTC

Hello.

 

What version of ThingWorx are you using, and which widget? There have been reports of similar behavior which have been fixed in some later service releases. We can maybe determine if you need to update.

 

 

Thanks,

 

-- Craig A.

Translate
22-Sapphire I
Oct 12, 2018 3:25 PM UTC

Actually what is happening is the fact that you are trying to set the value to 'null' but that value doesn't exist in the drop down and so it stays on the previous value.

 

Check the marketplace, there should be an extension to do a 'unselect' on infotable.

If not I can look for it.

Translate
22-Sapphire I
Nov 7, 2018 8:24 PM UTC

Sorry I checked and this is part of one of the Thingworx starter apps and not available on the market place

Translate
5-Regular Member
Oct 23, 2018 6:34 PM UTC

Hi, Leeejw.

 

Was Pai Chung's suggestion able to get you going on this issue? Please let us know.

 

 

Thanks!

 

-- Craig A.

Translate
Support
Nov 7, 2018 7:35 PM UTC

Hi @leeejw717.

 

If the solution provided by @PaiChung resolved your issue, please mark it as the Accepted Solution for the benefit of others who may have the same question.

 

Regards.

 

--Sharon

Translate