jaycee99
7th October 2008, 09:47
Is there anyone got an idea on how to disable system error message?
I got an error message "No zoomsession defined" after i zoom it to select some field.

george7a
7th October 2008, 10:03
Hi,

You can go to the dynamic form editor (from maintain sessions ttadv2500m000) and define the right zoom session for this field. or disable the zoom

- George

jaycee99
8th October 2008, 04:36
Hi George,

Ya, i found that i didn't define anything at the form editor for the zoom. I just select "Session" for the Zoom field, and then left it blank for "Zoom to" and "Return Field". Because at the program script i did define the "Zoom to" and "Return Field". Cos for my case, i choose TYPE A then it will zoom to Session A, and when it is TYPE B then it zoom to Session B. That's why i cannot defined it in the Form Editor, cos it just allow 1 session to be selected. And then, if i select "NO" for the "Zoom" field in form editor, when i preview the overview session, the zoom box not appear. Is there anyway to write in the script that calling the zoom box when it display?

george7a
8th October 2008, 10:18
Hi,

You can set the first one in the form editor as the default zoom session. Then in your code you can use the following variables to change the zoom to session and other related variables:

string attr.textzoomsession$(18) Session zoomed to by text editor zoom command. The default is "Display Texts" session. Used by the Text Manager.

long attr.zoomcode Field zoomcode. Possible values are:

0 No zoom
Z.MENU (1) Zoom to a menu
Z.SESSION (2) Zoom to a session

string attr.zoomreturn$(18) Name of return field of zoom session on current field.

string attr.zoomsession$(18) Session zoomed to from field.

long attr.zoomindex Number of table-index to start session zoomed to from a field.

I hope it helps,

- George

jaycee99
16th October 2008, 06:50
Thanks George. Its really work.