As one can get values from the currently active program in a widget deployed as a context app:
infor.companyon.client.registerMessageHandler("inforBusinessContext", (inforBusinessContext: any) => {
this.CUNO = inforBusinessContext.entities[0].id1;
}
Is there a way to communicate back to the program?
We have an address verification widget that will verify an address on CRS610 or OIS002. We can call an API (
/M3/m3api-rest/execute/CRS610MI/ChgBasicData) to update the data, but what if this was an ADD and the record did not exist yet?
Can sendMessage be used in some way?
var infor.companyon.client.sendMessage: (name: string, data: any) => void
For example:
infor.companyon.client.sendMessage("inforBusinessContext", data: [{CUA1: = "675 Sidwell Ct"), {CUA2: "St Charles, IL 60147-3492"]);
If not is there at least some way to trigger a refresh on the currently active screen/tab/program? The data gets updated but the change is not reflected until a refresh (F5) is done. Something like:
infor.companyon.client.sendMessage("m3_crs610_E", data: [{action: = "F5"));