Hi thank you for your answer .
I added this command , but the changes not saved , the code is :
var inn = aras.IomInnovator;
var t5id = getFieldByName("text0").getElementsByTagName("input")[0].value;
var t5date = getFieldByName("text1").getElementsByTagName("input")[0].value;
var t5name = getFieldByName("text2").getElementsByTagName("input")[0].value;
var t5comment = getFieldByName("text3").getElementsByTagName("input")[0].value;
var t5button = getFieldByName("Update").getElementsByTagName("input")[0].value;
var innovator = new Innovator();
var partItem = innovator.newItem("result4","edit");
var id = document.thisItem.getProperty("id");
partItem.setID(id);
partItem.setProperty("t4id", t5id);
partItem.setProperty("t4date", t5date);
partItem.setProperty("t4name", t5name);
partItem.setProperty("t4comment", t5comment);
partItem.apply();
partItem.lockItem();
console.log(id);
parent.onSaveUnlockAndExitCommand();
Hi thank you for your answer .
I added this command , but the changes not saved , the code is :
var inn = aras.IomInnovator;
var t5id = getFieldByName("text0").getElementsByTagName("input")[0].value;
var t5date = getFieldByName("text1").getElementsByTagName("input")[0].value;
var t5name = getFieldByName("text2").getElementsByTagName("input")[0].value;
var t5comment = getFieldByName("text3").getElementsByTagName("input")[0].value;
var t5button = getFieldByName("Update").getElementsByTagName("input")[0].value;
var innovator = new Innovator();
var partItem = innovator.newItem("result4","edit");
var id = document.thisItem.getProperty("id");
partItem.setID(id);
partItem.setProperty("t4id", t5id);
partItem.setProperty("t4date", t5date);
partItem.setProperty("t4name", t5name);
partItem.setProperty("t4comment", t5comment);
partItem.apply();
partItem.lockItem();
console.log(id);
parent.onSaveUnlockAndExitCommand();