Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Run a Form from report 1

Status
Not open for further replies.

prosuc

Programmer
Aug 14, 2002
53
CL
The developer demo show a drill down from a report, calling a new report. I want to know if is possible run a Form from report.

I try the following command from a button in the report :
SRW.RUN_PRODUCT(FORMS,'c:\forms\xxxx.fmx')

but, I cant compilate the PL/SQL.

thanks.
Pablo.
 
srw.run_product is not valid built in, so ur getting compilation errors.

 
then????

don't exist a valid solution?
 
Hi Pablo,
This can be achived if you generate your report in PDF Format , open the PDF report and then Press the button to call your form as follows:

Step 1:
Create a Push button in your report.

Step 2:
Open the Property pallete of the Button
--> Under button Behaviour property
--> Set Type to PL/SQl
--> In PL/Sql trigger write a null as follows:
Code:
procedure U_1ButtonAction is
begin
 null;
end;

--> Under Advanced Layout Property
--> Click on Format Trigger and write following code:
Code:
function U_1FormatTrigger return boolean is
 L_rep_string     varchar2(3000);
begin
 L_rep_string := 'ifrun60 D:\Projects\ALS\Forms\ALSD0650.fmx userid=scott/tiger@dbn020';  
 srw.set_pdf_action(L_rep_string );
 return (TRUE);
end;

Generate the report in PDF format.

Open the PDF report.

Click on Push button, your form will be called as required.

HTH
Regards
Himanshu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top