Call now: 252-767-6166  
Oracle Training Oracle Support Development Oracle Apps

 
 Home
 E-mail Us
 Oracle Articles
New Oracle Articles


 Oracle Training
 Oracle Tips

 Oracle Forum
 Class Catalog


 Remote DBA
 Oracle Tuning
 Emergency 911
 RAC Support
 Apps Support
 Analysis
 Design
 Implementation
 Oracle Support


 SQL Tuning
 Security

 Oracle UNIX
 Oracle Linux
 Monitoring
 Remote s
upport
 Remote plans
 Remote
services
 Application Server

 Applications
 Oracle Forms
 Oracle Portal
 App Upgrades
 SQL Server
 Oracle Concepts
 Software Support

 Remote S
upport  
 Development  

 Implementation


 Consulting Staff
 Consulting Prices
 Help Wanted!

 


 Oracle Posters
 Oracle Books

 Oracle Scripts
 Ion
 Excel-DB  

Don Burleson Blog 


 

 

 


 

 

 
 

Oracle Application Express (APEX): Parent-child LOV dependencies

Oracle Tips by Burleson Consulting

Master-slave lookup values (LOV) in APEX are easy, and you can have the values of a "child" LOV dependent on the choice from a “master” LOV.  We start by defining a foreign key constraint from the lookup table to the dependent table, ensuring that both values match at insert time:

alter table    isco_codes
add constraint "fk_isco_cd"
foreign key
(
   "isco_major_group_cd",
   "isco_subgroup_cd"
)
references
   "isco_groups"
(
   "isco_major_group_cd",
   "isco_subgroup_cd"
)
enable;
 
SEE CODE DEPOT FOR FULL SCRIPTS

With the referential integrity enabled, we next create a parent-child set of lookup values, we start by defining the top-level LOV as follows:

STEP 1 – When defining the “master” LOV, define the key for the child LOV as the return value:

select distinct
   isco_group_desc,
   isco_major_group_cd
from
   isco_groups
order by 1

 

STEP 2 - When attaching the LOV to the screen item, choose “select list with submit”.

The "Display as" with "select list with submit", submits the value to APEX so that we can referenced it in the "where clause" of the subordinate, child LOV.

STEP 3 - Finally, we define the List of Values (LOV) for the child (dependent) lookup as follows:

At runtime we see that the subordinate LOV (ISCO sub-group in this example) appears closed until we choose the master value from the drop-down LOV:

Based on the choice for the master (parent) dropdown list of values, the child (secondary dependent) drop-down LOV is populated from the master table:


APEX support:

For APEX development support just call to gat an Oracle Certified professional for all APEX development projects.

APEX book and code samples:

Easy Oracle HTML-DB Application Express
Create Dynamic HTML with Oracle

Includes online APEX code depot

Buy it now for 30% off - Only $27.95
 

 

 

��  
 
 
Oracle Training at Sea
 
 
 
 
oracle dba poster
 

 
Follow us on Twitter 
 
Oracle performance tuning software 
 
Oracle Linux poster
 
 
 

 

Burleson is the American Team

Note: This Oracle documentation was created as a support and Oracle training reference for use by our DBA performance tuning consulting professionals.  Feel free to ask questions on our Oracle forum.

Verify experience! Anyone considering using the services of an Oracle support expert should independently investigate their credentials and experience, and not rely on advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications.

Errata?  Oracle technology is changing and we strive to update our BC Oracle support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:  

and include the URL for the page.


                    









Burleson Consulting

The Oracle of Database Support

Oracle Performance Tuning

Remote DBA Services


 

Copyright © 1996 -  2017

All rights reserved by Burleson

Oracle ® is the registered trademark of Oracle Corporation.

Remote Emergency Support provided by Conversational