Copy RITM in Catalog Item View

ceraulo
Mega Guru

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.

 

1 ACCEPTED SOLUTION

@ceraulo 

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

Thanks,
Murthy

View solution in original post

16 REPLIES 16

Hi @ColinAngstadt1 

Can you please connect with me in GMeet?
my id: manichintalapudi9@gmail.com

Thanks,
Murthy

Hello

 

I'm sorry, my schedule is crazy.  Have you any suggestions on this?

 

Thanks!