becks2203
2nd February 2018, 06:32
Hi All,

I have made a multi main session.. where I ahve linked one more session
as satellite session .The data displayed is fine and satellite is properly
synced with the main session.But when I press the insert button of main
session the details of satellite session are not refreshed or intialised and still shows the old records..How can I resolve this issue?

Thanks in advance

andreas.toepper
2nd February 2018, 10:31
Search for prcm in the Programmers Guide (see Process Change Manager Code Examples) . Basicaly you need to add a choice.bms section in the script of your child session (the one added in the MMT session).


before.program:
|Listen on changes of tseqs200:
prcm.register("tseqs200")

choice.bms:
on.choice:
if prcm.bms.is.notification() then
on case prcm.get.subject()
case "tseqs200": |* An update is done on table tseqs200
|* Refresh all data on the screen
refresh.all.occs()
break
endcase
endif

becks2203
5th February 2018, 10:47
Hi thanks for replying ..I tried same thing in child session but how to trigger it while inserting the record in parent ??

andreas.toepper
5th February 2018, 13:40
I think it is done with prcm.notify("table"), but I didn't need this in my session because LN will broadcast a trigger message automatically in case of a maintable update (I'm revering to the explanations of the programmers guide here).