This function returns an interactive report runtime query.
Syntax
APEX_IR.GET_REPOR( p_page_id IN NUMBER, p_region_id IN NUMBER, p_report_id IN NUMBER DEFAULT NULL);
Parameters
Table 11-9 describes the available parameters for the GET_REPORT function.
Table 11-9 GET_REPORT Function Parameters
Parameter | Description |
---|---|
|
Page of the current Application Express application that contains an interactive report. |
|
The interactive report region ID. |
|
The saved report ID within the current application page. If |
Example
The following example shows how to use the GET_REPORT
function to retrieve the runtime report query with bind variable information with report ID of 880629800374638220 in page 1, region 2505704029884282 of the current application.
DECLARE l_report apex_ir.t_report; l_query varchar2(32767); BEGIN l_report := APEX_IR.GET_REPORT ( p_page_id => 1, p_region_id => 2505704029884282, p_report_id => 880629800374638220); l_query := l_report.sql_query; for i in 1..l_report.binds.count loop dbms_output.put_line(i||'. '|| l_report.binds(i).name|| '='||l_report.binds(i).value); end loop; END;