muheeb
4th April 2002, 09:36
Hi,

I wanted to know if it's possible the session name/code

of the session that activated a sub-session.

i.e. if I activated/zoom to other (sub)session in the

new session I activated is there a way to know which

session called me??


Thanks a lot.

evesely
4th April 2002, 17:05
This can be done through the zoom.to$ function's third parameter. Your subsession can then use the variable zoomfield$. In this example, zoomfield$ = "fromsession":
zoom.to$("tcmcs0103s000", z.session, "fromsession", "returnfield", 0)

Another way is to put code in you subsession such as this:

if background
import("prog.name$",parent.progname)
endif

muheeb
4th April 2002, 17:11
Thanks for your reply,

I know that I could put a veriable in import,

but I want to do that without touching any program script

in session, so can I activate (sub)session throught zooming

mechanism found the Field Proprities Maintain Form.

Even zoom.to$ I won't use. Or I can use the mechanism

of activating sessions from a specific-options in BaanERP.

What do you think?