chenna.deepa
18th April 2008, 14:16
hi all,
i have created a menu with 2 sessions in it..i want to attach this menu to a button ...i have used
choice.zoom:
before.choice:
exit.val$ = zoom.to$(
"tfacp00000001",
Z.MENU,
"", | the session code
prog.name$, | just a default value
0 ) | fields to return
but its not working ...
plz tell me the solution ...
thanks in advance
deepa
george7a
18th April 2008, 14:26
Hi,
You have to put "m" before the menu code "mtfacp...."
I hope it helps,
- George
chenna.deepa
21st April 2008, 12:26
hi george,
i have put m before "mtfacp" but still its not working ..
it saying no menu file
how to solve this problem
thanks in advance
bdittmar
21st April 2008, 13:57
hi george,
i have put m before "mtfacp" but still its not working ..
it saying no menu file
how to solve this problem
thanks in advance
Hello,
syntax to menue zoom is :
zoom.to$("mdhsmabd0010051",z.menu,"menu","",0)
Syntax
string zoom.to$( string process(14), long zoomcode, string zoomname(18), string returnfld(18), long formpos )
Description
Use this to zoom to another session or menu.
Arguments
process
Specifies the name of the session or menu that must be started.
zoomcode
This can be either Z.MENU or Z.SESSION, depending on whether it is a menu or session that is being started.
zoomname
The name of the calling process. This is used in the zoom.from sections in the called process. If no name is provided here, zoom.from sections in the child session are not executed.
returnfld
Indicates the name of the variable to be returned by the function. It must be the name of a variable in the called process. If an empty string is specified here, the function returns the exit value of the zoom process. If the argument is not filled, the function returns nothing.
formpos
Specifies the form position for displaying the window. The default is 0
Regards
Hitesh Shah
21st April 2008, 14:20
AFAIK exit.val$ has to be written in called sessions to return the selected value to the caller program and use the zoom.to$ return value to store the same in current field .
Also make attr.zoomcode= 0 so that it does not zoom to any session/menu (specified at field level) or give any error no permissions .
chenna.deepa
21st April 2008, 14:33
hi Bernd,
i have put the syntax..as u have told..
exit.val$ = zoom.to$(
"tfacp00000001",
Z.MENU,
"menu", | the session code
" ", | just a default value
0)
but no effect its saying no menu file when i click the button
how to solve this
thanks in advance
deepa
bdittmar
8th September 2008, 12:12
hi Bernd,
i have put the syntax..as u have told..
exit.val$ = zoom.to$(
"tfacp00000001",
Z.MENU,
"menu", | the session code
" ", | just a default value
0)
but no effect its saying no menu file when i click the button
how to solve this
thanks in advance
deepa
m is for MENU
exit.val$ = zoom.to$(
"mtfacp00000001",
Z.MENU,
"menu", | the session code
" ", | just a default value
0)
Regards