- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2019 04:47 AM
Hi all,
Is there a way to get a current catalog item into reference qualifier of variable ? I tried current.sys_id, current.sc_cat_item.sys_id, g_form.getParameter("sys_id") but got no luck.
Solved! Go to Solution.
- Labels:
-
Best Practices
-
Service Catalog

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2019 04:54 AM
Hi,
You have to create a variable like "v_cat_id" and populate its values using onLoad catalog client script:
g_form.setValue("v_cat_id", g_form.getParameter("sys_id"));
Once done, use this variable for reference qualifer.
new SIName().functionName(current.variables.v_cat_id);
Hope this will fit your need!
If I have answered your question, please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.
Thank you
Cheers
Alberto

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2019 05:16 AM
can you try
current.cat_item
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2019 04:19 AM
dvp is spot on.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2020 02:22 AM
Great help! worked exactly as needed

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2020 05:35 PM
looking for a simple but dynamic reference qualifier on a variable set used to cascade variables into order guide component catalog items,
attribute:
ref_qual_elements=u_catalog_item,is_searchable_choice
where u_catalog_item is a field being used to filter the table return of a Lookup Select box, 2nd attribute is to make Lookup Select Box searchable
reference qualifier:
javascript:'u_active=true^u_catalog_itemCONTAINS' + current.cat_item;