abattoir
9th March 2012, 21:40
Hi,

I have a reqm where i have a customized (Update) session and when the user clicks on print button, another standard (Print) session opens up.

Now the reqm is i want to export (Shipment ID ) variable from Customized Session to my standard Session (Shipment Range), the issue being i dont have standard script , so i cannot import it.
But all the variables are extern..

Thanks in advance..

Cheers,
Abattoir

george7a
12th March 2012, 09:35
Hi,

Try to use the get.var() function:
http://www.baanboard.com/programmers_manual_baanerp_help_functions_variables_interprocess_transfer_get_var

Make sure you give the right Pid (of that main session) to this function.

JaapJD
12th March 2012, 10:05
get.var() will not work here. Note that the called session is a standard session. To handle this requirement is much more complex. You have to find out how the standard session fills the shipment range. Does it import something from the parent session or does it just display the saved defaults? You can try to find out with an extended bshell trace.
If it imports from the parent, then you need to supply those variables also in your customized session. If it are just the saved defaults, you can overwrite those defaults before calling the standard session. The latter is rather tricky!!!