Same widget showing different results for different pages in Service Portal

jonndoe
Kilo Contributor

Hi guys,

I'm using the simple list widget to display both requests and incidents and they show different results depending on the page they are on. As you can see in the below screenshot, the order is different to each other and some incidents aren't even showing on both. One instance of the simple list widget is on the homepage and the other is on the 'requests' page.(view all jobs from the top nav). I've checked the instance configuration and both of these are identical so I'm at a loss.

Any help is much appreciated.

find_real_file.png

find_real_file.png

JD

1 ACCEPTED SOLUTION

Chuck Tomasi
Tera Patron

While it's tough to tell for sure, Jon - it looks like the same data (21 records), just not sorted. It's somewhat random in each case.



While I see an options.order_by in the code, I don't see it in the option schema itself (possible bug.) You can clone the widget and add an order_by in the option schema and it will use that to sort your lists consistently (or differently based on a field of your choosing.)



Clone a widget


Widget instance options schema


View solution in original post

2 REPLIES 2

Chuck Tomasi
Tera Patron

While it's tough to tell for sure, Jon - it looks like the same data (21 records), just not sorted. It's somewhat random in each case.



While I see an options.order_by in the code, I don't see it in the option schema itself (possible bug.) You can clone the widget and add an order_by in the option schema and it will use that to sort your lists consistently (or differently based on a field of your choosing.)



Clone a widget


Widget instance options schema


Thanks a lot for this, Chuck! That was definitely the way to do it. I added order_direction in the options schema and then gave two options to order - it's now working as expected! Again, thanks for your guidance, really appreciate it!