spartacus
13th November 2002, 16:58
Is there a possibility, to get the session code, of the parent process, without setting a var in the parent session?
Spartacus
baanprog
13th November 2002, 23:39
But I wondwer why you want to strain Bshell.
In the child Session you can get the id of the parent session with predefined variable "parent" and then use a shell command to bring the parent session code.
Hope this works
NPRao
13th November 2002, 23:47
You can use the import() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_variables_interprocess_transfer_import) like
import("prog.name$", parent.prog)
or refer to this posting -
can we know the process id of sessions started using AFS? (http://www.baanboard.com/baanboard/showthread.php?s=&threadid=6485)
or Using pre-defined variables in DAL (http://www.baanboard.com/baanboard/showthread.php?s=&postid=19064#post19064)
baanprog
14th November 2002, 00:01
"Is there a possibility, to get the session code, of the parent process, without setting a var in the parent session?"
Import will use a var wont it??
NPRao
14th November 2002, 00:17
"Is there a possibility, to get the session code, of the parent process, without setting a var in the parent session?"
well the import code is written in the before.program section or elsewhere in the called/child sessions/process and not in the parent.
And the pre-defined variable "parent" doesnt give the session code/name info, but the process id of the parent bshell process.