Passing parameters from Forms6i to Reports.
Hi,
I have table STATUS with fields STATUS_NO, DESCR
I am using the following code in when button press trigger for passing parameter from Form 6i to Reports at runtime.
DECLARE
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
BEGIN
repid := find_report_object('rep1');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=no status_no='||:ST);
v_rep := RUN_REPORT_OBJECT(repid);
END;
When I press the button and enter value 1 in ST Text item it display a blank page (no data) of report.
I am using the following Query .
select status_no,descr from status
where status_no=:st
please send me the solution of this problem on urgently basis.
Best Regards,
Shahzad
My first guess is that the parameters are not matching:
you are setting the parameter status_no when calling the report but the report will be expecting a parameter called st.
Similar Messages
-
Passing parameters from FORM to REPORT
Hello All,
How to pass parameters from a FORM to a REPORT in Oracle Application Server Portal.Vamsi, Are u capturing the imputs for these parameters in the form??
If u are capturing them in the form, then u need to add them to a parameter list (TEXT_PARAMETER) and while calling the report u can send it as a parameter in the RUN_PRODUCT call.
Pls check the syntax for adding parameters and calling report from form in the form builder help. -
Passing Parameters from Forms to Reports
I created a report and a form. Create a param list. I'm trying to pass the parameters to the report when I'm doing run_product. The report comes up with the parameter screen.
My problem is, as I am passing all the values what I need from the form, my report query should automatically query against these parameters and bring me the result.
For example form is passing dept 49. My report should not display a parameter form asking me to type the dept number. It should take dept 49 in it's where clause for the query and return the result set.
Can any one give me some suggestions ASAP. Very urgent.
Thanks in advance.
Ashaugandhar,
please start looking at Run_Report_Object as using Run_Product to run Reports is desupported in Forms9i
Frank -
How to pass parameters from Forms to Reports
dear all,
i'm running a report from a form using run_product(), now i want
to pass a parameter from a form to report, say i want to display
all the employees of deptno=10, so what parameter should i give
in run_product() and what modifications should i make in the
report???
thanks and regards
Tariq.Yeah,
You can pass parameters to from form to report using
Parameter list. E.g. You want to display all employees of Dept
10.
1. Create report with one user paramter say p_dept
2. Now Using Parameter list and Run Product you can call report,
see following procedure.
/* This Procedure passes department number as a paramter to
Report and displays Report.
Author - Mr. Adinath R. Kamode
Parameter - Deptname (p_dept)
PROCEDURE CALL_REPORT (V_DEPT IN NUMBER)
V_PLIST PARAMLIST; -
- Parameter List and Name
V_PLISTNAME VARCHAR2
(30) := 'RPTLIST';
BEGIN
-- Check existance of Parameter List
V_PLIST := GET_PARAMETER_LIST(V_PLISTNAME);
IF ID_NULL (V_PLIST) THEN
V_PLIST := CREATE_PARAMETER_LIST
(V_PLISTNAME);
IF ID_NULL (V_PLIST) THEN
MESSAGE('Error in
creating parameter list.');
MESSAGE('.');
RAISE
FORM_TRIGGER_FAILURE;
END IF;
-- Add parameter data , name must be same as in Report
ADD_PARAMETER(V_PLIST,'P_DEPT',TEXT_PARAMETER,TO_CHAR
(V_DEPT));
-- Don't display parameter Form
ADD_PARAMETER(V_PLIST,'PARAMFORM',TEXT_PARAMETER,'NO');
RUN_PRODUCT
(REPORTS,'DEPT.RDF',ASYNCHRONOUS,RUNTIME,FILESYSTEM,V_PLIST,NULL)
ELSE
DESTROY_PARAMETER_LIST(V_PLIST);
END IF;
END;
Adi -
Error in passing parameters from Form to Report
Hi All
I am using 9ids
I want to run report from a form
From one procedure as
vc_runformat:= 'htmlcss'; vc_reportserver:=:Global.repsrv;
set_report_object_property(rep_id,REPORT_EXECUTION_MODE,BATCH);
set_report_object_property(rep_id,REPORT_COMM_MODE,SYNCHRONOUS);
set_report_object_property(rep_id,REPORT_DESTYPE,CACHE);
set_report_object_property(rep_id,REPORT_DESFORMAT,vc_runformat);
set_report_object_property(rep_id,REPORT_SERVER,vc_reportserver);
set_report_object_property(rep_id,REPORT_OTHER,'comp_code='||:global.vc_comp_code||' vc_name='||cust_name||' inv='||inv||' invoice_no='||inv_no||' invoice_date='||inv_dt||' Paramform=no');
vc_reportserverjob:=RUN_Report_Object(rep_id);
vjob_id:=substr(vc_reportserverjob,length(vc_reportserver)+2,length(vc_reportserverjob));
vc_rep_status :=REPORT_OBJECT_STATUS(vc_reportserverjob);
if vc_rep_status='FINISHED' then
web.show_document('/reports/rwservlet/getjobid'||vjob_id||'?
server='||vc_reportserver,'_blank');
else
set_alert_property('alert_ok',alert_message_text,'Report failed with error message '||vc_rep_status||' !');
al:=show_alert('alert_ok');
end if;
END;
Report does not run
now what i have found while rnd that
when i pass a lot of userdefined argument
it gives error.
and if passed one,two,three userdefined argument than it works.
in this example only
when i passed
inv='10016'
dt='06-09-2003'
inv_no='010016'
comp_code='01'
vc_name='PRODIMPEX'
with these reports run fines but
when i increase name data with one caharacter also it gives error
say
vc_name='PRODIMPEXR'
report does not run.
vc_name in report has character type with length 100
but a lot of argument is to be passed more.
I have also checked variable length. its fine
i think there would be some setting in some report system file having the length of parameters
which can be passed.
please help me if u know this.
thanks in advanceHi,
this sounds familiar. Didn't you post exactly the same question a couple of weeks ago ? Don't remember what I replied to you, possibly to use varchar2 instead of character and give it a try. If this doesn't work, I remember that there is a way to use serverside command files for common parameters that needs to be passed. At least I can not find any bug filed against this. If the behavior doesn't change to teh better I therefore suggest to talk to customer support and file a bug.
Frank -
Passing parameters from Forms to Reports - Unhandled exception error
Hi there,
I am passing parammeters to my Reports through Forms. I am using the built-in RUN_REPORT_OBJECT to invoke and run my report.
DECLARE
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
BEGIN
repid := FIND_REPORT_OBJECT('MY_REPORT');
SET_REPORT_OBJECT_PROPERTY(repid, REPORT_OTHER,
'p1='| |to_char(:block.p1_field)| |
' p2='| |to_char(:block.p2_field)| |
' p3='| |to_char(:block.p3_field)| |
' paramfrom=no');
v_rep := RUN_REPORT_OBJECT(repid);
EXIT_FORM;
END;
In one of my reports, after the report was invoked on the previewer window and I closed it, an unhandled exception error message appears.
Are there any restrictions on the length of REPORT_OTHER parameters/value, as in this form, there are quite a number of parameters set to passed into the reports?
I did not encounter this problem when running the report using the default REPORTS PARAMETER FORM to pass in the parameter. It is only when I pass in through FORMS using SET_REPORT_OBJECT_PROPERTY, then the error appears.
I did not encounter this error with other reports which have little parameters.
Regards,
Hon KoatPang,
Not sure it this will make the problem go away, but you could try to send the parameters in a parameter list, instead of setting the REPORT_OTHER values.
The syntax is the same you use to pass parameter list from one form to another:
declare
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
v_list paramlist;
c_listname constant varchar2(30) := 'my_list';
begin
repid := FIND_REPORT_OBJECT('MY_REPORT');
v_list := get_parameter_list(c_listname);
if not id_null(v_list) then
destroy_parameter_list(v_list);
end if;
v_list := create_parameter_list(c_listname);
add_parameter(v_list, 'P1', text_parameter, to_char(:block.p1_field));
add_parameter(v_list, 'P2', text_parameter, to_char(:block.p2_field));
v_rep := RUN_REPORT_OBJECT(repid, v_list);
end;Hope this solves your problem,
Pedro -
Passing parameters from portlet reports to portlet forms
Hi,
I'm tring to pass parameters between a Report displayed as a portlet in a page ( page 1) and a form displayed in other page ( page 2).
The problem is i can't do this.
I only can pass parameters from a report ( running as normal or in a portlet displayed in a page) to a form running "normal" by using application links. Can i do this between a report that show's me every employees of scott.emp table. Then when i click on each employee, it open's me another page with the portlet form of the specified employee.
I'm not sure i made myself clear. Please send me some feedback.
PedroI have the same problem. Please let me know if this could be done.
In particular my form is a type of "Form on Table/View."
Thanks
Henry -
Passing parameters from REPORTS to FORMS.
Hi,
Could anyone help my on this, I'm trying to pass parameters from reports to forms is it possible? could anyone give me an idea how do I have to proceed.
thank youk,
binohttp://technet.oracle.com:89/ubb/Forum4/HTML/009647.html
-
How to pass parameters from a dashboard or report to any OA Framework-based
In Metalink Note:276708.1, about Oracle E-Business Intelligence Minipack L (4.0.9).
Common Features for Dashboards and Reports section say:
You can now pass parameters from a dashboard or report to any OA Framework-based application page.
How to do pass?
Regards,
AroneNobody help me?
-
Passing parameters from BSP to BW report
How to pass parameters from a BSP application to BW in order to execute the BW report
In BW template
a different URL is generated for selection made in each input field.
I have 4 different URL's now.
and when I push the Execute button a URL is generated which looks incomplete and it does not show all the parameters( lot of things are happeninng inside like authorizatins, session handling etc).
The URLS are shown below
URL genarated when the query is executed in the browser:
http://coles33.co.lsil.com:1080/SAP/BW/BEX?variable_screen=X&template_id=0QUERY_TEMPLATE&INFOCUBE=ZAMOEMP1&QUERY=ZAIMREP1
After selecting Location:
http://coles33.co.lsil.com:1080/SAP/BW/BEX?SAP-LANGUAGE=E&PAGENO=1&CMD_ID=1&REQUEST_NO=0&VAR_VALUE_EXT_2=CA01&F4CMD=FINISHED
After selecting org:
http://coles33.co.lsil.com:1080/SAP/BW/BEX?SAP-LANGUAGE=E&PAGENO=1&CMD=PROCESS_VARIABLES&INDEX=3&VAR_VALUE_HELP_SET_LINE=3&REQUEST_NO=0&VAR_VALUE_HELP_SET_5=5
After pushing Insert:
http://coles33.co.lsil.com:1080/SAP/BW/BEX?SAP-LANGUAGE=E&PAGENO=1&CMD=PROCESS_VARIABLES&REQUEST_NO=0&CMD=PROCESS_VARIABLES&SUBCMD=VAR_NEW_LINES&VARID=WNTEST1%200001
After making second selection for org:
http://coles33.co.lsil.com:1080/SAP/BW/BEX?SAP-LANGUAGE=E&PAGENO=1&CMD=PROCESS_VARIABLES&INDEX=4&VAR_VALUE_HELP_SET_LINE=4&REQUEST_NO=0&VAR_VALUE_HELP_SET_15=15
After selecting FLSA:
http://coles33.co.lsil.com:1080/SAP/BW/BEX?SAP-LANGUAGE=E&PAGENO=1&CMD_ID=2&REQUEST_NO=0&VAR_VALUE_EXT_5=EX&F4CMD=FINISHED
after selecting date:
NO URL GENERATED
After pushing Execute:
http://coles33.co.lsil.com:1080/SAP/BW/BEX?SAP-LANGUAGE=E&PAGENO=1&CMD=PROCESS_VARIABLES&REQUEST_NO=0&CMD=PROCESS_VARIABLES&SUBCMD=VAR_SUBMIT&VARID=
I am not able to understand how to call this url from BSP page.( I also have multi-selection for location and org)
regards
Aditya -
Automatically Pass Parameters From Crystal To SAP B1
So, I've searched extensively, and haven't been able to find an answer to my unique issue.
This question pertains to linking a Crystal Report by parameter values to the OWOR table in SAP B1, and automatically passing those parameter values from the active record in SAP. Several other tables are used in sql joins, but the report is generated from an OWOR production order. I should start by stating that the report works great when manually populating the parameter fields when SAP calls for them.
Overview:
I've written a report in Crystal that contains several sub reports, some of which are looking to the DocEntry field as the parameter (DocKey@) and others that do not look to the DocEntry field at all - but rather use another field on the form to pull up information that spans more than just that one production order. I've chosen to upload as a layout in SAP (as that is all I've worked with up to this point, and it seems it needs to be to automate from a production order); but as I continue to research, it appears DocKey@ is mandatory when uploading as a layout, and in order to view the report from the actively selected production order, it must be a layout. Does that mean the parameter is required in all sub reports? Is it required in any sub report?
I have two main issues that I need to hurdle for this report to work how I would like it to:
1. Three of the eight Commands (one main command and seven sub-report commands) use the DocKey@ as the parameter to pass from SAP back to Crystal. The main report command, as well as four of the sub reports/commands are looking to another field in the OWOR record - which happens to be a re-seller defined field (UDF). For all intensive purposes, let's call this field BatchID. I'm assuming the sub report commands run in succession, one after the next. The reason I need to use BatchID as the parameter to pull from the record, rather than DocEntry, is there are other records that contain the same BatchID, and I want all of the info pertaining to that BatchID to populate on the report.
Q1: The first command containing DocKey@ is automatically populated by SAP, and the user does not have to key that one in. However, the next two DocKey@ parameters do not automatically populate, and the user is asked for those values. How can I fix this?
Q2: How can I automate the passing of BatchID so the user does not have to fill it in 5 times when they wish to preview the report(layout)? Can I link ObjectID@ to any field in OWOR? Is there any other way like creating a stored procedure or something , to automate the passing of that variable from the SAP active record to the crystal report - so the user doesn't have to key it in several times just to pull up the report?
Thank you so much for even reading, let alone helping me with this issue!!
Cheers,
NickHi
I had the same problem. Take a look at this newsgroup article on the businessobjects
website :
http://support.businessobjects.com/library/kbase/articles/c2015264.asp
Grieg
"Rada Pickens" <[email protected]> wrote:
>
>Hi,
>
>I'm getting the same error message, I was wondering if you fixed the
>problem.
> I'm stumped, can you help?
>
>Rada
>
>
>"JAI" <[email protected]> wrote:
>>
>>I am passing parameters, from the JSP page to Crystal Report, i took
>>the code from
>>the below mentioned url, i dont know, it is something wrong with the
>>jsp page
>>or crystal report.
>>i have created parameter field in crystal report to receive the value
>>from the
>>jsp page.
>>If u r not clear with the error, please reply to me.
>>
>>i took the code from the below mentioned page
>>
>>reference page:
>>----------------------
>>http://dev2dev.bea.com/trainingevents/webinars/012804_faq.jsp
>>parameterFieldsViewReport.jsp
>>
>>
>>error displaying in the jsp page
>>-----------------------------------
>>com.crystaldecisions.report.web.viewer.CrystalReportViewer
>>Some parameters are missing values
>
-
Passing parameters from Form6i to Report6i
Hi there,
I have forms that call reports and when this form call the report, it is suppose to pass parameters to the report so that the report display what is needed.
It works fine until I start to deploy the form on the web. I managed to called the reports but I could not pass the parameters.
Can any one give me some sample codes or idea of passing parameter from form to report while access these information through a web site?
Thankzhi,
passing parameter from forms to reports in web using
web.show_document('http://servername:port/dev60cgi/rwcgi60.exe?server=reportservername&report=reportname&userid=username/password@database&destype=cache&desformat=HTML¶metername='||value for the parameter);
in the above coding the parameter name has to be same as the parameter in the report.
try this.
if u need some more help mail me at [email protected]
bye.
natesh. -
Passing parameters from forms9i to reports9i
I am using forms - 9.0.2.9.0 and reports - 9.0.2.0.3.
I am trying to pass parameters from forms 9i to reports 9i. When I use set_report_object_property(rep_id, report_other, values) I am getting an error. (FRM-41214).
I have to send a lot of parameter values.
Does anyone know the best method to achieve this?
ThanksHello,
There are 2 ways to pass user-defined parameters from Forms 9i to Reports 9i.
1. Using the SET_REPORT_OBJECT_PROPERTY(<report_id>, REPORT_OTHER, 'concatenated_param_values').
2. Using Forms parameter lists in the RUN_REPORT_OBJECT call. This method is useful when passing a large number of parameters to Reports.
Please take a look at the Forms-Reports 9i Integration document on OTN at http://otn.oracle.com/products/forms/pdf/frm9isrw9i.pdf for a detailed explanation of these techniques. The usage of Forms parameter lists is covered under Appendix B.
Thanks,
The Oracle Reports Team. -
Passing Parameters from Forms to Discoverer
Hello Everybody,
Is there a way to pass parameters from Oracle Forms to discoverer 4??
I want to call Discoverer from a Form and pass parameters to a sheet.
ThanksHi,
I don't have 10g right now, so can't test it...
Isn't it possible to just put the params you won't show to your users 'behind' other objects on the param form?
Strange behaviour anyway, in 6i Reports does not seem to care wether the params are on the form or not.
Rgds,
Guido -
Pass parameters from JSP Dyn Page to WDJ Application
Hi,
I am trying to pass parameters from my JSPDyn Page to WDJ Application.
I am using NWDS 7.1 EHP1
My code is :
function to_WEBDYNHK()
EPCM.relaxDocumentDomain();
EPCM.doNavigate
('ROLES://pcd:portal_content/Himanshu.Himanshu/TestDynUIApp?DynamicParameter="hkparam%3Dqwertyuio"');
This method is being called on click of a button.
hkparam is the parameter in question.
The JSPDyn page is an iView and the WDJ application is a page and both have been assigned to a role.
In the properties of the WDJ Page, I have removed DymanicParameter from "Do not Forward These Parameters To Web Dynpro" property.
However I am getting null as the value of hkparam in my WDJ application.
The code used is :
IWDRequest request = WDProtocolAdapter.getProtocolAdapter().getRequestObject();
String param1= request.getParameter("hkparam");
What seems to be missing here.
Please help.
I went through the documentation on SDN but it does not seem to help.
TIA,
HimanshuHi Himanshu,
Try this code.
EPCM.doNavigate("ROLES:portal_content/Himanshu.Himanshu/TestDynUIApp?hkparam=Dmypass1123")
if the parameter is hkparam and the value to be passed is Dmypass1123. You need not change any design time property of the WD page, and WDProtocolAdapter should retrive the parameter.
Regards,
Vishweshwara P.K.M.
Maybe you are looking for
-
Keychain Nuclear Option?
I did a 10.5 "upgrade" archive-install, and since then the Keychain.app has been hosing me. I've tried many things, including, most recently, deleting everything in ~/Library/Keychains and trying to reset everything from Keychain.app. I also deleted
-
http://newmicon.byethost31.com Having issues, the swf seems to load ok in Chrome. However when I try with IE, the site just stops loading typically half way through. Any ideas? Thanks
-
Exceptions in Substep: Write Data Package
Hi All, Has anyone encountered this error message in BI7? We just recently applied SP12 and it solved an ABAP dump (SAPSQL_ARRAY_INSERT_DUPREC) we were seeing while trying to load an ODS. However, I'm now seeing a new error message while loading: Exc
-
My iPod is stuck on the startup screen, showing just the apple logo. Has anyone had this problem before? If yes, then how did you solve it?
-
How do I check why database is running slow? I got a complaint from user saying that database is slow, How do I check which process is taking to long? Select * from v$version; Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Producti