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

Showing few entity names in Dropdown box using DynamicThingTemplate

SOLVED
Highlighted
Aquamarine

Showing few entity names in Dropdown box using DynamicThingTemplate

Hi ,

I am looking to show Entity names in Dropdown box , i have three Things created by adding BaseTemplate as whatever Created ThingTemplate. but in DisplayField of Dropdown widget i have selected name, and its showing me all three Entity or Thing names in Dropdown but i want to show only few (two). Then how it can be done.  plz see added screenshots.

 

Thank you

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: Showing few entity names in Dropdown box using DynamicThingTemplate

Hi @VaibhavShinde 

 

Here are some possible options:

1) Create a service that does the filtering and output only the desired items. Then bind the ouput of this service to the dropdown menu

2) Use the StateField of the dropdown widget. to use this you can for example add a property state to the ThingTemplate with default value enabled, then set it to disabled for the item you want to disabled.

Note that this will only disable the item, that is it won't be selectable but it will still be shown.

 

Hope this helps

Christophe

 

View solution in original post

2 REPLIES 2
Highlighted

Re: Showing few entity names in Dropdown box using DynamicThingTemplate

Hi @VaibhavShinde 

 

Here are some possible options:

1) Create a service that does the filtering and output only the desired items. Then bind the ouput of this service to the dropdown menu

2) Use the StateField of the dropdown widget. to use this you can for example add a property state to the ThingTemplate with default value enabled, then set it to disabled for the item you want to disabled.

Note that this will only disable the item, that is it won't be selectable but it will still be shown.

 

Hope this helps

Christophe

 

View solution in original post

Highlighted

Re: Showing few entity names in Dropdown box using DynamicThingTemplate

Hi @VaibhavShinde.

 

If the previous response answered your question, please mark it as the Accepted Solution for the benefit of others with the same question.

 

Regards.

 

--Sharon

Announcements

Thingworx Navigate content has a new home! Click here to access the new Thingworx Navigate forum!