Oracle
  Home arrow Oracle arrow Page 3 - Data Manipulation and More for HTML DB Applications
Dev Shed Forums  
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
VPS Hosting  
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid  
Request Media Kit
Contact Us  
Site Map  
Privacy Policy  
Support  
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
Google.com  
ORACLE

Data Manipulation and More for HTML DB Applications
By: McGraw-Hill/Osborne
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 11
    2007-05-03


    Table of Contents:
  • Data Manipulation and More for HTML DB Applications
  • Manually Creating a Web Services Process
  • Form Pagination
  • Close Popup Window

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article

     
     
    ADVERTISEMENT


    Data Manipulation and More for HTML DB Applications - Form Pagination
    ( Page 3 of 4 )

    The Form Pagination process is used with a master detail page. It determines the next and previous master records and populates a field to display the positional count of the current master record (for example, “3 of 4”). This particular type of process is created when you use the wizard to create a master detail form.

    Most of the time when your application uses one of these type processes, it is created by the Master Detail Wizard. However, if you understand what the process does, you may find a time when you want to create a process of this type manually. For instance, you could use a Form Pagination process on a page that displays a single record from a table and the process would handle the next-record and previous-record navigation for that table.

    The process operates on a single table and should usually be defined to be evaluated after the header when the page is being rendered. The process takes the current primary key and determines, based on a specified sort order, the primary keys of the records that are logically before and after the current record.

    You must already have an item on your page where the primary key of the table will be stored. Creating a Form Pagination process not only produces the process but also creates the following:

    1. A hidden field to hold the value of the primary key for the next master record
    2. A hidden field to hold the value of the primary key for the previous master record
    3. A Previous button with conditions to display only if there is a value in the previous primary key hidden field
    4. A Next button with conditions to display only if there is a value in the next primary key hidden field
    5. A display field for the current master record count (for example, “3 of 4”)
    6. A branch back to the same page, conditional on the Next button, that populates the item holding the primary key with the value from the item holding the primary key of the next record
    7. A branch back to the same page, conditional on the Previous button, that populates the item holding the primary key with the value from the item holding the primary key of the previous record

    If you are manually using this processes, you would have a query whose WHERE clause references the item containing the primary key.

    This explanation always refers to a single primary key on the table. However, the wizard and process can handle a primary key with two columns. In that case, the wizard would create two “next” and two “previous” hidden fields.

    In the Create Page Process Wizard, after selecting the Form Pagination type process, you specify the table on which to base the process. Next, you specify the one or two columns that make up the primary key on the table and the existing page items where these keys will be. These items are the only ones that must exist prior to creating the process. Then, you must specify the region on your page where the wizard should create all the items specified previously. You will also specify one or two columns from the table that will be used to determine the ordering of the table. If you do not specify a column for ordering, the order will be determined by the primary key. Finally, you can specify a WHERE clause if you want to limit the records that will be included.



     
     
    >>> More Oracle Articles          >>> More By McGraw-Hill/Osborne
     

       

    ORACLE ARTICLES

    - Oracle's Turn to Play in the Sun
    - Implementing and Using Oracle`s Restore Poin...
    - Tuning PL/SQL Code
    - Debugging PL/SQL Code
    - Testing PL/SQL Code
    - Working With PL/SQL Code
    - Conditional Compilation for Oracle Database ...
    - Compile-Time Warnings for Oracle DB 10g
    - Compiling PL/SQL Code for an Oracle Database
    - Troubleshooting PL/SQL Code
    - Managing PL/SQL Code
    - Data Manipulation and More for HTML DB Appli...
    - Oracle Database Fundamentals
    - Adding Processes to HTML DB Applications
    - Adding Computations, Processes, and Validati...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek