MilindV
27th October 2008, 11:58
Hello All,
In standard baan sessions export data dict or import data dict, when we select version the next 2 fields of release and customer gets populated automatically, How can do the same thing in my customized session?
How can i get release and customer automatically? Is the code written in the script of session ttadv1511m000 in zoom.from section. If this is the case, then How can achieve the same behavior in my customized session.
Thank You All
Milind V
george7a
27th October 2008, 12:07
Hi,
You should export (http://www.baanboard.com/programmers_manual_baanerp_help_functions_variables_interprocess_transfer_export) the fields you want from the "zoomed to" session, and import (http://www.baanboard.com/programmers_manual_baanerp_help_functions_variables_interprocess_transfer_import) those fields in your main session.
I hope it helps,
- George
MilindV
27th October 2008, 12:51
Thanks George
What u said is correct, but i m zooming to standard session ttadv1511m000 Package VRCs to get Version Release Customer, so i cant export fields as u have suggested(standard session, standard script, cant modify standard:confused:).
george7a
27th October 2008, 13:53
You are right, I did not notice you are talking about the standard session ttadv1511m000.
What you can do then is:
Rename your session variables to: "vers", "rele" & "cust" as extern fields (vers should zoom to ttadv1511m000 only). They will be automatically filled after you return from ttadv1511m000.
I have just tested it and it works ;)
- George
MilindV
29th October 2008, 05:58
Thanks A lot George
It worked. :)
Actually in my session there are two sets of VRC input fields; say ver1, rele1, cust1 and ver2, rele2, cust2. So, It was not possible for me to change both the sets of variable names to as you mentioned. So what I have done, declared the vers, rele and cust as extern and then after zoom section of ver1 and ver2 i assigned these values respectively as follows.
field.vers.f:
after.zoom:
import("vers", vers.f)
import("rele ", rele.f)
import("cust", cust.f)
field.cw.vers.f:
after.zoom:
cw.vers.f = vers
cw.rels.f = rele
cw.code.f = cust
george7a
29th October 2008, 09:09
Nice trick ;)