Call for Oracle support & training (800) 766-1884
Free Oracle Tips

Home
Corporate Oracle Training
Custom Oracle Training
Oracle New Features Training
Advanced Oracle DBA Classes
Oracle Tuning Courses
Oracle Tips & Tricks
Oracle Training Links
Oracle Training Links
Oracle Training Links

We are top for USA Oracle Training Clients

 

Free Oracle Tips


 
HTML Text AOL

Free Oracle App Server Tips


 
HTML Text

Oracle support

Oracle training

Oracle tuning

Rednecks!

Remote Oracle

Custom Oracle Training

 

   
  Oracle Tips by Burleson

Creating Computations

Creating computations is done from the page definition page.  The example shown below will create a computation to query the database for the full name of a customer.  A condition is set to only execute this computation if the current value of the page item is null.

1.       Click on the  in the Computations area under Page Processing.

2.       On the Item Location page select the Computation Location and click Next.

3.       On the Item page:

  • Select the Compute Item for which the computation is created.

  • Set the Sequence to the order in which the computation is to execute.

  • Select the Computation Point.  For this example, After Submit was chosen, so it executes when the page is submitted.

  • Select the Computation Type.  For this example, PL/SQL Function Body was chosen.

  • Click Next.

4.       On the Computation page enter the source code for your computation and click Next.  In this example, PL/SQL Function Body was chosen and the code is shown below.

declare
   s_full_name varchar2(100);
begin
   for r in (
      select salutation, first_name, last_name
      from   customer
      where  customer_id = :P100_CUSTOMER_ID )
   loop
      s_full_name := r.salutation
         || ' ' || r.first_name
         || ' ' || r.last_name;
   end loop;
   return s_full_name;
end;

5.       On the Condition page select the Condition Type and enter the Expressions as necessary.  The following example shows the information entered as:

   Condition Type: Value of Item in Expression 1 is NULL.

   Expression 1: P100_FULL_NAME.

   Finally, click the Create button.


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

http://www.rampant-books.com/book_2005_2_html_db.htm  



Download your Oracle scripts now:

www.oracle-script.com

The definitive Oracle Script collection for every Oracle professional DBA

 
 
 

Oracle performance tuning book

 

 

Oracle performance tuning software

 
Oracle performance tuning software
 
Oracle performance Tuning 10g reference poster
 
Oracle training in Linux commands
 
Oracle training Excel
 
 
 
 

 

email BC:


Copyright © 1996 -  2014 by Burleson Inc. All rights reserved.

Oracle® is the registered trademark of Oracle Corporation.