How to change orders of contents in my active items widget

Daichi Ishikawa
Giga Sage

Hi, all!!

I'm trying to develop some widgets on Employee Center and I'd like to change orders of contents in my active items widget.

 

Now, "Task" is located on top position, however I want to set "Request" on top.

 

Does anyone have some answer to this question?

Any help would be greatly appreciated!!

1 ACCEPTED SOLUTION

Twinkle S
Mega Sage
Mega Sage

@Daichi Ishikawa check the HTML section of the widget . You can see some tags which is displaying the data. Search for the Request and place it above the task tag. This should bring the request above the task records.

View solution in original post

4 REPLIES 4

Pushkar-Snow
Mega Guru

Hi @Daichi Ishikawa ,

 

While fetching the records to populate the list of data you can use "orderby" query. 

Please find below URL for code example :

https://developer.servicenow.com/dev.do#!/reference/api/tokyo/server/no-namespace/c_GlideRecordScope...

 

If I am able to help you with your question, Please click the Thumb Icon and mark as Correct. 

 

Regards,

Pushkar 

@Pushkar-Snow 

Thank you for your answer!

I'll remember "orderby" query as my knowledge!!

Twinkle S
Mega Sage
Mega Sage

@Daichi Ishikawa check the HTML section of the widget . You can see some tags which is displaying the data. Search for the Request and place it above the task tag. This should bring the request above the task records.

@Twinkle S 

Thank you for your sharing!! I checked my HTML and I also change Primary field in  the Activity Configurations table [sn_ex_sp_activity_configuration].

 

Create an Employee Center activity configuration

https://docs.servicenow.com/bundle/tokyo-employee-service-management/page/product/human-resources/ta...