rp.chowdary
4th February 2012, 08:09
How to call a ERP Standard maintain session in read only mode through Program Script based on the user defined privileges. I want to know is there any standard function like start.session(), zoom.to().

Please Help me on this regard.

VishalMistry
15th February 2012, 12:04
Hi,
zoom.to$()
Syntax:

function string zoom.to$ (string process, long zoomcode, string zoomname, string returnfld, long formpos)

Description
Use this to zoom to another session or menu.

Arguments
string process Specifies the name of the session or menu that must be started.

long zoomcode This can be either Z.MENU or Z.SESSION, depending on whether it is a menu or session that is being started.

string zoomname The name of the calling process. This is used in the 4GL zoom.from sections sections in the called process. If no name is provided here, zoom.from sections in the child session are not executed.

string 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.

long formpos Specifies the form position for displaying the window. The default is 0

EXAMPLE
zoom.to$("whtri3512m000", Z.SESSION, "whtri3512m900", "", 0)

here, whtri3512m000 is the called session, whtri3512m900 is the calling session, and Z.SESSION means you are calling a session.

Hope this helps in starting.

Vishal