Altrev
30th May 2019, 02:57
Hi,

I'm in BaaN IVc4, and a need to open a session from script, but I need to open it MODELESS mode (independent).

In IVc4 start.session() command is not available, and zoom.to has no option for modeless mode.

How can I open session and run both in parallel :confused:

Thanks in advance for your help

mark_h
30th May 2019, 14:55
Can you use Activate (http://www.baanboard.com/programmers_manual_baanerp_help_functions_processes_activate)? I usually make the session that called another session wait for the called session to end.

Altrev
30th May 2019, 21:16
Can you use Activate (http://www.baanboard.com/programmers_manual_baanerp_help_functions_processes_activate)? I usually make the session that called another session wait for the called session to end.

Hi Mark_h,
Its just that I need that the main session remains active and independent from the opened session, if I use activate I need to close the opened session in order to use the man session.

mark_h
31st May 2019, 03:58
Well it did not activate like I thought it would. But when I made called sessions zoom type as modeless it did work. So original my original code used wait.and.activate and the called main session zoom type was modal child dialog it did not work. But when I switch the called session zoom type to modeless then both wait.and.activate and activate launched the main session. Then I could go back and launch other sessions. Not sure if the session you are calling you can do that with.