Call report from a form button [message #662460] |
Tue, 02 May 2017 12:31 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
![](//www.gravatar.com/avatar/ab6d4fa38617d994752ae9054e13d61d?s=64&d=mm&r=g) |
Mich_F_King_Dot
Messages: 4 Registered: May 2017
|
Junior Member |
|
|
Hey Experts,
I am using Developer 6i with oracle 10g xe database.
I have a button on a form which perform some operations and at the end call a report. Before 10g while i was using 9i I had the following command in that button which call that report
RUN_PRODUCT(REPORTS,V_PATH||'MyReportName',SYNCHRONOUS,RUNTIME,FILESYSTEM,PL_ID);
It worked fine when I had oracle 9i database with 6i developer. But now as I have oracle 10g database with 6i developer it is not calling the report.
I am new to oracle so I dont know what to do. Can anybody please tell what would be the appropriate code to call this report?
|
|
|
|
Re: Call report from a form button [message #662468 is a reply to message #662461] |
Tue, 02 May 2017 16:12 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
![](//www.gravatar.com/avatar/0a3bacbae7851534702895215eb69f38?s=64&d=mm&r=g) |
angelitodiaz
Messages: 1 Registered: May 2017
|
Junior Member |
|
|
Hello, Mich_F_King_Dot.
I did have the same problem last week.
For me work this code:
DECLARE
pl_id ParamList;
BEGIN
pl_id := Create_Parameter_List('tmpdata');
Add_Parameter(pl_id,'NAME_PARAMETER_OF_REPORT',TEXT_PARAMETER,'NAME_OF_FIELD');
Add_Parameter(pl_id,'PARAMFORM',TEXT_PARAMETER,'NO');
rp2rro.rp2rro_run_product(reports,
'NAME_OF_REPORT',
ASYNCHRONOUS,
RUNTIME,
filesystem,pl_id,null);
Destroy_Parameter_List( pl_id );
END;
|
|
|
|
|