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

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

how to set rows with custom order in dropdown Thingworx 9.1.1

VaibhavShinde
16-Pearl

how to set rows with custom order in dropdown Thingworx 9.1.1

Hi ,

I have Datatable which contains 20 rows and i have written service which fetch Machine names from this Datatable and displays in Dropdown , but i want order of rows same which is in Datatable. how to achieve this. if we manage it at dropdown also No issue.

 

Thanks,

Vaibhav 

1 ACCEPTED SOLUTION

Accepted Solutions

If you need to enforce an order, I recommend you add an order field to your DataTable (assuming there is no suitable field to order on available) and then apply sort to that order field.

View solution in original post

3 REPLIES 3

In your service that fetches the data, apply a Sort

Hi @PaiChung ,

If we sort in Service, it will return either Ascending or Descending. I want custom order that is how I have inserted in Datatable

in same order dropdown list should hold. If you elaborate more on this , would be better.

 

Thanks,

If you need to enforce an order, I recommend you add an order field to your DataTable (assuming there is no suitable field to order on available) and then apply sort to that order field.

Top Tags