46.37 GET_ATTRIBUTE Function

This function returns the value of one of the attribute values (1 through 10) of a named user in the Oracle APEX accounts table. These are only accessible by using the APIs.

Syntax

APEX_UTIL.GET_ATTRIBUTE (
    p_username                IN VARCHAR2,
    p_attribute_number        IN NUMBER )
RETURN VARCHAR2;

Parameters

Table 46-34 GET_ATTRIBUTE Parameters

Parameter Description
p_username User name in the account.
p_attribute_number Number of attributes in the user record (1 through 10).

Example

The following example returns the value for the 1st attribute for the user FRANK.

DECLARE
    VAL VARCHAR2(4000);
BEGIN
    VAL := APEX_UTIL.GET_ATTRIBUTE (
        p_username => 'FRANK',
        p_attribute_number => 1);
END;