ui.Form.getNode

Get the DOM node of the form.

Syntax

getNode()
  RETURNS om.DomNode

Usage

The getNode() method returns the DOM node containing the abstract representation of the window/form.

After loading and displaying a form with OPEN FORM / DISPLAY FORM or with OPEN WINDOW ... WITH FORM, get the form object for example with ui.Dialog.getForm() and use the getNode() method to query the DOM node corresponding to the form.

Example

MAIN
  DEFINE f ui.Form
  DEFINE n om.DomNode
  DEFINE rec RECORD
             custid INTEGER,
             custname VARCHAR(40)
         END RECORD
  OPEN FORM f1 FROM "customer"
  DISPLAY FORM f1
  INPUT BY NAME rec.*
      BEFORE INPUT
         LET f = DIALOG.getForm()
         LET n = f.getNode()
         DISPLAY n.toString()
  END INPUT
END MAIN