31.16.1 $x

Given a DOM node or string ID (pNd), this function returns a DOM node if the element is on the page, or returns false if it is not.

Parameters

pNd (DOM Node | string ID)

Returns

(DOM Node | false)

31.16.2 $v

Given a DOM node or string ID (pNd), this function returns the value of an Application Express item in the same format as it would be posted.

Parameters

pNd (DOM Node | string ID)

31.16.3 $v2

Given a DOM node or string ID (pNd), this function returns the value of an Application Express item as a string or an array. If the page item type can contain multiple values like a shuttle, checkboxes or a multi select list an array is returned, otherwise a string.

Parameters

pNd (DOM Node | string ID)

Returns

(string|array)

31.16.4 $s

Given a DOM node or string ID (pNd), this function sets the Application Express item value taking into account the item type. The pDisplayValue is optional. If used for a page item of type Popup LOV where the attribute "Input Field" = "Not Enterable, Show Display Value and Store Return Value", it sets the "Input Field". The value of pValue is stored in the hidden return field. The pSuppressChangeEvent parameter is optional. Passing either false or not passing this parameter value results in a change event firing for the item being set. Pass true to prevent the change event from firing for the item being set.

31.16.5 $u_Narray

Given a DOM node or string ID or an array (pNd), this function returns a single value, if an pNd is an array but only has one element the value of that element is returned otherwise the array is returned. Used for creating DOM based functionality that can accept a single or multiple DOM nodes.

Parameters

Array or first value

Returns

Array (DOM Node | string ID | Array)

31.16.6 $u_Carray

Given a DOM node or string ID or an array (pNd), this function returns an array. Used for creating DOM based functionality that can accept a single or multiple DOM nodes.

Parameters

Array

Returns

pNd (DOM Node | string ID | Array)

31.16.7 $nvl

If pTest is empty or false return pDefault otherwise return pTest.

Parameters

pTest (String | Array)
pDefault (String | Array)

Returns

(string | Array)

31.16.8 $x_Style

Sets a specific style property (pStyle) to given value (pString) of a DOM node or DOM node Array (pNd).

31.16.9 $x_Hide

Hides a DOM node or array of DOM nodes (pNd). This also takes into consideration which type of Application Express item is being hidden.

Parameters

pNd (DOM node | string ID | DOM node Array )

Returns

(DOM node | Array)

31.16.10 $x_Show

Shows a DOM node or array of DOM nodes (pNd). This also takes into consideration which type of Application Express item is being hidden.

Parameters

pNd (DOM node | string ID | DOM node Array )

Returns

(DOM node | Array)

31.16.11 $x_Toggle

Toggles a DOM node or array of DOM nodes (pNd).

Parameters

pNd (DOM node | string ID | Array)

Returns

(DOM node | Array)

31.16.12 $x_Remove

Removes a DOM node or array of DOM nodes.

Parameters

pNd (DOM node | string ID | DOM node Array)

Returns

(DOM Node | Array)

31.16.13 $x_Value

Sets the value (pValue) of a DOM node or array of DOM nodes (pNd).

Parameters

pNd (DOM node | string ID | DOM node Array)
pValue (String)

Returns

Not applicable.

31.16.14 $x_UpTill

Starting from a DOM node (pNd), this function cascades up the DOM tree until the tag of node name (pToTag) is found. If the optional pToClass is present, the ancestor node must have a node name that equals pToTag and the class must equal pToClass.

Parameters

pNd (DOM Node | string ID)
String (pToTag)
String (pToClass )

Returns

(DOM Node | false)

31.16.15 $x_ItemRow

Given DOM node or array of DOM nodes, this function (shows, hides, or toggles) the entire row that contains the DOM node or array of DOM nodes. This is most useful when using Page Items. This function only works in table layouts since it explicitly looks for a containing tr element.

31.16.16 $x_HideItemRow

Given a page item name, this function hides the entire row that holds the item. In most cases, this is the item and its label. This function only works in table layouts since it explicitly looks for a containing tr element.

Parameters

pNd (DOM Node | string ID | DON node Array)

Returns

