Oracle Consulting Oracle Training Oracle Support Development
Oracle Books
SQL Server Books
IT Books
Job Interview Books
Rampant Horse Books
911 Series
Pedagogue Books

Oracle Software
Write for Rampant
Publish with Rampant
Rampant News
Rampant Authors
Rampant Staff
Oracle News
Oracle Forum
Oracle Tips
Articles by our Authors
Press Releases
SQL Server Books

Oracle 11g Books

Oracle tuning

Oracle training

Oracle support

Remote Oracle


Privacy Policy




Oracle Tips by Burleson 

Working with List Manager

There are two ways of handling the values.  The use of INSTR for this item type is impracticable since the values entered would be unknown.

1.       The string can be kept as a colon-delimited string and stored in the database.

2.       The list can be processed by utilizing the HTML DB API function called HTMLDB_UTIL.STRING_TO_TABLE.  This function takes the result string and turns it into a PL/SQL array.  The array can be processed in any manner.  The following is an example of use:

  list_items htmldb_application_global.vc_arr2;
  -- convert the colon separated string of values into
  -- a pl/sql array
  list_items := htmldb_util.string_to_table(
  -- loop over array to insert items into a table
  for i in 1..list_items.count
    insert into email_addresses_table
    values (list_items(i));
  end loop;

The reverse of this PL/SQL code can be performed in order to reassemble the value for the page item. 

  item_list  htmldb_application_global.vc_arr2;
  i          integer := 1;
  for r in( select customer_email_address
        from  email_address_table) loop
    item_list(i) := r.class_id;
    i := i + 1;
  end loop; 

  :P1_EMAIL_ADDRESS := htmldb_util.table_to_string( item_list, ':' );

The above book excerpt is from:

Easy HTML-DB Oracle Application Express

Create Dynamic Web Pages with OAE

ISBN 0-9761573-1-4   

Michael Cunningham & Kent Crotty


Download your Oracle scripts now:

The definitive Oracle Script collection for every Oracle professional DBA

Linux Oracle commands syntax poster

ION Oracle tuning software

Oracle data dictionary reference poster

Oracle Forum

BC Oracle consulting support training

BC remote Oracle DBA   



 Copyright © 1996 -2017 by Burleson. All rights reserved.

Oracle® is the registered trademark of Oracle Corporation. SQL Server® is the registered trademark of Microsoft Corporation. 
Many of the designations used by computer vendors to distinguish their products are claimed as Trademarks