Solved

form run report

Posted on 2013-12-22
9
466 Views
Last Modified: 2014-01-07
hi
i have form my-form
is this code enoph to run the report  Acct_Stat_Amt

 RUN_PRODUCT(REPORTS,'Acct_Stat_Amt',SYNCHRONOUS,RUNTIME,FILESYSTEM);

note :  
report Acct_Stat_Amt has its parameter , i would like to use the report parameter each time
0
Comment
Question by:NiceMan331
  • 5
  • 4
9 Comments
 
LVL 9

Expert Comment

by:MarkusId
ID: 39735534
Hi,

If you want to definitely view the parameter form of the report, it may be useful to set this parameter:
DECLARE
  v_paramlist PARAMLIST;
BEGIN
  v_paramlist := create_parameter_list('paramlist1');
  add_parameter(v_paramlist, 'ParamForm', TEXT_PARAMETER,'yes');
  run_product(reports,'Acct_Stat_Amt', synchronous, runtime, filesystem,v_paramlist);
  destroy_parameter_list(v_paramlist);
END;

Open in new window

0
 

Author Comment

by:NiceMan331
ID: 39743197
look
i put this code

DECLARE
      X PARAMLIST;
BEGIN        
 
       X := CREATE_PARAMETER_LIST('T1');
       add_parameter(x, 'ParamForm', TEXT_PARAMETER,'yes');
  ADD_PARAMETER(X,'P1',TEXT_PARAMETER,15128);
  ADD_PARAMETER(X,'P2',TEXT_PARAMETER,'01-11-2013');
  ADD_PARAMETER(X,'P3',TEXT_PARAMETER,'30-11-2013');
          RUN_PRODUCT(REPORTS,'Acct_Stat_Amt',SYNCHRONOUS,RUNTIME,FILESYSTEM,X);
          DESTROY_PARAMETER_LIST('T1');      
END;

but the report didn'r run
what is the requierement of the report file
because after converting the report to rep , it becomes named : acct_stat_amt.rep
and under same folder of the form
also , please check the other 2 pararmeter , dates . is it ok
0
 
LVL 9

Accepted Solution

by:
MarkusId earned 500 total points
ID: 39746138
Hi,

Does the reports engine open? If so, try in the menu of the reports engine to open "Show log" and check, if there is an error message there.

Furthermore, both rdf and rep-files should work - could you try to give the whole file-path (e.g. 'c:\reportfiles\Acct_Stat_Amt.rep') and check whether it is working then?
0
 

Author Comment

by:NiceMan331
ID: 39747665
yes , the report engine open , and it show the following error ?

Unable to open file 'Acct_Stat_Amt'.
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 9

Expert Comment

by:MarkusId
ID: 39748148
Then please give the full path (including the file extension) as parameter as described in my last post and try again.
0
 

Author Comment

by:NiceMan331
ID: 39749479
it is ok now , it run
but it desplay the parameter form
how to avoid desplaying parameter form
0
 
LVL 9

Expert Comment

by:MarkusId
ID: 39750027
Add a text-parameter called ParamForm and set it to 'no':

add_parameter(x, 'ParamForm', TEXT_PARAMETER,'no');

Open in new window

0
 

Author Comment

by:NiceMan331
ID: 39764321
SORRY FOR DELAY , i was in hospital for 10 days
i tried the following :

	DECLARE
	X PARAMLIST;
	
BEGIN  	
	 X := CREATE_PARAMETER_LIST('T1');
	 add_parameter(x, 'ParamForm', TEXT_PARAMETER,'no');
         RUN_PRODUCT(REPORTS,'E:\MyOracle\Projects\GL_INt\Acct_Stat_Amt.rep',SYNCHRONOUS,RUNTIME,FILESYSTEM,X);
          DESTROY_PARAMETER_LIST('T1');	
END;

Open in new window


BUT IT STILL showing the parameter form
0
 

Author Comment

by:NiceMan331
ID: 39764397
sorry
i opened the report before saving the form
it is ok now
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Subquery in Oracle: Sub queries are one of advance queries in oracle. Types of advance queries: •      Sub Queries •      Hierarchical Queries •      Set Operators Sub queries are know as the query called from another query or another subquery. It can …
This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now