- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2024 10:03 AM
Hello,
I have a requirement to order values on the VDI Pool name variable make application Windows 11(Win 11) appear at the top of the list. I have tried multiple ways to do this but nothing works. I am using the order field on a custom table and have put all 4 order as least value. I tried add order to reference and ref_ac_order_by=u_order Any suggestions? Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2024 08:32 AM
Oh, I was under impression you were using a reference variable. For lookup select box variables, choices are sorted by label in alphabetical order. I am not aware of a way to change it. What you could do, however, is make Order part of the label. Then you would have the desired sorting order. Just set Lookup label field(s) to:
u_order,u_application_name // assuming "Application name" field is "u_application_name"
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2024 11:11 AM
"ref_ac_order_by" variable attribute should work. Remove "^ORDERBY=u_order" part from your reference qualifier and try again.
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2024 01:23 PM
Hello,
Thanks for the reply. This did not work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2024 03:53 AM - edited 08-13-2024 03:53 AM
"ref_ac_order_by" variable attribute only controls the sorting order in the autocomplete box displayed underneath the reference field when you type something in that field, but not in the reference lookup list that is displayed in the popup window when you click on the magnifier icon.
Sorting order in lists depends on several factors. Refer to this article from the product documentation for detailed information. In a nutshell, as an admin, you can preconfigure the default sorting order for a table, but users will be able to change it and their selection will be stored as a user preference and applied automatically the next time they view the same table. So you cannot really control it.
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2024 06:11 AM
Hello,
Thanks for the response. So there is no way to sort a select box variable? This is so crazy that SN won't support this.