I have to copy the MVRS table data to the form UI MVRS table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2025 11:53 AM
I have to copy the MVRS table data to the form UI MVRS table, basically what need to acheive is when you select a closed RITM from the dropdown it will auto fill the details from the old RITM and complete the form, but the form have a MVRS that also need to auto populate, please help...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2025 09:51 PM
Yes, you can also copy the MRVS data into the catalog item from the existing RITM mrvs data just by simply returning the mrvs object with mrvs internal name as it will return the data in array json and you can just simply set the value in your client script with same mrvs name.
Sample response looks like:
[ {
"device_type" : "iphone8",
"storage" : "64GB",
"color" : "black",
"quantity" : "1"
} ]
in you CS:
g_form.setValue('mrvs_internal_name', obj); //obj you returned from your script include and replace with actual mrvs internal name
Share your existing CS, so we can modify the same.
Murthy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2025 10:51 PM
so you can use onChange catalog client script on your reference variable and bring the MRVS json data and set it
what did you try so far and where are you stuck?
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