andrew_br
18th April 2005, 21:18
Hi all,
I am trying combine 2 sessions in Baan5.
In Baan4 I should use switch.to.process...
Please,
anybody help me...
thanks
NPRao
18th April 2005, 21:35
Andrew,
You can try to use the following options based on your requirement -
substitute.session() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_substitute_sessions_substitute_session)
start.session() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_starting_and_stopping_programs_start_session)
act.and.sleep() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_processes_act_and_sleep)
activate() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_processes_activate)
wait.and.activate() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_processes_wait_and_activate)
andrew_br
18th April 2005, 22:13
Thanks,
It functions fine, but I need that sessions run within of first one(same sales order in baan4).
deepaksachdeva
20th June 2005, 14:55
Andrew,
You can try to use the following options based on your requirement -
substitute.session() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_substitute_sessions_substitute_session)
start.session() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_starting_and_stopping_programs_start_session)
act.and.sleep() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_processes_act_and_sleep)
activate() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_processes_activate)
wait.and.activate() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_processes_wait_and_activate)
Hi NPRao,
Can i have the example with source code of the same used in BaaN 4, if u can provide.
regards
Deepak
andrew_br
20th June 2005, 15:26
Hi,
here is it:
|* In session brpur9101s000
before.program:
if prog.name$ = "brpur9102s000" then
|* this sessions has been activated from brpur9101s000
sattr.combined = combined.top
wait.for.switch()
endif
function alternate.session()
{
if not process.9102 then
process.9102 = activate("brpur9102s000")
|* Load subprocess in memory
endif
switch.to.process(process.9102)
}
function back.session()
{
switch.to.process(parent)
}
br
deepaksachdeva
20th June 2005, 15:50
hi andrew,
tried with the code, in background both the process invoking but, i am not able to see it on screen, as the session tdpur4101s000 is working...
kindly advice.