- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2019 10:52 PM
I have a used one ui macro in a catalogue item. For one reference field i have used <g:ui_reference tag, how to put reference qualifer in <g tag?
Regards,
Sirraj
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2019 12:11 AM
I have solved this issue by referring below thread,
https://community.servicenow.com/community?id=community_question&sys_id=78da0b6ddb5cdbc01dcaf3231f961998
- Sirraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2019 10:59 PM
Hi Sirraj,
please check below and add filter as per that; you need to set the query attribute
<g:ui_reference name="user" completer="AJAXTableCompleter" id="user_name" table="sys_user" columns="user_name;manager;phone;location" query="sys_idIN${jvar_assigned_to_user}"/>
What is your exact requirement? on some other field you want to show g:ui_reference?
Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2019 11:11 PM
Hi Ankur,
I have one catalgoue. Where i have created two varaiables for example var1 and var2.
var1 is a normal catalgoue variable and var2 is a ui macro variable. Both are reference field refering to two different tables.
var1 is refereing to table1 and var2 is refereing to table2.
whatever value am selecting in var1(normal catalog variable) it should take that value and i need to use that value as a query in my var2 (ui macro variable).
am i confusing?
Regards,
Sirraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2019 11:21 PM
Hi Sirraj,
ok got it
so you can use g_form.getValue('variableName') to get the variable1 value in UI macro <script> tag and then pass this value and apply filter for other.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2019 11:32 PM
Hi Ankur,
I am able to get the var1 value. Issue is how i will set this value as a filter for var2.
Ex: var 1 value am getting is "monitor" from table 1.
I need to set filter for var 2 as "hardware=monitor" ( hardware = value of var1 ) in table 2. How ill convert this value into jelly to set filter.
- Sirraj