35.7 CLEAR_REPORT Procedure Signature 3
This procedure clears filter report settings to the developer defined default settings using the report static ID.
Note:
The use of this procedure in a page rendering process causes report download issues (CSV, HTML, Email, and so on). When a user downloads the report, the interactive grid reloads the page with download format in the REQUEST value. Any interactive grid settings changes (such as add filter or reset report) are done in an Ajax request. Thus, the download data may not match the report data user is seeing. For this reason, Oracle recommends only using this procedure in a page submit process.Syntax
APEX_IG.CLEAR_REPORT (
p_page_id IN NUMBER,
p_region_static_id IN VARCHAR2,
p_report_static_id IN VARCHAR2 DEFAULT NULL );Parameters
| Parameter | Description |
|---|---|
p_page_id |
The page of the current Oracle APEX application that contains the interactive grid. |
p_region_static_id |
The interactive grid region static ID. |
p_report_static_id |
The saved report static ID within the current application page. If p_report_static_id is NULL, it clears the last viewed report settings.
|
Example
The following example shows how to use the CLEAR_REPORT procedure to reset interactive grid filter settings with report static ID of statistics in page 1 and region static ID analysis of the current application.
BEGIN
APEX_IG.CLEAR_REPORT(
p_page_id => 1,
p_region_static_id => 'analysis',
p_report_static_id => 'statistics');
END;Parent topic: APEX_IG