Reports parameter form - LOV
I have a report that was developed in version 6i, I am presenting this report on the web, with a parameter form. Both fields on the parameter form have list of values associated with them. When I run the report, the fields display okay - with the drop down box and values, but when i submit query I receive
REP-0788: Warning: The value of restricted LOV parameter DATE2 (name of field) is not among the selectable values
Any ideas??
Thanks
JLH
You have to use lexical variable instead of bind variable
Similar Messages
-
Not getting Reports Parameter Form in web-forms environ
I am not able to get a report parameter form to appear for a
report called from forms via a 'run_product' command. It works
fine in client/server mode. In web-forms the report just goes
ahead and runs without the needed parameters. I have tried
explicitly passing a parameter list with the 'paramform' set to
'yes' and this did nothing. I have this on a NT box with latest
Dev2 patches applied.
1. Is the reports parameter form supposed to work in web-forms
mode?
2. How do you set it up to work, if it is supposed to work?
Thanks for any replies.
nullI guess you have to use web.show_document - I found this article
on DevConnect:
Article-ID: <Note:68647.1>
Circulation: PUBLISHED (EXTERNAL)
Platform: GENERIC Generic issue
Subject: How to show Reports HTML PARAMFORM when
calling Reports
from Forms
Modified-Date: 09-AUG-1999 18:02:04
Document-Type: BULLETIN
Content-Type: TEXT/PLAIN
Impact: MEDIUM
Component: SQLREP
PURPOSE:
This bulletin explains how to overcome the current restriction
of calling an Oracle Report from Oracle Forms and showing a
PARAMETER FORM. This is currently not possible when using the
RUN_PRODUCT built-in with
WEB DEPLOYED APPLICATIONS.
DESCRIPTION:
When you call an Oracle Report from Oracle Forms using
RUN_PRODUCT in Client-server, you can specify an optional
parameter called PARAMFORM to display the parameter form defined
in the Oracle Report.
For web-deployed applications, the PARAMFORM parameter can be
set to HTML to produce a HTML version of the parameter form.
When calling Oracle Reports from an Oracle Form using
RUN_PRODUCT and specifying PARAMFORM=HTML in the parameter list,
the Oracle Reports parameter form doesn't show the in the client
browser. If the Oracle Reports Cartridge/CGI is used and
PARAMFORM=HTML is specified, then the Oracle Reports parameter
form does appear in the client browser.
Oracle Forms does not use either the Cartridge or the CGI with
RUN_PRODUCT, and it's these thin clients that produce the HTML
Oracle Reports parameter form.
As a workaround to this problem, you can use either the
Cartridge or the CGI with the WEB.SHOW_DOCUMENT Oracle Forms
builtin. This does require either the Oracle Reports Cartrige
or the CGI to be installed. Neither of these are necessary if
the parameter form isn't required.
INSTRUCTIONS:
The following items need to be installed:
1. Oracle Reports Multi-tier Server.
2. Oracle Reports Web Cartridge
or
Oracle Reports Web CGI.
Here is a typical URL that can be specified in a browser
to run a report using Oracle Reports Cartridge implementation:
http://your_webserver/r30ows?
server=repserver21+report=emp_30.rep+
destype=cache+desformat=html+userid=scott/tiger@mydb+paramform=ht
ml
For CGI implementation:
http://your_webserver/your_vir_cgi_dir/r30cgi32.exe?
server=repserver21+report=emp_30.rep+destype=cache+desformat=html
userid=scott/tiger@mydbparamform=html
The Oracle Reports parameter form now is shown. This can be
used with WEB.SHOW_DOCUMENT issuing the request to execute the
report to the Oracle Reports Multi-Tier Server instead of using
RUN_PRODUCT.
The following code may be added to a program unit, which then
issues the request to run the report:
IF get_application_property(user_interface) = 'WEB' then
/* Use Cartridge configuration with WEB.SHOW_DOCUMENT. */
WEB.SHOW_DOCUMENT('http://your_webserver/r30ows?
server=repserver21+report=emp_30.rep+destype=cache+desformat=html
userid=scott/tiger@mydbparamform=html', '_self');
/* OR for CGI configuration. */
WEB.SHOW_DOCUMENT
('http://your_webserver/your_vir_cgi_dir/r30cgi32.exe?
server=repserver21+report=emp_30.rep+destype=cache+desformat=html
userid=scott/tiger@mydbparamform=html', '_self');
ELSE
/* use RUN_PRODUCT for client-server with PARAMFORM=Yes. */
Add_Parameter(plid, 'PARAMFORM', TEXT_PARAMETER, 'YES');
RUN_PRODUCT
(REPORTS,'emp_30.rep',SYNCHRONOUS,RUNTIME,FILESYSTEM,plid);
END;
RELATED DOCUMENTS:
Developer/2000: Guidelines for Building Applications, Deploying
Applications on the Web (for detailed instructions on setting up
the Oracle Reports Cartridge and CGI)
Laura (guest) wrote:
: I am having the same problem with Dev 6 on NT. The parameter
: screen for reports works in client/server but not web using
run-
: product. I am getting error REP-0788: Warning the value of
the
: restricted LOV parameter is not among the selectable values.
: Any reports without a parameter screen work fine with run-
: product.
: Any help would be appreciated.
null -
Report parameter form in ADF/JHS
I am looking for the best way to develop a ADF page (with or without JHS) similiar to the Headstart report parameter form in Oracle Forms. I found a dynamic parameter form example on Steve Meunch's "Not Yet documented ADF Sample Applications", #93 that seems ideal. Has anyone implemented this approach using the existing Headstart tables? How were the LOV queries handled?
Any feedback would be appreciated.Hi Carl,
Include PARAMFORM=YES in the URL to display the parameter form in RDF to be displayed in the web.But it is showing a submit and reset button at the top.I am not sure how to get rid of it.Hope this will help
Gracelin -
Report Parameter form not showing list of values in Report svr
I was using reports 6i where I used to have list box in report parameter form. I now converted recompiled my reports in 10g and when I run I am not geting the list of values. I get the values as a list below the field
ex.
ITEM :___________
box,book,pencil,rubber,
dvd,floppy...
previously it was coming as a list in the item field
thanks
MGHello,
http://www.oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwwhthow/howto/params/pmp_creating_list_of_values.htm?tp=true
If you run the report from a Web browser and the list of values is unrestricted, the HTML Parameter Form will display a text field instead of a combo box, and a list of static values that you can copy and paste into the text field.
Regards -
REP-50134 occurs when using the submit button on the Reports Parameter Form
Good Morning,
I get the "REP-50134: Cache subitem reports does not exist" error after clicking on the Submit Button from a Reports parameter form.
I am using Forms/Reprots 9i.
Using the source code given in the Whitepaper 'Oracle Forms Services - Using Run_Report_Object() to call Reports with a parameter form', all works well when paramform=no, but when I have a Form print a report with paramform=yes, the parameter form appears correctly, but generates the error after clicking the Submit Button.
Any inputs as to causation or possible places to look to solving this problem would be greatly appreciated.
Thank youHello and thanks.
The value in the tag is <form method=post action="reports?">
Looking at this I suspect my problem is related to this setting. I am trying to follow all the instructions in the White Papers but they are a little confusing as they are not all exactly the same. Each attempts to explain a specific functionality without regards to the whole.
For instance I believe I need to have the variables P_ACTION, P_USER_CONNECT and P_SERVER_NAME in the report being called and then add a Before Parameter Form trigger to reset the values. But this seems to duplicate and override what has already been sent via the REPORT_OTHERS property. It is a tad bit confusing.
Can you confirm?
Thanks for any clarification you can provide. -
URGENT: Report parameter form set to yes in calling report from menu
I have write this code for calling report from menu module. But where i put the code
PARAMFORM='YES' to display the report parameter form in order to enter the parameter by user.
DECLARE
pl_id ParamList;
repid REPORT_OBJECT;
v_rep varchar2(100);
v_server VARCHAR2(100);
rep_status varchar2(100);
v_host VARCHAR2(100);
BEGIN
select rep_server into v_server from reports_data;
select machine into v_host from reports_data;
pl_id := Get_Parameter_List('tmpdata');
IF NOT Id_Null(pl_id) THEN
Destroy_Parameter_List( pl_id );
END IF;
pl_id := Create_Parameter_List('tmpdata');
Add_Parameter(pl_id,'P_C_NAME',TEXT_PARAMETER,:GLOBAL.COMPANY);
Add_Parameter(pl_id,'P_B_NAME',TEXT_PARAMETER,:GLOBAL.BRANCH);
Add_Parameter(pl_id,'P_user',TEXT_PARAMETER,:GLOBAL.user);
repid := find_report_object('REPORTOBJ');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME,getpath||'E_open_balance.RDF');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'htmlcss');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,v_server);
v_rep := RUN_REPORT_OBJECT(repid, pl_id);
rep_status := REPORT_OBJECT_STATUS(v_rep);
WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
LOOP
rep_status := report_object_status(v_rep);
message('Running');
END LOOP;
IF rep_status = 'FINISHED' or rep_status is NULL THEN
WEB.SHOW_DOCUMENT('http://'||v_host||'/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server='||v_server,'_blank');
ELSE
null;
END IF;
END;Jeneesh,
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,
'paramform=YES
what about this variable ?
P_VAR1 = ........'); -
Problem in Insertion into table through After Report Parameter form trigger
Hi All,
I am getting problem in inserting some data into temp table through Report.
My requirement is like that, I have to do a calculation based on user parameters, and then insert the data into the temp table. I wanted to do this into After Report Parameter form trigger function. I have done all the calculation and wrote all the insert statement in that function. There is no problem in compilation. then I am taking value from this temp table in my formula columns.
When I run this report, it hangs, don't understand what is the problem.Can anybody help me out in this.
Thanks,
NidhiThe code is as follows:
function AfterPForm return boolean is
CURSOR CUR_RECEIPT(RECEIPT_NUM_FROM NUMBER, RECEIPT_NUM_TO NUMBER) IS
SELECT DISTINCT receipt, item_no FROM xxeeg.xxeeg_1229_sp_putaway WHERE RECEIPT BETWEEN
RECEIPT_NUM_FROM AND RECEIPT_NUM_TO ;
V_CUR_RECEIPT CUR_RECEIPT%ROWTYPE;
begin
OPEN CUR_RECEIPT(:RECEIPT_NUM_FROM, :RECEIPT_NUM_TO);
FETCH CUR_RECEIPT
INTO V_CUR_RECEIPT;
LOOP
EXIT WHEN CUR_RECEIPT%NOTFOUND;
IF V_CUR_RECEIPT.ITEM_NO = 'TEST1' AND V_CUR_RECEIPT.RECEIPT = '12' THEN
INSERT INTO SP_TEMP
(RECEIPT, ITEM_NO, LOCATION1)
VALUES
(V_CUR_RECEIPT.RECEIPT, V_CUR_RECEIPT.ITEM_NO, 10);
UPDATE SP_TEMP
SET LOCATION2 = 12
WHERE RECEIPT = V_CUR_RECEIPT.RECEIPT AND ITEM_NO = V_CUR_RECEIPT.ITEM_NO;
UPDATE SP_TEMP
SET LOCATION3 = 13
WHERE RECEIPT = V_CUR_RECEIPT.RECEIPT AND ITEM_NO = V_CUR_RECEIPT.ITEM_NO;
UPDATE SP_TEMP
SET LOCATION4 = 14
WHERE RECEIPT = V_CUR_RECEIPT.RECEIPT AND ITEM_NO = V_CUR_RECEIPT.ITEM_NO;
ELSE
IF V_CUR_RECEIPT.ITEM_NO = 'TEST2' AND V_CUR_RECEIPT.RECEIPT = '12' THEN
INSERT INTO SP_TEMP
(RECEIPT, ITEM_NO, LOCATION1)
VALUES
(V_CUR_RECEIPT.RECEIPT, V_CUR_RECEIPT.ITEM_NO, 10);
UPDATE SP_TEMP
SET LOCATION2 = 16
WHERE RECEIPT = V_CUR_RECEIPT.RECEIPT AND ITEM_NO = V_CUR_RECEIPT.ITEM_NO;
UPDATE SP_TEMP
SET LOCATION3 = 17
WHERE RECEIPT = V_CUR_RECEIPT.RECEIPT AND ITEM_NO =V_CUR_RECEIPT.ITEM_NO;
UPDATE SP_TEMP
SET LOCATION4 = 18
WHERE RECEIPT = V_CUR_RECEIPT.RECEIPT AND ITEM_NO = V_CUR_RECEIPT.ITEM_NO;
ELSE
INSERT INTO SP_TEMP
(RECEIPT, ITEM_NO, LOCATION1)
VALUES
(V_CUR_RECEIPT.RECEIPT, V_CUR_RECEIPT.ITEM_NO, 10);
UPDATE SP_TEMP
SET LOCATION2 = 19
WHERE RECEIPT = V_CUR_RECEIPT.RECEIPT AND ITEM_NO = V_CUR_RECEIPT.ITEM_NO;
UPDATE SP_TEMP
SET LOCATION3 = 20
WHERE RECEIPT = V_CUR_RECEIPT.RECEIPT AND ITEM_NO =V_CUR_RECEIPT.ITEM_NO;
UPDATE SP_TEMP
SET LOCATION4 = 21
WHERE RECEIPT = V_CUR_RECEIPT.RECEIPT AND ITEM_NO = V_CUR_RECEIPT.ITEM_NO;
END IF;
END IF;
END LOOP;
COMMIT;
CLOSE CUR_RECEIPT;
return(TRUE);
end;
..................................................................................................................... -
How to display Reports parameter form in Oracle Forms 10g.
hello,
am migrating from Forms 6i applications to Forms 10g.
one of my application contain report, that report display parameter form
I wrote below code for WHEN-BUTTON-PRESSED Trigger
DECLARE
pl_id ParamList;
v_report_id report_object;
v_report varchar2(100);
vjob_id varchar2(100);
vc_rep_status varchar2(100);
BEGIN
pl_id := create_parameter_list('my_list');
add_parameter (pl_id,'P_HOSPITAL_ID',text_PARAMETER,
:bm_hospitals.hospital_id);
add_parameter(pl_id,'PARAMFORM',text_PARAMETER,'NO');
v_report_id := FIND_REPORT_OBJECT('bm_r001');
v_report := RUN_REPORT_OBJECT ( v_report_id,pl_id );
vjob_id := substr ( v_report, length(<reportservername>)+2,
length( v_report) );
vc_rep_status := REPORT_OBJECT_STATUS (v_report);
IF vc_rep_status = 'FINISHED' THEN
WEB.SHOW_DOCUMENT ('/reports/rwservlet/getjobid'|| vjob_id||
'?server=rep_mohahubkpcomp_ORaHOme_IAS'||'&userid=
bedman/bedman@bedman'||'¶mform=yes','_blank');
ELSE
message ('Report failed with error message '||vc_rep_status);
END IF;
Destroy_Parameter_List(pl_id);
END;
The Above code is running report and displaying Output perfect but cannot
display the Parameter Form at runtime.
any help in this very thankful.
Regards
Gagan.In Your code there is a line:
add_parameter(pl_id,'PARAMFORM',text_PARAMETER,'NO');
which actually disables the report parameter form.
The line:
WEB.SHOW_DOCUMENT ('/reports/rwservlet/getjobid'|| vjob_id||
'?server=rep_mohahubkpcomp_ORaHOme_IAS'||'&userid=
bedman/bedman@bedman'||'¶mform=yes','_blank');
displays the report to which vjob_id refers. At this point the report is competed so the parameters userid and paramform are useless.
Hope this helps.
Regards
Bekcic Aleksandar -
Heading Change in "Report Parameter Form"
Hi,
Is there any way to change Headings and presentation on "Report Parameter Form" in 11g,
as shown in
http://3.bp.blogspot.com/_KYY-OV98iIo/TCnw5J8TEaI/AAAAAAAAAHo/9DnTJTs8now/s1600/here03.bmp
is displaying headings like
"Report Parameters" and "Enter Values for Parameters, Enter Start: , Enter End:"
Can they be user given
FarrukhThe parameter form is inside the report and the layout of it can be altered.
The only exception to if there is an automatic parameter form....but that is not the case in the example
that you have shown.
Dave -
Urgent! Using Reports parameter forms with RUN_REPORT_OBJECT on 9iAS
Hi all, I am migrating client-server to 3-tier with 9iAS Rel2 on AIX 5.1. The forms and reports are upgraded from Forms4.5 to forms9i and Reprots 2.5. We used to have user defined parameter in parameter form(e.g. articale no.) to select records appearing in the report.
However, the Report parameter form doesn't work on web.
I have read Note : 139546.1 but I want the parameter entered in Report parameter form, not in the Form that call the report.
Does anyone has samples of Forms and Reports doing to achieve that? Thank you very much in advance.
best regards,
KathyKathy,
please have a look at the Forms and reports integration Whitepaper that is available from otn.oracle.com/products/forms. This shows you a coding example of what needs to be done to make parameter forms work on teh Web. This papaer is available for Forms9i/Reports9i and Forms6i/Reports6i
Frank -
Report Parameter Form not displayed
When I ran a report using the following procedure code in web-enabled Oracle forms ,
PROCEDURE RUN_REPORT IS
pl_id ParamList;
BEGIN
pl_id := get_parameter_list('tmpdata');
if not id_null(pl_id) then
destroy_parameter_list(pl_id);
end if;
pl_id := create_parameter_list('tmpdata');
add_parameter(pl_id, 'PARAMFORM', TEXT_PARAMETER, 'YES');
run_product(REPORTS, 'D:\ORACLE\DIVISION', SYNCHRONOUS, runtime, FILESYSTEM, pl_id, NULL);
END;
No parameter form was displayed. What do you suspect? Or report parameter form cannot be used in web-enabled Oracle forms.
Hope some experts here broaden my mind!
Many thanks,
RichardRichard,
passing paramform=yes will do it. However, beside of that I wouldn't recommedn using run_product for reports on the Web, indeed paraneter forms are a bit tricky and don't work out of the box. There is a work around that i documented in a Forms/Reports integration Whitepaper available in teh Forms6i collateral section on otn.oracle.com/products/forms. This description uses run_report_object, addressing the Reports Server.
Frank -
Reports Portlet Parameter Form LOV Format
Hi,
I have created several LOV's that I want to use in the Reports Portlet Parameter Form for running Oracle Reports, but the format I am choosing when creating the LOV's is not showing correctly on the parameter form. I am picking 'Check Box' and 'Radio Group' for several of the LOV's, but they are still displaying as Dropdowns on the parameter for. Am I doing something wrong here, can the parameter form show check boxes and radio buttons?
Thankshello,
i am afraid the answer to both questions is 'no'. i would suggest you create some HTML/JSP parameter forms for your reports. the parameter form editor of reports is very limited and for more complex requirements we suggest using other tools (or the JSP web source of reports, which is available from 9i onwards).
thanks,
ph. -
I am unable to get order by column name in oracle report parameter form
i created query like following in query builder
SELECT CASE_NO, COURT_ID, CASE_TYPE,
INITCAP(PLAINTIFF) PLAINTIFF,INITCAP( DEFENDENT) DEFENDENT,
INITCAP(COUNSEL) COUNSEL, START_DATE, PREVIOUS_HEARING_DATE,
NEXT_HEARING_DATE,INITCAP( DESCRIPTION) DESCRIPTION,
INITCAP(RELIEF) RELIEF,INITCAP(EXTENT) EXTENT,
DECREE_DATE,INITCAP(STATUS) STATUS,INITCAP( LOCATION) LOCATION,
LEGAL_FILE_NO, MSNO
FROM L_CASE_MASTER_MAIN
WHERE to_char(NEXT_HEARING_DATE,'DD-MON-YYYY')=:P_NHD ORDER BY :P_COL
and i created parameter form for these two bind variables :P_NHD,:P_COL
in,:P_COL i wrote lov as Select trim(COLUMN_NAME) from user_tab_columns where table_name='L_CASE_MASTER_MAIN' to get all the columns.
in parameter form i am able to get all the columns but when i am generating report it is not giving results as per my ordered column.
kindly let me know the solution
Report Version :Oracle Reports 11g
Db Version:Oracle 11gHi,
Ordering the column first takes place from the Data Model Itself.
Please Check your column ordering in the report data model. If it is not ordered in a right way then Rearrange it.
Remove your order by in query...
If any issues... let me know
Regards,
Soofi -
Hello,
I am currently developing an app using JHeadStart. This project will be using Jasper for reporting. I need to develop parameter forms and I was wondering if it would be good practice to use JHeadStart to generate these. I would create view objects that would represent the fields on the forms and then just have JHeadStart lay everything out. After JHeadStart is completed, I would make the necessary changes to call my report passing the parameters entered.
Does this seem like a good approach? It will make laying out my param forms considerably easier and I will be able to use drop downs, lovs, etc on these forms.
Thanks,
SteveSteve,
Yes, seems like the most efficient approach to me. You can create a method on the app module that reads the values that ADF has populated into your ViewObject and then make the Jasper API calls.
This way, you do not have to write any custom actions to collect request parametersm before calling the service method.
Steven Davelaar,
JHeadstart Team. -
Required Dependent List of Values in Reports Parameter Form
Dear All,
These days I am facing a problem in Oracle Reports(ver. 2.5). I have develope a report. In the parameter form of this report, I want a list of value (LOV) on the second field which should be dependent on the first field value.
For Example, In The Employee Details report, I have a Parameter form in which there are 2 Parameter fields, 1 is Deptno and the other is Empno. I want to attach a LOV on the Empno field but in this LOV I want to display only those empno's which should be dependent on the Deptno field.
Thanks
VipinHi,
its already online: http://thepeninsulasedge.com/frank_nimphius/2008/04/08/adf-faces-building-adf-dependent-list-boxes-in-adf-faces-table/
Frank
Maybe you are looking for
-
I updated my iPad to 7.0.6 but I find the new look very irritating. In mail I can no longer swipe left on a message to erase it. The font in calendar is so small I can't read my appointments. I happen to like the yellow paper that was in notes. C
-
[Solved] Amarok v2.8 doesn't start
Hi, With the last Amarok update (v2.8), i am getting a notification at startup : Amarok could not find any collection plugins. It is possible that Amarok is installed under the wrong prefix, please fix your installation using: $ cd /path/to/amarok/so
-
Out of memory error? Are we serious?
When using AIM on Mac OS 9, if I talk enough (litterally, it's related to how much I IM), I'll eventually get an "Out of memory, please close some open apps" or something like that. I have 1GB of RAM! And from what I see in About This Mac, I have lik
-
Intermittent reception of mail in MacMail
I have an aol email account. Some emails come through to my MAC mail (Mac OS X Lion 10.7.4) & some don't-very annoying, as I have to sign in to aol.com to make sure I am receiving all my emails.Happens even with email addresses that come to me on a
-
Reformatted and need to get MS Office back.
I apologize if this is the wrong area for this questions, but I reformatted my Macbook which had Microsoft Office loaded onto it when I bought it. I have my receipt showing that I paid for MS Office, and I don't think I have any installation discs f