36.4 ADD_ATTRIBUTE Function Signature 3
This function returns the attribute and a JavaScript boolean of TRUE, FALSE, or NULL.
Syntax
APEX_JAVASCRIPT.ADD_ATTRIBUTE (
p_name IN VARCHAR2,
p_value IN BOOLEAN,
p_omit_null IN BOOLEAN:=TRUE,
p_add_comma IN BOOLEAN:=TRUE )
RETURN VARCHAR2;
Parameters
Parameter | Description |
---|---|
p_name
|
Name of the JavaScript object attribute. |
p_value
|
Boolean assigned to the JavaScript object attribute. |
p_omit_null |
If p_omit_null is TRUE and p_value is NULL, the function returns nothing. If p_omit_null is FALSE and p_value is NULL, the value null is returned (for example, test:null).
|
p_add_comma |
If set to TRUE a trailing comma is added when a value is returned. |
Example
See example for ADD_ATTRIBUTE Function Signature 1.
Parent topic: APEX_JAVASCRIPT