Hi,
I've written a script to set data in an editable column(CAMU) in a subfile for the program MWS445 and it works well. But when I try to use the related option the screen refreshes and the value is populated again so M3 is unable to recognize the value set by the script.
If I just click on the editable column "CAMU" press enter and try the related option it works. So I added a keypress event after setting the value in CAMU, but it doesn't work. Please let me know if anyone has an idea on how to handle this.
code:
-----
var camuData = {};
camuData[columnCAMU] = this.CAMU;
camuData["id_" + columnCAMU] = "R" + (i + 1) + columnCAMU;
if (ScriptUtil.version >= 2.0) {
const dataset = list.getData();
const data = dataset[i];
data[columnCAMU] = this.CAMU;
list.setData(dataset);
} else {
$.extend(list.getData().getItem(i), camuData);
var columns = list.getColumns();
list.setColumns(columns);
}
this.controller.PressKey("ENTER");
