- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2022 02:43 AM
Hello!
I have a requirement to add a clone/copy an existing RITM record functionality in the Catalog Item View. The requirement is to add a Copy RITM checkbox. When this is selected, a dropdown variable will show all of the RITM records for the item. Selecting a record will populate all of the variables from the old RITM. Has this been done before?
Please help!
Thank you.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2022 04:50 AM
Yes, its poosible.
function getRITMdata(response) {
var answer = response.responseXML.documentElement.getAttribute("answer");
alert(answer);
var SkipFieldValue = '|requested_by|on_behalf_of'; //here map your variable names which you dont want to copy
var jData = JSON.parse(answer);
for (var key in jData) {
if (SkipFieldValue.indexOf('|' + key + '|') == -1) {
g_form.setValue(key, jData[key], jData['dv_' + key]);
}
}
}
Thanks
Murthy
Murthy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2023 02:30 PM
Can you please connect with me in GMeet?
my id: manichintalapudi9@gmail.com
Murthy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2023 05:40 AM
Hello
I'm sorry, my schedule is crazy. Have you any suggestions on this?
Thanks!