swapnilj
10th November 2014, 12:15
Hello All,

I have a field in custom session which should zoom on to session ttadv4522s000 (Display Table Fields) and return table field i.e. "Field" (ttadv422.fdnm) from it. For this I have maintained zoom session and return field defaults at form level. I am able to zoom to that session but it is not returning the value I want in my field. It's strange because in same session I have another field which zooms on to ttadv1500s000 (Display Packages) and returns the selected package value correctly.
Is there any way to get correct return value?

Regards,
SwapnilJ

bhushanchanda
10th November 2014, 12:44
Hi,

Not sure about the problem as I am not aware of Baan 4. You can try ttadv4529m000 (Table Fields) session in case you have it.

Also, there is one other way to return the correct value using zoom.to$() function

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

mark_h
10th November 2014, 17:30
Not all tools sessions use the standard zoom type functionality. Some return other fields. You can search for zoom on the forum - bunch of threads to search thru and I can not remember who posted a solution for one of the tools sessions.

mark_h
10th November 2014, 17:44
Try this - make your form field about 16 characters long. On my system it returned the table name plus the field name. So it was returning like tiitm001.item in the field.