Not applicable.

31.16.17 $x_ShowItemRow

Given a page item name, this function shows the entire row that holds the item. In most cases, this is the item and its label. This function only works in table layouts since it explicitly looks for a containing tr element.

Parameters

pNd (DOM node | string ID | DOM note Array)

Returns

Not applicable.

31.16.18 $x_ToggleItemRow

Given a page item name (pNd), this function toggles the entire row that holds the item. In most cases, this is the item and its label. This function only works in table layouts since it explicitly looks for a containing tr element.

Parameters

pNd (DOM node | string ID | DOM node ray)

Returns

Not applicable.

31.16.19 $x_HideAllExcept

Hides all DOM nodes referenced in pNdArray and then shows the DOM node referenced by pNd. This is most useful when pNd is also a node in pNdArray.

31.16.22 $x_Class

31.16.23 $x_SetSiblingsClass

Sets the class (pClass) of all DOM node siblings of a node (pNd). If pNdClass is not null the class of pNd is set to pNdClass.

Parameters

pNd (DOM Nnde | string ID)
pClass (String)
pThisClass (String)

Returns

(DOM node | false)

31.16.24 $x_ByClass

Returns an array of DOM nodes by a given class name (pClass). If the pNd parameter is provided, then the returned elements are all children of that DOM node. Including the pTag parameter further narrows the list to just return nodes of that tag type.

Parameters

pClass (String)
pNd (DOM node | string ID)
pTag (String)

Returns

(Array)

31.16.25 $x_ShowAllByClass

Show all the DOM node children of a DOM node (pNd) that have a specific class (pClass) and tag (pTag).

Parameters

pNd (DOM node | string ID)
pClass (String)
pTag (String)

Returns

Not applicable.

31.16.26 $x_ShowChildren

Show all DOM node children of a DOM node (pNd).

Parameters

pNd (DOM node | string ID)

Returns

Not applicable.

31.16.27 $x_HideChildren

Hide all DOM node children of a DOM node (pNd).

Parameters

pNd (DOM node | string ID)

Returns

Not applicable.

31.16.28 $x_disableItem

Disables or enables an item or array of items based on (pTest).

Parameters

pNd (DOM node | string ID | DOM node array)
a (true | false)

Returns

Not applicable.

31.16.29 $f_get_emptys

Checks an item or an array of items to see if any are empty, set the class of all items that are empty to pClassFail, set the class of all items that are not empty to pClass.

31.16.47 $f_CheckFirstColumn

This function sets all checkboxes located in the first column of a table based on the checked state of the calling check box (pNd), useful for tabular forms.

Parameters

pNd (DOM node | String)

Returns

DOM node Array

31.16.48 $x_ToggleWithImage

Given an image element (pThis) and a DOM node (pNd), this function toggles the display of the DOM node (pNd). The src attribute of the image element (pThis) is rewritten. The image src has any plus substrings replaced with minus substrings or minus substrings are replaced with plus substrings.

31.16.61 $dom_MakeParent

Takes a DOM node (p_Node) and makes it a child of DOM node (p_Parent) and then returns the DOM node (pNode).

Parameters

p_This (DOM node | string ID)
p_Parent (DOM node | string ID)

Returns

(DOM node)

31.16.62 $x_RowHighlight

Give an table row DOM element (pThis), this function sets the background of all table cells to a color (pColor). A global variable gCurrentRow is set to pThis.

Parameters

pThis (DOM node | String)
pColor(String)

Returns

Not applicable.

31.16.63 $x_RowHighlightOff

Give an table row Dom node (pThis), this function sets the background of all table cells to NULL.

Parameters

pThis (DOM Element | String)

Returns

Not applicable.

31.16.64 $v_Upper

Sets the value of a form item (pNd) to uppercase.

Parameters

pNd (DOM Node | String)

Returns

Not applicable.

31.16.65 $d_Find

Hides child nodes of a Dom node (pThis) where the child node's inner HTML matches any instance of pString. To narrow the child nodes searched by specifying a tag name (pTag) or a class name (pClass). Note that the child node is set to a block level element when set to visible.