11.01.2013 Views

Oracle Forms Developer – Form Builder Reference, Volume 1

Oracle Forms Developer – Form Builder Reference, Volume 1

Oracle Forms Developer – Form Builder Reference, Volume 1

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

REPORT_OBJECT_STATUS built-in<br />

Description<br />

Provides status of a report object run within a form by the RUN_REPORT_OBJECT built-in.<br />

Syntax<br />

FUNCTION REPORT_OBJECT_STATUS<br />

(report_id VARCHAR2(20)<br />

);<br />

Built-in Type unrestricted function<br />

Enter Query Mode yes<br />

Parameters<br />

report_id The VARCHAR2 value returned by the RUN_REPORT_OBJECT built-in.<br />

This value uniquely identifies the report that is currently running either<br />

locally or on a remote report server.<br />

Usage Notes<br />

• There are eight possible return values for this built-in: finished, running, canceled, opening_report,<br />

enqueued, invalid_job, terminated_with_error, and crashed.<br />

•<br />

REPORT_OBJECT_STATUS examples<br />

342<br />

DECLARE<br />

repid REPORT_OBJECT;<br />

v_rep VARCHAR2(100);<br />

rep_status varchar2(20);<br />

BEGIN<br />

repid := find_report_object(’report4’);<br />

v_rep := RUN_REPORT_OBJECT(repid);<br />

rep_status := REPORT_OBJECT_STATUS(v_rep);<br />

if rep_status = ’FINISHED’ then<br />

message(’Report Completed’);<br />

copy_report_object_output(v_rep,’d:\temp\local.pdf’);<br />

host(’netscape d:\temp\local.pdf’);<br />

else<br />

message(’Error when running report.’);<br />

end if;<br />

END;

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!