Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
Is there a way to have the "List" widget display it's list of items in an alphabetical order based on the "DisplayField" value?
You will have to pre-sort the information in the service. There is a service available under the infotable functions called Sort.
Hi Pai,
I'm not sure exactly how to implement what you are suggesting given my current design. I'm populating the "List" widget using the "GetImplementingThingsWithData" service. Simliar to how we did in the training class. How do I pre sort that list?
Loren
Loren,
The best practice is to wrap the ThingWorx-provided
Service
(e.g.,GetImplementingThingsWithData()
) in your ownService
. This will allow you to set more granular permissions and in this case, callGetImplementingThingsWithData()
and pass theInfoTable
returned to theSort()
InfoTableFunction
all in oneService
.– Adam
Hi Adam,
I was able to implement your suggestion above for creating a 'sorted' InfoTable by creating my own service. Thank you. However, when I try and select the property I want in the "DisplayField" of the "List" widget I no longer have access to all the properties like I did when I was using the
GetImplementingThingsWithData()
service on it's own. It seems like the only options for the "DisplayField" are now the list of "Generic Properities". How do I get all the properties to show up?Thanks
Loren