Forum Discussion
Former_Member
8 years agoAccelerator III
Hi
I make it but with button with event on click with this code :
var innovator = new Innovator();
var partItem = innovator.newItem("result4","get");
var t4id = document.thisItem.getProperty("t4id");
var t4date = document.thisItem.getProperty("t4date");
var t4name = document.thisItem.getProperty("t4name");
var t4comment = document.thisItem.getProperty("t4comment");
console.log(t4id);
console.log(t4date);
console.log(t4name);
console.log(t4comment);
getFieldByName("text0").getElementsByTagName("input")[0].value=t4id;
getFieldByName("text1").getElementsByTagName("input")[0].value=t4date;
getFieldByName("text2").getElementsByTagName("input")[0].value=t4name;
getFieldByName("text3").getElementsByTagName("input")[0].value=t4comment;
var t5button = getFieldByName("Update");
var lockstatus=document.thisItem.fetchLockStatus();
if (lockstatus===0) {
console.log("the item is locked");
t5button.getElementsByTagName("input")[0].disabled = true;
}
else
t5button.getElementsByTagName("input")[0].disabled = false;
but i want make the changes with out button , i want with save , unlock and close button ?