LOV parameter...
I have an LOV in a page and want to pass a parameter so the list that is presented to the user changes depending upon the parameter. I can pass a URL parameter to a page and pick it up in the controller code as pageContext.getParameter. However I am not sure how to do this in a LOV.
Any ideas?
Hi,
Is there primary key in your LOV query ?
If yes, then make it a form value and create LOV map for the same. Also you can make search allowed false for that item.
In this way, it will filter LOV results and also user will not have option to filter by primary key.
--Sushant
Similar Messages
-
REP-546: Warning: The value of restricted LOV parameter
Hi,
When i try to invoke my report from IE with paramform=no and i am not passing the parameter LEXXX_ENTXXXX in the URL, i am getting the below error,
REP-546: Warning: The value of restricted LOV parameter LEXXX_ENTXXXX is not among the selectable values.
but the same report is working fine if i invoke with paramform=yes.
The Parameter LOV query for the parameter LEXXX_ENTXXXX is ,
SELECT LGL.CY_LEXXX_ENTXXXX, COM.SHORT_NAME FROM LEXX_ENTXXX LGL, COMXXXX COM
WHERE LGL.CY_LEXXX_ENTXXXX = COM.COMXXXX_KEY
UNION SELECT 0, 'ALL' FROM DUAL ORDER BY 2 ASC
Note: Restrict List to Predetermind Values and Hide First Column check boxes are selected
Data Type of LEXXX_ENTXXXX is Number and size is 6.
Please, help me in resolving the above error.
Thanks in advance
Thanks & Rgds,
M TThe value that you give to parameter LEXXX_ENTXXXX when you are submitting your report on the web is not amoung the values returned by the Parameter List of Values Query , and when the Parameter List of Values Query was created "Restrict List to Predetermined Values" check box was checked.
In order to solve the proble you can :
- provide a value to LEXXX_ENTXXXX that is amoung the values returned by
Parameter List of Values Query
or
- uncheck the Restrict List to Predetermined Values" check box of the parameter.
Regards
Ionut S -
Error :Value of restricted LOV parameter not among the selectable values
Hi,
I am designing a report which has two layouts. I have a parameter :P_Reason_code which is applicable to only one layout.
There is a repeating frame in my first layout which should display only if :P_Reason_code value is 'Y'.
I have wriiten a format trigger for this repeating frame saying the repating frame should return true if :P_Reason_code value= 'Y'.
else, it should return false meaning it shouldnt display.
:P_Reason_code is an optional parameter when i run it at the oracle apps front end.
The problem that i am facing is that when i run the report for the second layout by not providing value for the parameter :P_Reason_code
, it errors out saying "REP-0788: Warning: The value of restricted LOV parameter P_REASON_CODE is not among the selectable values.'
I tried creating another user parameter P_REASON_CODE1 and putting a trigger in the After parameter form trigger saying
if P_REASON_CODE is null then
P_REASON_CODE1 :='Y';
P_REASON_CODE := P_REASON_CODE1;
ELSE
P_REASON_CODE1 := P_REASON_CODE;
P_REASON_CODE := P_REASON_CODE;
END IF;
But still it doesnt seem to work.
What could be the issue?
Can anyone help?try setting the default-value for the parameter to Y (or whatever value is in the LoV defined for the parameter).
Is there a parameterform used for the report. If not remove the LoV from the parameter. -
Selecting an lov parameter value sometimes not passed correctly
When selecting a value from an LOV parameter, sometimes the parameter value doesn't seem to get passed correctly to the data template query.
For example, let's say I have the following LOV parameter called "risk":
Some Risk
New Risk
Other Risk
Last Risk
When I select "Some Risk", I would get correct results and when viewing the "Data" xml, I can see the parameter with the right value:
<RISK>Some Risk</RISK>
But when I select "New Risk" the results are incorrect and the xml shows:
<RISK />
as if the value was not passed as the bind parameter value for the dataset query.
Any idea what I'm doing wrong? Is this a BIP bug or is there a workaround?Hi, thanks for the reply.
The LOV is of "SQL Query" type (not fixed data) and the values were retrieved from the database.
Supposing this was the sql query for my "risk" parameter LOV:
select dimvaltl.GENERIC_VAL_NAME
from GENERIC_VAL_TL dimvaltl,
GENERIC_TL dimtl
where dimtl.GENERIC_NAME = 'Risk'
and dimvaltl.GENERIC_ID = dimtl.GENERIC_ID
order by dimvaltl.GENERIC_VAL_NAME
And supposing this was the sql query in the data template dataset:
select pdimv.ID
from GENERIC_V pdimv
where pdimv.NAME = 'Risk'
and pdimv.VALUE in (:risk)))
If risk is empty, obviously the query would not work. I noticed the xml generated sometimes show the selected parameter value and sometimes don't, as if BIP is not passing it to the dataset query as bind parameter value.
Incidentally I have other lov parameters that works fine, the only difference I can think of is that for this LOV query I am doing a join instead of a simple select statement from one table. -
Multiple Default Values in a Multi-Select LOV Parameter?
Hi,
I have a report in BI Publisher standalone version 10.1.3.4. The report has a list of values called org_lov. This lov is attached to a multi-selection p_org_code parameter from which it is desirable to also have multiple default values.
For example, if org_lov has the following values:
100
101
102
103
104
105
106
I would like to have 3 default values and have 100, 101,105 as the defaults if the user doesn't specifically select anything from the LOV. So far my testing has only allowed a single default value.
Here are my settings:
Data type = string
Multiple Selection = checked
Can select All = checked (all values passed)
On the Default Value field, I have tried the following:
1. 100, 101,105
2. [100, 101,105]
3. '100', '101','105'
4. (100, 101,105)
5. ['100', '101','105']
6. ('100', '101','105')
I don't need these default values highlighted in the LOV, I just need it passed correctly to the query (a data template).
Thank you in advance for any input.Hi,
Sorry for the delayed reply. I tried what you suggested but the problem is that by having the "Multiple Selection" property of the parameter unchecked, the result is that it allows the user to only have a single value passed. The user wants the option to select multiple values AND also have the multiple default values.
Thanks anyway. -
Scheduled Report - Bug with Multiple Selection LOV parameter
Problem:
I have a scheduled report with a parameter that has it's "Multiple Selection" checkbox checked. I schedule the report with multiple values selected. When I receive the report via email, the report ran as if I only selected one LOV value instead of multiple values.
Facts:
1) Enterprise version 10.1.3.2.1
2) When you run the report manually with multiple values selected in the LOV, it runs great with the correct dataset.
3) This scheduled report does not have a Data Template.
James
P.S. - I searched this forum for other treads on this issue. I didn't find any. Sorry if this is a duplicate.I have this same problem, too.
When I select multiple parameters on the "View" screen for a given report, everything works fine.
When I schedule it, however, only the last parameter I clicked on (regardless of whether a select a range or multiple individual values) is passed to the query. The other selections I make are ignored.
What gives? Am I doing something wrong? Is this a bug? Is there a workaround? -
Column name as item in lov - parameter passing
Hello Eveyone,
Currently i am working on a requirement where the user will choose any one of the column of the database as parameter. Means all the column names should come in LOV. Once he selects the column he has to choose the operator(>,<,=,<>) in another LOV after that user enters value. Can anyone please guide me on this. Please let me know is it possible in crystal?
Thanks
YashIt would be incredibly complex as you would have to hard code a massive if then else select formula based on the two parameters selected. You could do something with adhoc reporting in Crystal Enterprise or BOXI. But do do this with a single Crystal report would be very difficult.
You should be asking
"Why on earth does anyone want such flexibility?"
Sounds like user does not know what they want and is making an impossible request.
Ian -
LOV parameter using stored procedure.
I have a report has one parameter and uses stored procedure to retrieve the content. The parameter (drop down box) is a dynamic list-of-value with another stored procedure to retrieve the data. Without using any business view object.
I deployed the report into the server. I have set the database properties in the Process->Database option. When I preview the report, it always prompts me to enter the user name and password for database connection before the parameter page.
How and where to set the connection user name and password for the dynamic list-of-value stored procedure data source?
Thanks.Try the following:
- Go to the Repository Explorer in Business View Manager.
- Right-click the LOV. Click Schedule.
- Click the Parameters tab. Enter the correct parameters. If Database Logon is available, provide the correct database logon information.
- Schedule the LOV to a recurring schedule that fits the business needs (for example, daily, hourly, or weekly).
The LOV will not run on demand, but the report can be run on demand.
Caroline -
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
JLHYou have to use lexical variable instead of bind variable
-
How to print a report which is consist a paper parameter form
Hi !
I have created a report file with paper parameter form and also create a form. Now , when I try to run this form it display
REP-0788: Warning: The value of restricted LOV parameter ppass is not among the selectable values.
USER ID (a combo box with data)
PASSWORD (a combo box with data)
After click on submit the query button window dispaly a message run successfuly,But it does not print the report's data, it prints only paper parameter contents.
i.e. REP-0788: Warning: The value of restricted LOV parameter ppass is not among the selectable values.
USER ID (a combo box with data)
PASSWORD (a combo box with data)
I used the following codes
PROCEDURE RUN_REPORT1(vc_reportoj Varchar2, vc_reportserver varchar2, vc_runformat varchar2,report_otherparam VARCHAR2, pvar varchar2) IS
v_report_id Report_Object;
vc_ReportServerJob VARCHAR2(100); /* unique id for each Reportrequest */
vc_rep_status VARCHAR2(100); /* status of the Report job */
vjob_id VARCHAR2(100); /* job_id as number only string*/
vfilename varchar2(255);
vport varchar2(50);
hidden_action VARCHAR2(2000) :='';
v_report_other VARCHAR2(4000) :='';
i number (5);
c char;
c_old char;
c_new char;
BEGIN
/* Get a handle to the Report Object itself. */
v_report_id:= FIND_REPORT_OBJECT(vc_reportoj);
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_FILENAME,name_in(':parameter.path') ||'\'||NAME_IN('CTL_REPORTS.REPORT_NAME'));
if pvar = 'FILE' then
vfilename := CLIENT_GET_FILE_NAME('c:\',null, 'All Files (*.*)|*.*|',SAVE_FILE);
if vfilename IS NOT NULL THEN
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_EXECUTION_MODE, RUNTIME);
SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_DESTYPE, FILE);
SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_DESNAME, vfilename||'.rtf');
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_SERVER,vc_reportserver);
hidden_action := hidden_action ||'&report='||GET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_FILENAME);
hidden_action := hidden_action||'&destype='||GET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESTYPE);
hidden_action := hidden_action||'&desformat='||GET_REPORT_OBJECT_PROPERTY (v_report_id,REPORT_DESFORMAT);
hidden_action := hidden_action ||'&userid='||get_application_property(username)||'/'||get_application_property(password)||'@'||get_application_property(connect_string);
c_old :='@';
FOR i IN 1..LENGTH(report_otherparam) LOOP
c_new:= substr(report_otherparam,i,1);
IF (c_new ='') THEN
c:='&';
ELSE
c:= c_new;
END IF;
-- eliminate multiple blanks
IF (c_old ='' and c_new ='') THEN
null;
ELSE
v_report_other := v_report_other||c;
END IF;
c_old := c_new;
end loop;
hidden_action := hidden_action ||'&'|| v_report_other;
hidden_action := 'http://127.0.0.1:8889/reports/rwservlet'||'?_hidden_server='||vc_reportserver|| encode(hidden_action);
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_OTHER,'pfaction='||hidden_action||''||report_otherparam);
-- run Reports
vc_ReportServerJob:=RUN_REPORT_OBJECT(v_report_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 ('http://127.0.0.1:8889/reports/rwservlet/getjobid'||vjob_id||'?server='||vc_reportserver||'&_blank');
ELSE
message ('Report failed with error message '||vc_rep_status);
END IF;
ELSE
RETURN;
end if;
This is the part of the procedure.See Viewing Pages in Printer Friendly Mode and Selecting a Printer Friendly Template for an Application
Thanks,
Vikram -
XML Publisher Report - Possible for multi-select LOV parameters?
I am new to using BI Publisher for generating reports out of E-Business Suite. I am looking for assistance with 2 questions below
1. I have created an LOV parameter based on a value set, is it possible to allow the user to select one, all, or a subset?
2. Is there a way to model an "IN" statement in the XML where using the parameter?
Thank you.With whatever i could make out is you are trying to change a discovere report to xml; publisher report isnt it?
To answe to your question, directly it is not possible to have In clause but you could use some smart logic like lexical parameters etc to achieve similar things.I guess you cannot do in in EBS Reports too. -
I have a table that stores Cost Center and Description. I want to show an LOV like
100 New York
200 London
300 Tokyo
and then for the user to select the value 100 and for all data to be queried from account balances for cost center 100.
Problem is how to show the Cost Center and Description on the LOV Parameter, but only use the Cost Center to query.
Thanks
iainFrom the looks of your problem it seems that you should setup your parameter items to associate them with indexed fields. See the doc for more information:
See Ch 11 "Using parameters" in the Oracle® Business Intelligence Discoverer Plus User's Guide, 10g Release 2 (10.1.2.1), Part No B13915-04.
Also see section titled "How to assign an indexed item to an item" from Ch 9 Maintaining items and item classes of the Oracle® Business Intelligence Discoverer Administration Guide, 10g Release 2 (10.1.2.1), Part No B13916-04
Basically, when you associate an item with an indexed item (e.g. country_code is a field that is indexed, but it is country_name that you want to display to users to select. In this case you will associate country_code to country_name in Administrator and when defining a parameter for country check the box that states whether you want users to be able to select index or name values).
Thanks
Abhinav
Oracle Business Intelligence Product Management
BI on Oracle: http://www.oracle.com/bi/
BI on OTN: http://www.oracle.com/technology/products/bi/
Documentation: http://www.oracle.com/technology/documentation/appserver1012.html
Discoverer: http://www.oracle.com/technology/products/discoverer/
BI Beans: http://www.oracle.com/technology/products/bib/
BI Software: http://www.oracle.com/technology/software/products/ias/devuse.html
BI Samples: http://www.oracle.com/technology/products/bi/samples/
Blog: http://oraclebi.blogspot.com/ -
Parameter Form in Oracle Report!!
Dear Oracle Users' Group:
I have problem with "Parameter Form" in Oracle Report.
The Report that I created has the SQL:
"SELECT A.FIELD1, A.FIELD2
FROM MYDATABASE.MYTABLE A
WHERE
A.FIELD1 = :P_1";
When the report is run, it asks for the parameter
and generates the report based on the runtime
parameter. Works perfect on Oracle8i database's
Report front end.
The PROPERTY PALETTE for the FIELD (Field that
takes the runtime parameter) is:
====================
General Information
Name: PF_P_1
Comments:
Parameter Form Field
Source: P_1
Parameter
Datatype: Character
Width: 40
Initial Value:
Validation Trigger:
List of Values:
(For the list of values, I have put the SQL:
"SELECT DISTINCT A.FIELD1 from
MYDATABASE.MYTABLE A", Also I had
tried with list of fixed values like A, B, C)
Web Setting
Additional Attributes (HTML):
================
But the report does NOT work when called from the Web.
(This is only because of the problem with this Parameter
Form in my report. If I get rid of the parameter form by
changing the last line of my SQL to: "A.FIELD1 = 'Chicago'",
it works fine from the Web).
When accessed the report from the Web, the error I get
is:
Oracle Reports Server CGI - Report Job has terminated with this error.
Reports Server Replies:
REP-0788: Warning: The value of restricted LOV parameter P_1 is not among the selectable values.
I do not know what is the error with this simplest Parameter Form based Report!!
In the Property Palette (above) of the Field, there was a field named "Additional Attributes (HTML)"
under "Web Setting" heading.
Do I need to write something there!!
Please help!!
thanks.
kimmyHi, Kimmy
Try: ¶mform=yes]http://webserver.com:80/dev60cgi/rwcgi60.exe?server=repserver&report=rep1&userid=scott/tiger@orcl&destype=cache&desformat=htmlcss¶mform=yes
I've also sent you an email about key maps.
Enjoy! Web Reporting is a great feature.
Pedro. -
How to create a user parameter for a report
Hi,
I am writing a report in ORACLE 6.0, and I need to create a user
parameter for my report.
My database includes fields: item_id, item_cost, and item_desc.
What I want to do is: set up a user parameter for item_cost, and
the report will prompt the user to enter number into this
parameter, then the report will display item_id and item_desc
depending the user-entered item_cost.
thanks.
JunMy SQL code is below:
select item_id, item_invo, item_desc
from tb_item
where item_invo=:p_1
but I got an error message:
REP-0788:Warning: The value of restricted LOV parameter p_1 is
not among the selectedble values.
Would you help me again? Thanks.
Jun -
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
Maybe you are looking for
-
Can't get Macbook Pro 2,1 to 64-bit mode
I'm running a late 2006 macbook pro with an intel core 2 duo 2.33 mhz and I was wondering if there is anyone that knows if there's a way to get it to boot in 64-bit mode. Thanks.
-
Hi, hope someone here can help me because im getting kind of fustrating by not been able to add videos on the new itues. I've got the new video i want to add to the library its on "MP4" format, but for some reason when i go to to the "Add File to Lib
-
Cant find settings for black and white prints using konica minolta bizhub 280 printer
I am having difficulty finding where to set our network Konica Minolta bizhub C280 printer to print black and white instead of colour from my macbook pro with OSX 10.8.2. I dont want to change the default printer settings, just change individual docu
-
Function Module to calculate unique key
Hi All, I have a situation where my source is 32 char length and destination InfoObject is only 20 char length. I want to derive a 20 char or less key from 32 char and store it in my InfoObject. The key should be unique to a char sequence. I should
-
Hi all, After we restarted portal,we cannot start jcontrol,and we get a strange ORA-00001 error,when we check the log: Here is the log defaulttrace: Date : 12/10/2007 Time : 15:13:26:500 Message : ORA-00001: unique constraint (SAPSR3DB.SYS_C00526