Skip to main content
16-Pearl
January 24, 2025
Solved

Infotable sort function / ptc dropdown widget

  • January 24, 2025
  • 3 replies
  • 1013 views

Hello, 

  As you can see in the picture below i sort the results and it give me perfectly fine but when i login into mashup with the user whose is not administrator and part of the usergroup then it does not show this as sorted. 

the user has right on this datatable. there is no error in network tab also for service but still i do not get the results sorted...

 

MA8731174_0-1737726172797.png

 

Best answer by TL_9220870

Because I can't see exactly what you've done and what your service is doing to display the list.

 

More of a general answer from me.

If your output list/infotable was not sorted directly by you, it may be output arbitrarily.

At the end of the service that processes the data, it is important to sort it if you want to receive it in a specific order.

 

result.Sort({
name : "PRIORITY",
ascending : false
});


I created a thing for myself in which I create the infotables under the properties that I would like to have displayed in my mashups.
In order to change the data, it is adjusted once here
and all mashups access the finished lists.

3 replies

Rocko
19-Tanzanite
January 24, 2025

You forgot to mention your TWX version and which widget you use to render the content. Grid, Advanced Grid, Dropdown, List, Collection,... and how you configured those. Will be hard to get a reply this way.

MA873117416-PearlAuthor
16-Pearl
January 27, 2025

My thingworx version is 9.3.7-b1432 and i am using dropdown widget in mashup and i have unselected

 

1) AutoselectFirstRow

2) ClearSelection

3) MultiSelect

 

I have dispalyField and ValueField assing to values from the infotable. Please let me know if any information is required!

 

 

MA8731174_0-1737955442256.png

 

12-Amethyst
February 7, 2025

Hello @MA8731174

 

It looks like you have a response from a community member. If it helped to answer your question, please mark the reply as the Accepted Solution. 

 

Of course, if you have more to share on your issue, please let the Community know so other community members can continue to help you. 

 

Regards,

Abhi

12-Amethyst
January 30, 2025

Because I can't see exactly what you've done and what your service is doing to display the list.

 

More of a general answer from me.

If your output list/infotable was not sorted directly by you, it may be output arbitrarily.

At the end of the service that processes the data, it is important to sort it if you want to receive it in a specific order.

 

result.Sort({
name : "PRIORITY",
ascending : false
});


I created a thing for myself in which I create the infotables under the properties that I would like to have displayed in my mashups.
In order to change the data, it is adjusted once here
and all mashups access the finished lists.

12-Amethyst
February 18, 2025

Hi @MA8731174,

I wanted to follow up with you on your post. Upon further review, we have gone ahead and designated the post we feel successfully answered your question.

In the event that you disagree with the Solution Accepted, please let me know.

Thanks for using the PTC Community! 

Regards,
Abhi