Headerless Detail forms close after hitting OK button. This is the default property of the form. Many cases we do not want that to happen.
There are 2 methods to avoid that.
Method 1
- Use the “Set Save Behavior on OK” system function (available only on Web-Clients) to change the property of the headerless detail form
- Set to <Save and Clear> to:
- Save the current record.
- Clear the form or subform.
- Switch the form or subform to ADD mode.
- Leave the form or subform open for further input.
- Set to <Save and Continue> to:
- Save the current record.
- Switch the form or subform to UPDATE mode.
- Leave the form or subform open for further input.
- Set to <Save and Close> to:
- Save the current record.
- Close the form.
- Set to <Save and Clear> to:
Use these System function with the propertes either in the Post Dialog is Initialized Event, or the OK button Post Clicked event.
In these cases, “End Form on Add” property of the form holds no effect. This system function is available only from Tools – 8.95 onwards
Method 2
Call the headerless detail form in MODELESS mode while being called from another form (interconnect properties). The form will not close on save
Hi Deepesh,
I was searching for this feature only for the ‘Headerless Detail Form’.
Thanks, Amazing blog of yours 🙂