How sort in portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2023 12:32 AM
Hello, I need to sort the other column, which is called u_order, but the most important thing is in the portal!!! Please who can help me???
In this meter it is in the portal and you see the "other" so it should be below not above
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2023 01:13 AM - edited 12-27-2023 01:16 AM
Hi,
I think you are using incorrect attribute.
For the user reference variable below is the correct attribute for sorting by last_name.
ref_auto_completer=AJAXTableCompleter,ref_ac_columns=user_name,ref_ac_columns_search=true,ref_ac_order_by=last_name
Check the correct attribute to be used.
Dictionary attributes (servicenow.com)
Thanks and Regards,
Saurabh Gupta
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2023 12:42 AM
C |
If the provided solution meets your needs, kindly consider marking it as helpful and accepting it as the solution. This helps others who may have similar questions. |
Thanks and Regards,
Saurabh Gupta
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2023 12:47 AM
Hi @yardenKrispel ,
In Service Portal, the reference variable list is sorted by the "Name" column rather than the "Order" column even if the table is sorted by Order field.
Resolution
The reference list in Service Portal can be configured to be sorted by Order column using the following steps:
- Navigate to the reference variable.
- Go to the Type Specification section.
- In the Variable Attributes field, add the following: ref_ac_order_by=order
- Save and test on Service Portal.
Ref. https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0743165
Regards,
Sunil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2023 01:45 AM
Check it out, same question as yours.
Sort fields in the record producer form in the portal
Put this line into your Variable Attributes.
ref_ac_order_by=u_order
Cheers,
Tai Vu