Yes, you should use RUN_REPORT_OBJECT. This error probably means misspelled report object (not the same as report module!) name. Can you open the form and look at the name of attached report?
This is how I called the report from form. The name of the report is correct. The report is available in its location mentioned. Still getting invalid id message. Is any setting I have to make with respect to application server(here it is my local machine).What else needs to be done.
If you read my post carefully you may probably learn that report object name is not the same as report file name. In this built-in you should use report object name, that is the name of report object existing in your form. On of that object properties is its location.
When I give the report object name ,
I am getting the "rep-0503 you did not specify the report name"
error.Now the invalid id message is solved
What else needs to be done.
When I use the same set of codings and objects in forms 6i
it is working fine.
My What else is meant for any special setting we need to do for forms 9i. If my coding is wrong it would not have worked with 6i also.
Haven't you used RUN_PRODUCT, not RUN_REPORT_OBJECT in 6i? Or probably specified report object name that was the same as report module name? I can only guess why it worked with 6i, but your understanding of RUN_REPORT_OBJECT is wrong.
1. Create a report using Reports 9i and check it whether it is working in paper layout mode.
2. Create a simple form for calling that report.
3. Create a new reports server service as following (in Command Prompt):
c:> rwserver -install repserver90 autostart=yes
4. Create a Report obect and in the Property Palette for Reports object, enter the following:
Name: rep_name(This will be the name given in Run_Report Object0
Filename: C:\reports\rep.rdf
/*<specify full path to your RDF/REP file or make sure this path is included
into REPORTS_PATH environment variable*/
Report Destination Type: CACHE
Report Destination Format: HTML
Report Server: repserver90
5. In the form run the following code to call the report
DECLARE
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status VARCHAR2(20);
BEGIN
repid := FIND_REPORT_OBJECT('REPORT10');
v_rep := RUN_REPORT_OBJECT(repid);
rep_status := REPORT_OBJECT_STATUS(v_rep);
WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
LOOP
rep_status := report_object_status(v_rep);
END LOOP;
IF rep_status = 'FINISHED' THEN
/*Display report in the browser*/
WEB.SHOW_DOCUMENT('
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.