Hi ALL,
I craeted a button on the command bar and put a javascript file beneath it, to trigger when the button is clicked. The code is below;
var submitReceipt = function (executionObj) {
var formContext = executionObj.getFormContext();
formContext.getAttribute("ntt_submittofinance").setValue(1);
formContext.data.entity.save();
formContext.data.refresh();
};
I just want to set a value and then save the record. Nothing works at when the button is clicked. Please someone with experience should. Thanks in advance for the help.
*This post is locked for comments
I have the same question (0)