PUT Procedure Signature 7
Adds an array of NUMBER to an object.
Syntax
MEMBER PROCEDURE put (
p_key IN VARCHAR2,
p_value IN apex_t_number,
p_omit_empty IN BOOLEAN DEFAULT TRUE );Parameters
| Parameter | Description |
|---|---|
p_key |
The key. |
p_value |
The array. |
p_omit_empty |
Whether to omit the array if it is empty. |
Example
Create an object with an array attribute of type NUMBER.
declare
l_obj apex_t_javascript_object := apex_t_javascript_object();
l_arr apex_t_number := apex_t_number( 1, 2, 3 );
begin
l_obj.open_object;
l_obj.put( 'arr', l_arr );
l_obj.close_object;
sys.dbms_output.put_line( l_obj.to_clob );
end;
Output:
{"arr":[1,2,3"]}
Parent topic: APEX_T_JAVASCRIPT_OBJECT