Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X
I have a collection widget whose data items are that of a Mashup (with data tied to an Infotable (with 5 attributes)).
When the page is loaded, I am able to call a service to populate the said infotable, and render the tiles of information (instead of a grid) within the collection widget....! With the volume of data items being presented, I was hopeful in introducing a filter (chip-based filter, for example)... but am not seeing any supporting articles around my use case. Are filters (or pagination) not possible (current OOTB state) for data items presented in a collection widget?
Solved! Go to Solution.
If I understand correctly, you can use a chip based filter or even pagination widget bind it with needed inputs to the service populating the collection. You can cache the applied filter for better performance, On change of filter or page you can invoke the service.
If your data is coming from Mashup parameter, and you dont have control on source, may be you can create a buffer service, that will take the infotable, apply filter or pagination on that infotabel adn return the resul, which then can be bound to the collection.
Hi @Socka_HW
I have checked the KB and found some informative articles as per your need:
https://www.ptc.com/en/support/article/cs360936 , How to create a Pagination Data Service in ThingWorx.
https://www.ptc.com/en/support/article/CS311123
Pls let me know if you need anything further.
Surya_T,
I have perused the referenced articles (posted in response to another (earlier Q) and unfortunately DO NOT apply to my stated use case.
Bottom line... i need assistance on filtering on or paginating data presented as tiles in a collection widget.
thank you...
Hello, generally it would be easier to implement such filtering logic on the server side. In this case, the values of your chips or the page number is passed to the backend as service parameters. Every time you click a chip or change the page, it triggers the service, which only returns what you need to see on the screen. As far as I know, none of that is available out of the box as a standard feature of Collection widget, so you'd need to "manually" put all those filter widgets on your mashup, bind their values with the service parameters and make sure the service is executed every time those filters change.
If I understand correctly, you can use a chip based filter or even pagination widget bind it with needed inputs to the service populating the collection. You can cache the applied filter for better performance, On change of filter or page you can invoke the service.
If your data is coming from Mashup parameter, and you dont have control on source, may be you can create a buffer service, that will take the infotable, apply filter or pagination on that infotabel adn return the resul, which then can be bound to the collection.