Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

form run report

Posted on 2013-12-22
9
Medium Priority
?
475 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 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
Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

 

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

Fill in the form and get your FREE NFR key NOW!

Veeam® is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

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…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
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.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…

715 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