- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-06-2020 06:25 AM
I set a value "ORDERBYu_order^javascript:'u_language='+gs.getSession().getLanguage()" in a Lookup Select Box variable.
Target custome field has fields, u_order and u_language.
I'd like to let users see only the choices filtered by their Language, and sorted by order.
Now users can see all records sorted by u_order in the target table.
Please help me.
Best regards.
Solved! Go to Solution.
- Labels:
-
Service Portal Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-06-2020 06:37 AM
I think Allen A was on the right track, but I would go with:
javascript: 'ORDERBYu_order^u_language='+gs.getSession().getLanguage();
You need to make sure that all of the qualifier is within the quotes and that you are appending with the results of your expression.
If this was helpful or correct, please be kind and remember to click appropriately!
Michael Jones - Proud member of the CloudPires team!
Michael D. Jones
Proud member of the GlideFast Consulting Team!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-06-2020 06:32 AM
Hi,
Can you try:
javascript:"u_language="+gs.getSession().getLanguage()^ORDERBYu_order;
or perhaps:
javascript:"u_language="+gs.getSession().getLanguage()+"^ORDERBYu_order";
The purpose of rearranging what you had slightly, is to see if the javascript needed to be in front and then proceed.
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-06-2020 06:33 AM
Try adding this as an attribute for your reference field:
ref_ac_order_by=u_order
You may need to be showing the order field in your drop down. Let me know if this helps!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-06-2020 06:37 AM
I think Allen A was on the right track, but I would go with:
javascript: 'ORDERBYu_order^u_language='+gs.getSession().getLanguage();
You need to make sure that all of the qualifier is within the quotes and that you are appending with the results of your expression.
If this was helpful or correct, please be kind and remember to click appropriately!
Michael Jones - Proud member of the CloudPires team!
Michael D. Jones
Proud member of the GlideFast Consulting Team!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-06-2020 08:58 AM
Thanks. I guess we'll see. I tested my suggestion in my PDI and it seemed to work, then again I only have one language on it, so we'll see. No errors or anything popped up and it seemed in order.
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!