om.DomDocument.getElementById

Returns a node element according to the internal AUI tree id.

Syntax

getDocumentById(
   id INTEGER )
  RETURNING result om.DomNode

Usage

The method getElementById() returns the om.DomNode element of the DOM document according to the internal id number passed as parameter.

Each DOM node gets an internal integer id when it is created in the abstract user interface tree, and can be referenced by this unique id. The node id is typically used in other nodes, to reference a node in the DOM document.

To hold the reference to the root node, define a variable with the type om.DomNode type.

DEFINE n om.DomNode
LET n = mydoc.getElementById()