Solved

Dynamic list of values in interactive reports

Posted on 2011-03-14
11
1,142 Views
Last Modified: 2012-11-28
I have an interactive report in apex. I have two fields on it. One is based on a list of value. From the other I would like to obtain its value depending on the value selected on the list. Is that possible?
0
Comment
Question by:jdenoguera
  • 4
  • 3
  • 2
11 Comments
 
LVL 2

Expert Comment

by:swadhinray
ID: 35134134
Yes is possible.
0
 
LVL 2

Expert Comment

by:swadhinray
ID: 35134278
use conditional  display on your item value level which will solve your problem
0
 
LVL 2

Assisted Solution

by:swadhinray
swadhinray earned 166 total points
ID: 35134329
When you click on list of values on your item you need to check on Cascading LOV Parent Item(s).
For more information just check the help as you will see the below:

A cascading LOV means that the current item's list of values should be refreshed if the value of another item on this page gets changed.

Specify a comma separated list of page items to be used to trigger the refresh. You can then use those page items in the where clause of your "List of Values" SQL statement.

For example, if you have page items for Car Make and Model, Model would identify Car Make as the Cascading LOV Parent Item so that whenever Car Make is changed, the LOV for Model would be refreshed.

0
 

Author Comment

by:jdenoguera
ID: 35138596
Thanks for your answer swadhinray, but remember that both items are selected in the same query and displayed in an interactive report. This is the query:

SELECT A.CLAVE,A.ID_GRUPO_PRUEBA,A.ID_CLIENTE,A.ID_PRUEBA, A.IDNORMA, A.ID_IAXCLIENTE
FROM VW_GRUPOS_PRUEBASXCLT_DET A
WHERE A.ID_GRUPO_PRUEBA= :P50_ID_GRUPO_PRUEBA
AND A.ID_CLIENTE = :P50_ID_CLIENTE

ID_PRUEBA is the first list of values and depending on what the user select on it, the values of IDNORMA and  ID_IAXCLIENTE (both items are list of values too) changes.

Is that possible? How can I make it work?
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 2

Expert Comment

by:swadhinray
ID: 35143732
use Cascading : parent to 1st column and child to the second column , so that 2nd column will be dependent on the 1st selected items from LOV.
0
 

Author Comment

by:jdenoguera
ID: 35157356
Remember that I am working with interactive reports and you can not use cascading LOVs on it
0
 
LVL 2

Accepted Solution

by:
tahula2 earned 334 total points
ID: 35199445
You can use ajax to do these things in apex.
http://www.dba-oracle.com/t_html_db_apex_ajax_application_express.htm.

Also if there is only a couple of variations you could try using 2 drop down boxes and hiding one using styles in javascript and an onChange event handler.
0
 
LVL 2

Assisted Solution

by:tahula2
tahula2 earned 334 total points
ID: 35215633
Seems this is even easier now using dynamic actions in Apex 4.
0
 

Author Comment

by:jdenoguera
ID: 35235751
Thanks for your answer tahula2. I will try to apply your recomendation and I will let you know if it works
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

863 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

19 Experts available now in Live!

Get 1:1 Help Now