Previous
Previous
 
Next
Next


UPDATE_MEMBER_ATTRIBUTE Procedure Signature 1

Update the specified member attribute in the given named collection. If a collection does not exist with the specified name for the current user in the same session for the current Application ID, an application error will be raised. If the member specified by sequence ID p_seq does not exist, an application error will be raised. If the attribute number specified is invalid or outside the range 1-50, an error will be raised. Any attribute value exceeding 4,000 bytes will be truncated to 4,000 bytes.

Syntax

APEX_COLLECTION.UPDATE_MEMBER_ATTRIBUTE (
    p_collection_name IN VARCHAR2,
    p_seq IN VARCHAR2,
    p_attr_number IN VARCHAR2,
    p_attr_value  IN VARCHAR2);

Parameters

Table: UPDATE_MEMBER_ATTRIBUTE Signature 1 Parameters describes the parameters available in the UPDATE_MEMBER_ATTRIBUTE procedure signature 1.


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.

UPDATE_MEMBER_ATTRIBUTE Signature 1 Parameters

Parameter Description

p_collection_name

The name of the collection. Maximum length can be 255 bytes. Collection_names are case-insensitive, as the collection name will be converted to upper case. An error is returned if this collection does not exist with the specified name of the current user and in the same session.

p_seq

Sequence ID of the collection member to be updated.

p_attr_number

Attribute number of the member attribute to be updated. Valid values are 1 through 50. Any number outside of this range will be ignored.

p_attr_value

Attribute value of the member attribute to be updated.


Example

Update the second member of the collection named 'Departments', updating the first member attribute to 'Engineering' and the second member attribute to 'Sales'.

BEGIN;
    APEX_COLLECTION.UPDATE_MEMBER_ATTRIBUTE (
        p_collection_name =. 'Departments',
        p_seq => '2',
        p_attr_number => '1',
        p_attr_value => 'Engineering');
END;