473,327 Members | 1,919 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

Dependent User Parameters in Oracle Reports

I am working with Oracle Reports 9i and am not that familiar with it. I have a report that I'm trying to develop that has two user parameters on the parameter form. I want to take what the user selects from the list of values for the first one and use it to limit the LOV for the second parameter. I have tried using the first parameter as a bind variable in the select statement for the second item's LOV, but I get an error that says that a bind variable is not allowed in the select statement. The same error happens when I try a lexical expression. Does anyone know a work around for this problem? It would really be appreciated! Thanks. Ed
Apr 24 '07 #1
7 10682
Hi,
I am also having the same problem.Kindly help me anyone.It's very urgent.
Regards
Anusree
May 14 '07 #2
chandu031
78 Expert
I am working with Oracle Reports 9i and am not that familiar with it. I have a report that I'm trying to develop that has two user parameters on the parameter form. I want to take what the user selects from the list of values for the first one and use it to limit the LOV for the second parameter. I have tried using the first parameter as a bind variable in the select statement for the second item's LOV, but I get an error that says that a bind variable is not allowed in the select statement. The same error happens when I try a lexical expression. Does anyone know a work around for this problem? It would really be appreciated! Thanks. Ed
Hi,

Have you tried using Dynamical SQL. Bind variables are used with dynamic SQL. If you post your code, then I may be able to help you better.
May 14 '07 #3
hello!
i am having the same problem too. can you help me to solve it.
i have two tables in db cities and counties and i have two parameters in my form
i want the counties parameter to be limited when the cities parameter is changed. whan i use select county from counties where city_id=:cities_parameter
it gives the same error that bind variables cannot be used in select statement
how can i solve it
thanks
Jun 4 '07 #4
Does not Look like Oracle report has this feature. .
I made following attempts:

at validation trigger of first parameter, inserted a value to the database field(say report_parameter table) to hold the value of my first parameter.

In my second parameter list I included the value from report_parameter table.

This appeared to be working fine for the default value(when parameter form was run for the first time) However, subsequent selection of parameter did not change the second list. It was still showing the old list.

My conclusion is that report parameter form does not dynamically update the list. Just does a one time retrieval of the list while parameter form is run for the first time.
Sep 14 '07 #5
amitpatel66
2,367 Expert 2GB
I am working with Oracle Reports 9i and am not that familiar with it. I have a report that I'm trying to develop that has two user parameters on the parameter form. I want to take what the user selects from the list of values for the first one and use it to limit the LOV for the second parameter. I have tried using the first parameter as a bind variable in the select statement for the second item's LOV, but I get an error that says that a bind variable is not allowed in the select statement. The same error happens when I try a lexical expression. Does anyone know a work around for this problem? It would really be appreciated! Thanks. Ed
This functionality can be achieved in ORACLE APPLICATIONS 11i. When you register a concurrent program, you would have select value sets one each for both the parameters. Now what you do is for SECOND parameter, select the Default Type -> SQL Statement and write a SQL statement for Default Value ->

Expand|Select|Wrap|Line Numbers
  1. SELECT <column_name> FROM <table_name> WHERE <column_name> = :$FLEX$.<value_set Name of the first parameter>
  2.  
Sep 17 '07 #6
amitpatel66
2,367 Expert 2GB
I am working with Oracle Reports 9i and am not that familiar with it. I have a report that I'm trying to develop that has two user parameters on the parameter form. I want to take what the user selects from the list of values for the first one and use it to limit the LOV for the second parameter. I have tried using the first parameter as a bind variable in the select statement for the second item's LOV, but I get an error that says that a bind variable is not allowed in the select statement. The same error happens when I try a lexical expression. Does anyone know a work around for this problem? It would really be appreciated! Thanks. Ed
Let me know where you are trying to write a SELECT statment for second parameter?. Is it in BEFORE REPORT TRIGGER OR BEFORE PARAMETER FORM TRIGGER?

YOU should be able to reference a user parameter as a bind variable in REPORT TRIGGERS
Sep 17 '07 #7
Hi..

I was able to incorporate the list of values in 10g - based on the same sample from the Metalink.

I had the need to do it from three tables and also incorporate the "ALL" value in the p2 and p3 params so the user can either select a particular one or just choose "ALL" to run it for all the values.

I was able to modify the code - after some trial and errors - it now works perfectly..
Sep 24 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

13
by: kristoff plasun | last post by:
I have a problem with a C++ DCOM application that prints Crystal Reports with data from Oracle. The SQL query is relatively complex but when the report is printed from the Crystal Reports...
0
by: Rohit Dhawan | last post by:
I have Oracle 9.2 installed in my computer and want to use Oracle reports builder 6i. Is it possible to use both of them. When I tried to install Oracle report an Forms 6i the Oracel Installer...
4
by: NBURGAN | last post by:
We are currently searching for a reporting tool with graphics for our end users who are using Oracle's standard edition. We are not using the Oracle's AS. The tool needs to be easy to use and...
1
by: rishka | last post by:
Rishka Mar 17, 5:40 am show options Newsgroups: comp.databases.oracle.tools From: "Rishka" <ris...@webmail.co.za> - Find messages by this author Date: 17 Mar 2005 05:40:45 -0800 Local:...
133
by: jonathan | last post by:
hey all, I realize that this question might pop up from time to time, but I haven't seen it a while and things might of changed, so - Right now (July 2004) how does mysql stand up in...
1
by: Oliver Reed | last post by:
I have an ASP page which users can call with various parameters to generate data for reports. However, some users who specifiy very few parameters and so generate a large result page are geting...
4
by: PraveenKadkol | last post by:
Hi, My Development is in almost final stages, now i am facing problem with the reports. I am generating MsAccess Reports based on the selected Parameters, while generating Report I am opening ...
1
by: tatipellinaresh | last post by:
Hi, I am using reports builder for generating report. In my report iam sending parameters from one jsp to other jsp. In the second jsp parameters are coming good, when iam printing ...
4
by: anidam | last post by:
Hello, I need help in implementing the following requirement. When the user login the oracle portal, S/He has to select three parameters depending on the report. There are many workbooks, but all...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.