Skip to main content
Feb 4, 2020 6:13 PM UTC
Question

Collection Widget not displaying data as expected

Hi guys,

 

In Thingworx Version "ThingWorx 8.4.2-b2151"

 

I'm using Collection widget to make a calendar.

 

I have a datatable with "date" column, column type is "DateTime".

 

When use collection widget, i set the sort column to date column, I have a service to load data from datatable by Month(each time it only load 28-31 rows from datatable base on user's choice of month).

 

Collection widget display correctly on default load, date is in order from 1 to the end of month(Service triggered when mashup loaded), but when user select different month, date order is mess up, no longer sort by date column, even user go back to the default loaded month, date order still mess up.

9 replies

Feb 5, 2020 7:58 AM UTC
Hi,

Try to check SortField property of Collection widget to always sort data.

Hope it helps,
Raluca Edu
liweiAuthor
Feb 5, 2020 3:39 PM UTC

Thank you for reply! I did used the sortField, which is my "Date" column. 

Feb 5, 2020 3:24 PM UTC

Hello @liwei ,

 

So you're SortField is binded with date? Can we see this?

liweiAuthor
Feb 5, 2020 3:40 PM UTC

Thank you for reply! Yes it did bind with data, I attached screen shots. I thing I forgot to say is it was working on different server, but it broke after I moved it

Feb 5, 2020 3:45 PM UTC

That is strange, the sorting is done Client-Side and shouldn't be affected. Maybe double check your service.