14.01.2013 Views

Oracle JHeadstart Developer's Guide - Downloads - Oracle

Oracle JHeadstart Developer's Guide - Downloads - Oracle

Oracle JHeadstart Developer's Guide - Downloads - Oracle

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

5.1. Creating Form Pages<br />

With a form page you can manipulate one row at a time. You typically use a form page<br />

when the row has many attributes and you want to show all of them.<br />

Make the following changes to your group in the Application Definition to generate a<br />

Form Page:<br />

1. Set the Layout Style property to ‘form’.<br />

There are a couple of group properties in the Form Layout category that influence this<br />

layout style:<br />

2. Determine the amount of horizontal space the form layout can consume on the<br />

page as a percentage (Form Width). If you set this to 100%, the items will spread<br />

out over the whole page. However, the items will not be aligned with each<br />

other, but will be spread over the page to take the full space available.<br />

If you want to force the items to be left aligned, set the value to an arbitrarily<br />

small number. At runtime, the screen painter will see that the value is too small<br />

and automatically increase the width just enough to display the items left<br />

aligned. The default is 10 which will left align the items.<br />

3. Determine the number of columns used to layout the fields in a form layout<br />

style. The default is 2, which will leave a page with all items placed below each<br />

other in one column.<br />

Example of a form page:<br />

Notice that the items are laid out in two columns as specified in the Columns property.<br />

Attention: The display sequence of the items on the generated page is<br />

determined by the order of the items in the group in the Application<br />

Definition. The items are layed out from left to right, and then to the next line.<br />

5 - 2 Generating Page Layouts <strong>JHeadstart</strong> Developer’s <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!