Tip: Headerless Detail Form

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

  1. Use the “Set Save Behavior on OK” system function (available only on Web-Clients) to change the property of the headerless detail form
    1. 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.
    2. 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.
    3. Set to <Save and Close> to:
      • Save the current record.
      • Close the form.

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

1 thought on “Tip: Headerless Detail Form

  1. Nikhil Reply

    Hi Deepesh,
    I was searching for this feature only for the ‘Headerless Detail Form’.
    Thanks, Amazing blog of yours 🙂

Leave a Reply