The APEX_REGION
package is the public API for handling regions.
This function returns TRUE if the current region is rendered read-only and FALSE if region is not rendered read-only. If the function is called from a context where no region is currently processed, it returns NULL. For example, you can use this function in conditions of a region or its underlying items and buttons.
FUNCTION IS_READ_ONLY RETURN BOOLEAN;
None.
This examples purges the session for a specific region cache for the whole application.
RETURN APEX_REGION.IS_READ_ONLY;
This procedure purges the region cache of the specified application, page, and region.
PROCEDURE PURGE_CACHE ( p_application_id IN NUMBER DEFAULT wwv_flow.g_flow_id, p_page_id IN NUMBER DEFAULT NULL, p_region_id IN NUMBER DEFAULT NULL, p_current_session_only IN BOOLEAN DEFAULT FALSE );
Table 22-1 PURGE_CACHE Parameters
Parameter | Description |
---|---|
|
|
|
|
|
ID of a specific region on a page. If no value is specified, all regions of the specified page are purged. |
|
Specify true if you only want to purge entries that where saved for the current session. defaults to false. |
This example purges session specific region cache for the whole application.
BEGIN APEX_REGION.PURGE_CACHE ( p_current_session_only => true ); END;