Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X
Hi,
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!
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.
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.
Sorry I checked and this is part of one of the Thingworx starter apps and not available on the market place
Hi, Leeejw.
Was Pai Chung's suggestion able to get you going on this issue? Please let us know.
Thanks!
-- Craig A.
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