priyank29
7th January 2016, 10:49
I have one maintain session.
When i open maintain session form another session(i.e zoom or form commands) maintain session open as read-only session.
All standard commands should be disable(add,delete,duplicate etc.)
How can i do this?
Thanks in Advance
:)
mark_h
7th January 2016, 16:35
Well on 4c4 I would go to the session that pops up and turn off everything on the form that allows updates. Not sure what might all have to be done in LN.
NPRao
11th January 2016, 20:58
When i open maintain session form another session(i.e zoom or form commands) maintain session open as read-only session.
Post your code for others to see what you are doing. How are you opening the 2nd sessions? are you using - start.session() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_starting_and_stopping_programs_start_session)
-or-
You can write your own code/disable-commands in the zoom sections - 4GL zoom.from sections (http://www.baanboard.com/programmers_manual_baanerp_help_4gl_features_4gl_zoomfrom_sections)
OmeLuuk
12th January 2016, 14:02
Is this a standard session (where you cannot modify the script)?
priyank29
13th January 2016, 05:54
@OmeLuuk
This is a customize Session and i known disable commands in zoom.from.all section is working but i finding other way for this.
OmeLuuk
13th January 2016, 13:18
boolean zoomed
before.program:
zoomed = false
zoom.from.all:
on.entry:
zoomed = true
field.all:
before.display:
if zoomed then
disable.field(READONLY, fattr.currfld$)
endif?