Skip to main content
16-Pearl
August 4, 2021
Solved

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 

PaiChungAnswer
22-Sapphire I
August 5, 2021

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.

3 replies

22-Sapphire I
August 4, 2021

In your service that fetches the data, apply a Sort

Translate
16-Pearl
August 5, 2021

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,

Translate
PaiChung22-Sapphire IAnswer
22-Sapphire I
August 5, 2021

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.

Translate