Solved

form run report

Posted on 2013-12-22
9
467 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.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Oracle Database creation fails 5 49
System.InvalidCastException: Specified cast is not valid 10 67
SQL Retrieve Values 4 57
automatic email alert 1 41
I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

911 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

23 Experts available now in Live!

Get 1:1 Help Now