Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

form run report

Posted on 2013-12-22
9
Medium Priority
?
476 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 2000 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
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 

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
 
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Note: this article covers simple compression. Oracle introduced in version 11g release 2 a new feature called Advanced Compression which is not covered here. General principle of Oracle compression Oracle compression is a way of reducing the d…
Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
This video shows how to recover a database from a user managed backup

772 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