Access Catalog item variable inside MRVs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-06-2023 03:44 AM
I have a requirement, In which I need to use catalog item variables inside MRVS.
In mrvs, I have one lookup select box, and I want to display values in the lookup select box based on the value of catalog item variable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-06-2023 04:04 AM
no direct way
check this link
SOLVED: Issue with MRVS multi row variable set accessing the form values
also check these links
Accessing other form variables from inside multi-row variable pop-up
Multi Row Variable Set: communication with main form
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-06-2023 09:34 AM
@Ankur Bawiskar is there any way to used catalog item variable in MRVs variables reference qualifier?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-06-2023 09:15 PM
that I already shared in 1st link
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-06-2023 05:02 AM
Hi,
There is actually a "dirty" way to do this, by storing the main g_form object that can then be reused in the MRVS, I did that a long time ago, this looks like this.
OnLoad catalog client script on the item:
this.my_g_form = g_form;
Then you can use it in the MRVS client script like this:
var valueFromItemVar = this.my_g_form.getValue('[VARIABLE_NAME]');