954,597 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

calling oracle report from form builder

how to call oracle report using form builder on which command button.If i press command button report should be run.

imranmahmood_3
Newbie Poster
1 post since Jun 2009
Reputation Points: 10
Solved Threads: 0
 

You need to use the function RUN_REPORT_OBJECT

DECLARE 
	repid REPORT_OBJECT; 
	v_rep  VARCHAR2(100); 
	rep_status varchar2(20); 
BEGIN 
	repid := find_report_object('report4'); 
	v_rep := RUN_REPORT_OBJECT(repid); 
	...... 
END;
debasisdas
Posting Genius
6,872 posts since Feb 2007
Reputation Points: 666
Solved Threads: 434
 

and then what i should do to call my report with a push button in oracle form builder 10.1.2.2

georgeskayal
Newbie Poster
3 posts since May 2011
Reputation Points: 10
Solved Threads: 0
 

Put debasisdas' code in your When-Button-Pressed trigger.

hfx642
Posting Pro
515 posts since Nov 2009
Reputation Points: 248
Solved Threads: 105
 

thanks but that code dosn't worked on my 10g 12.1.2.2 forms builder
this is what i use :
DECLARE
rep_url varchar2(2000);
BEGIN
rep_url:='/reports/rwservlet?'
||'&report=C:\Documents and Settings\Administrator\Desktop\Report\rep1.jsp'
||'&desformat=htmlcss&destype=cache'
||'&userid=tawkissa/tawkissa@xe';
WEB.SHOW_DOCUMENT(rep_url,'_blank');
END;

georgeskayal
Newbie Poster
3 posts since May 2011
Reputation Points: 10
Solved Threads: 0
 

Thanks "georgeskayal". The code is working......

deveshdashora
Newbie Poster
1 post since Sep 2011
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You