Diff b/w Dialog is Initialized and Post Dialog is Initialized

  • Thread starter Sai Venkat Reddy
  • Start date

Sai Venkat Reddy

Member
Hi All,

What is the difference between Dialog is Initialized and Post Dialog is Initialized Events in Interactive Applications?

Thanks in Advance
Venkat
 
"Post Dialog is Initialized" - "Dialog is Initialized" = "Post "

On the other hand - check the event flow of forms in your Development Tools manual.

Regards,

Zoltán
 
"Dialog is initialized" is executed BEFORE the automatic form logic is executed (for example defaulting of FC). "Post Dialog is Initialized" is executed AFTER that. In most cases using "Post Dialog is Initialized" is safer as the logic of "Dialog is Initialized" may be later overriden by the default form processing.
 
Just as importantly,

DII occurs once...upon form creation. PDII occurs everytime the form is called.

Ben again,
 
As others have already said Dialog is Initialized happens before the form appears. Here you can Hide or Show controls on a from, or disable controls.

After Dialog is Initialized is processed, the form appears.

Then Post Dialog is Initialized executes. Here no records have been fetched yet. The runtime engine pauses just before the FETCH so logic can be added. So this event can be used to:

Load filter fields that will be used in the WHERE clause of the SQL.

Load processing option values into filter fields.

Perform any one-time logic for the form e.g. Fetching System Date.


Hope this helps
Aidy
 
Dialog is initialized is used when we want to disable/enable any form control in runtime, while post dialog is used to add logic or event when the form is appeared during the runtime process. Most of the time we use post dialog instead of dialog because most of the logic or event which we use we want it during the runtime process of the form.
 
Back
Top