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 


 

 

 


 

 

 
 

APEX Application Page to use a JavaScript multi-level menu list

Oracle Tips by Burleson Consulting

Setting up an Application Page to use a JavaScript multi-level menu list

 

Before creating a region on the application page for the MLIST you need to setup the page to use the cascading style sheet and the JavaScript necessary to support the MLIST.  It is a little different depending on whether or not the CSS/JS is stored in the repository or if the files are stored in the file system.  To setup the application page to use the MLIST do the following.

 

  1. On the Page Definition page click the Edit Attributes button.
  2. In the HTML Header text area add the following:

If CSS/JS files are in the repository

<link rel="stylesheet" href="#WORKSPACE_IMAGES#mlist.css" type="text/css" />

<script src="#WORKSPACE_IMAGES#mlist.js" type="text/javascript"></script>

 

If CSS/JS files are in the file system

<link rel="stylesheet" href="#IMAGE_PREFIX#mlist.css" type="text/css" />

<script src="#IMAGE_PREFIX#mlist.js" type="text/javascript"></script>

 

  1. Apply Changes

 

The code shown above can also be added to the Page templates, but I didnít want to do that at this time.

Using the MLIST package to populate a region on an application page

For this example we are still referring to the list above Ė named STAFF.  To populate a region on an application do the following:

  1. Create a region of type PL/SQL Dynamic Content, click Next.
  2. Set Display Attributes
    1. Set Title as desired
    2. Set Region Template to Navigation Region
    3. Set the display point to Page Template Region Position 2, click Next.
  3. Enter the text mlist.display_list( 'STAFF', 0 );, click Next or Create Region.

 

 

 

 

  

  1. After the region is created, modify the region attributes as follows (see image below)

Header and Footer Text

Region Header

<table width="175">

<div class="t2VerticalSidebarList">


 

Region Footer

</div>

</table>

This was done this way instead of creating a new template just for the time being.  I have tested this in a list template and it works fine, but there is still the matter of the proper width.  If we make a standard that all our side bars will be a certain width we can update the appropriate templates.

 

 

 

 

 

 

 

 

Using the TEST list

A test list procedure has been provided for testing and for initially building a MList region.  To see how the Mlist will be shown, this can be used to display the MList during the initial building of application pages before you have entered the data.  Substituting the mlist.display_list( 'STAFF', 0 ) as described above with the following in the PL/SQL Source area will populate the test list:

 

mlist.get_test_list;

 

SEE CODE DEPOT FOR FULL SCRIPTS

For more information on this topic, see the book "Easy Oracle HTML-DB Application Express ", the best book anywhere on expert APEX development:


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