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?
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.
-- 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.