 |
|
ss
Oracle Tips by Burleson |
Creating
Multiple Buttons
HTML DB provides a method for the creation of many
buttons at one time. This method can be used to quickly define a
number of buttons in a region all with the same button template. This
will make consistent looking buttons throughout the page. Using this
method can be a real time-saver if the developer knows what they want
in their region. The following example will show how.
The first step is to click on the Create button in
the Page Rendering section of a Page Definition screen. As before,
this will begin the Button Wizard with the first page of the wizard
shown in Figure 10.13. The difference this time is the link at the
bottom of this page, Create Multiple Buttons, will be selected. But
first, it will be necessary to specify the region in which to place
the buttons by choosing the radio button for the region.
The Create Multiple Buttons link will display a
new page that is shown in Figure 10.14. Up to 12 buttons can be
defined at once. At the top of the page, there are two drop down
boxes: one for the region; and one for the template. The region may
be changed. The template drop down box only provides choices for the
HTML DB button templates. There is another box, HTML Attributes, that
is used to specify any additional attributes for the buttons.
In Figure 10.14, the creation of five different
buttons using different labels and different positions has been
specified. These buttons can only be created in the Region positions
and not among the pages items. All that is left to do now is to click
on the Create Buttons button. Quick and easy!
To make it even easier, something else that HTML
DB provides is a list of Quick Buttons. This list is located on the
right side of the Create Multiple Button page and is depicted in
Figure 10.15. When one of the links from this list is chosen, the
next empty slot will be filled with the corresponding required
values. For example, if the Submit link in chosen, the Name of the
button will be filled in with SUBMIT, the label value will be Submit,
and the position will be #CREATE#.
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
|