Stje_Cro - Monday, March 12, 2012 6:11 AM:
Hi,
i would like to copy a desktop item, apply the changes in form and save it.
I have copied the record and after saved it but i couldn't
apply the changes in the form to the record.
i have used the following script:
var recordId = document.thisItem.getProperty("id");
var copiedItem = top.aras.copyItem("Desktop", recordId);
copiedItem.setAttribute("related_id", document.thisItem.getProperty("recipient_id"));
copiedItem.setAttribute("comments", document.getElementById("item_remarks").value);
copiedItem.setAttribute("desk_actions", document.getElementById("desk_action").value);
var copiedItemId = copiedItem.getAttribute("id");
top.aras.saveItem(copiedItem.getAttribute("id"), true);
Is there any way to apply the changes before save?
Thnaks
PS. we have added some column to "Desktop" table