- 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-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-13-2024 08:38 AM
I have just tried your initial approach with "^ORDERBYu_order" in the reference qualifier in my PDI and it worked!
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 09:47 AM
Hello,
Still did not work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2024 09:48 AM
Windows 11 options should be at the top.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2024 09:58 AM
Hello,
I reversed the order for windows 11 so it was last in list now it is first. I will need to check with the ba to see if having the order visible is ok. Thanks for your help.