ui.Form.findNode

Search for a child node in the form.

Syntax

findNode(
   type STRING,
   name STRING )
  RETURNING result om.DomNode
  1. type defines the type of the node.
  2. name defines the name of the node.

Usage

The findNode() method allows you to search for a specific DOM node in the abstract representation of the form. You search for a child node by giving its type and the name of the element (i.e. the tagname and the value of the 'name' attribute).

The method returns the first element found matching the specified type (tagname) and node name. Form element names must be unique for the same type of nodes, if you want to distinguish all elements.

DEFINE n om.DomNode,
       f ui.Form

INPUT BY NAME ...
   ...
   LET f = DIALOG.getForm()
   LET n = f.findNode("Label", "lb_name")
   ...