48.3 GET_ID Function Signature 1

This function gets the region ID based on the dom static ID.

Syntax

APEX_REGION.GET_ID (
    p_application_id IN NUMBER  DEFAULT apex.g_flow_id,
    p_page_id        IN NUMBER,
    p_dom_static_id  IN VARCHAR2 )
    RETURN NUMBER;

Parameters

Parameter Description
p_application_id ID of the application which contains the region.
p_page_id ID of the page which contains the region.
p_dom_static_id

Static ID of the desired region.

Note:

The p_dom_static_id is not unique and raises a too_many_rows error if multiple regions exist with the same static ID.

Example

The following example gets the ID of the region whose static ID is "my_apex_region" in app 100 on page 1.

DECLARE
    l_region_id apex_application_page_regions.region_id%type;
BEGIN
    ...
    l_region_id := apex_region.get_id(
                       p_application_id => 100,
                       p_page_id        => 1,
                       p_dom_static_id  => 'my_apex_region' );
    ...
END;