Solved

form run report

Posted on 2013-12-22
9
473 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

 

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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
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.
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.
Suggested Courses

615 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