ken bohnenkamp
12th October 2002, 17:50
I have a session that has a start option of 7 (refresh). I want to zoom to this session from another menu with a start option of 2 (first.view). Can someone give me the correct command/syntax to do this.
baanprog
13th October 2002, 00:07
Do u want to Zoom from one session to another?
When do u want to zoom? from a field, from a button, from specific(BaanV), from print in file menu, or after some user action like save, calculation of some field, ????
Do u want the zoom session to remain or return some value and close?
Do u want when zoomed, the background process to do what?
Also note standard options 7 and 2 have diffrent purposes and dont confuse them with zooming, they will have an impact if u are manipulating the standard program.
Hope Iam Clear
ayoobi
13th October 2002, 06:02
add the following lines in init form :
import("prog.name$", progname)
if progname = "XXXXX" then
ignore.first.event = true
|*if u want to execute a specific command then u can execute it now
endif
regards
ayoobi
ken bohnenkamp
13th October 2002, 20:22
The only places I will be zooming from is from menus to a session. All I want to do when zooming from one menu is
to zoom to the session using the sessions default start option which is (7). I also want to zoom to this same session from another menu, but I want to zoom to the session using a different start option (2). I will be passing a paramter using an export, but will not be returning anything. What I need is the code to do this.
Thanks
NPRao
13th October 2002, 22:56
Ken,
You might consider this idea -
Within the script attached to the called session, you can import the calling menu name and check in the before program section and then call the function - execute(first.set)
a small modification to Ayoobi's code -
before.program:
import("prog.name$", progname)
if progname = "XXXXX" then
execute(first.set)
endif
I hope it helps.