KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Form command from Table Forms
PRODUCT: 4D | VERSION: 20 | PLATFORM: Mac & Win
Published On: November 18, 2024

The Form command is a useful feature that returns an object associated with the current form. This object can be populated with data before opening the form through the second parameter of the DIALOG command.

In most cases, if nothing is passed the returned object will be empty. However, if table forms are being used a property may exist. When an input form is accessed from an output form from something like a double click on one of the records, the Form object will contain a property .parentForm containing the Form object of the parent output form.

This can be used to pass data between the two forms. However, it is also important to remember this additional property as checking for an empty Form object will not work for input forms.