help_ln
23rd February 2007, 12:20
Hi,
What are the different modes used for a Synchronized dialog ?
Thanks in Advance
NPRao
23rd February 2007, 22:22
Refer to the link - set.synchronized.dialog() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_synchronized_sessions_set_synchronized_dialog)
The online help here is not the latest. If you are a LN developer, you should have the latest tools programmer's manual on your local desktop with the DFE installation.
SSA ERP LN 6.1 Programmers Guide
set.synchronized.dialog()
--------------------------------------------------------------------------------
Syntax
void set.synchronized.dialog( string sess_code, [ boolean editable.grid, [ boolean use.dialog.for.insert ] ] )
Description
This defines for the current session the dialog to synchronize with. Both sessions act on the same maintable.
When the user double-clicks on an occurrence in the parent session, the synchronized dialog is updated with information from the selected record. The synchronized dialog also automatically opens when the user initiates any of the following actions: insert record, edit record or duplicate record. When a record is saved in the synchronized dialog, the 4GL engine updates the occurrence in the parent window.
When the synchronized dialog is opened or updated, the synchronized.reason variable (read-only) is set. This indicates the command that caused the synchronization. The possible values are: ADD.SET, DUPL.OCCUR, MODIFY.SET, and DISPLAY.SET. This variable is available in all sections in the synchronized dialog session.
Notes
If this function is used, then, by default, the overview session will automatically become read-only.
If you want to combine a synchronized dialog with an editable grid, then you must set the editable.grid argument to true.
As of TIV 1000, by default, an insert or duplicate in an editable grid or MMT controller session with a synchronized dialog will not start the dialog.
This can be overriden by specifying true for the use.dialog.for.insert argument.
Preferably fill the 'Synchronized Dialog' property of the session, use this function only when the synchronized dialog is conditionally.
Arguments
sess_code
The session code of the single-occurrence dialog session.
editable.grid
Specifies whether or not this parent session should allow an editable grid. The default is false. This parameter is irrelevant in case this parent session is a MMT controller.
use.dialog.for.insert
Specifies whether or not the dialog should be started for inserting or duplicating records. The default is false.
Context
4GL library function.
You call the function in the before.program section of the multioccurrence parent session.