![]() Previous |
![]() Next |
Use this procedure to add an array of members to a collection. An error is raised if the specified collection does not exist for the current user in the same session for the current Application ID. Gaps are not used when adding a new member, so an existing collection with members of sequence IDs (1,2,5,8) will add the new member with a sequence ID of 9. The count of elements in the p_c001 PL/SQL table will be used as the total number of items across all PL/SQL tables. For example, if p_c001.count is 2 and p_c002.count is 10, only 2 members will be added. If p_c001 is null an application error is raised.
Syntax
APEX_COLLECTION.ADD_MEMBERS (
p_collection_name IN VARCHAR2,
p_c001 IN APEX_APPLICATION_GLOBAL.VC_ARR2 defulat empty_vc_arr,
p_c002 IN APEX_APPLICATION_GLOBAL.VC_ARR2 defulat empty_vc_arr,
p_c003 IN APEX_APPLICATION_GLOBAL.VC_ARR2 defulat empty_vc_arr,
...
p_c050 IN APEX_APPLICATION_GLOBAL.VC_ARR2 defulat empty_vc_arr,
p_n001 IN APEX_APPLICATION_GLOBAL.N_ARR defulat empty_n_arr,
p_n002 IN APEX_APPLICATION_GLOBAL.N_ARR defulat empty_n_arr,
p_n003 IN APEX_APPLICATION_GLOBAL.N_ARR defulat empty_n_arr,
p_n004 IN APEX_APPLICATION_GLOBAL.N_ARR defulat empty_n_arr,
p_n005 IN APEX_APPLICATION_GLOBAL.N_ARR defulat empty_n_arr,
p_generate_md5 IN VARCHAR2 default 'NO');
Parameters
Table: ADD_MEMBERS Procedure Parameters describes the parameters available in the ADD_MEMBERS procedure.
|
Note: Any character attribute exceeding 4,000 characters is truncated to 4,000 characters. Also, the number of members added is based on the number of elements in the first array. |
ADD_MEMBERS Procedure Parameters
| Parameter | Description |
|---|---|
|
|
The name of an existing collection. Maximum length is 255 bytes. Collection names are not case sensitive and are converted to upper case. |
|
|
Attribute value of the member to be added. Maximum length is 4,000 bytes. Any character attribute exceeding 4,000 characters is truncated to 4,000 characters. |
|
|
Valid values include |
Example
The following example shows how to add two new members to the EMPLOYEE table.
Begin
APEX_COLLECTION.ADD_MEMBERS(
p_collection_name => 'EMPLOYEE',
p_c001 => l_arr1,
p_c002 => 1_arr2);
End;