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.

4.4.3. Groups<br />

4.4.4. Items<br />

4.4.5. Lists of Values<br />

A service is made up of one or more groups. A group allows users to query and modify a<br />

single data collection that maps to an ADF BC View Object (VO). Depending on the<br />

layout options you choose, the group may be displayed on a single page or on a number<br />

of related pages.<br />

Groups may be nested to support parent-child relationships between their respective<br />

View Objects.<br />

Compared to a form module defined through <strong>Oracle</strong> Designer, you would typically<br />

create one group for each first level module component. For detail module components<br />

in a master-detail relationship, you would use nested groups.<br />

A group consists of Items, Regions and Detail Groups. These concepts are discussed<br />

below.<br />

An item is a mapping to an attribute of an ADF View Object (which normally maps to a<br />

database column). All kinds of properties can be set for an item. For instance you can<br />

specify a default value or a label (used when generating prompts). An item can have a<br />

List of Values, which is explained in the next section.<br />

A List of Values (LOV) construction in an Application Definition links an item to a group<br />

of type LOV, and specifies which items in the LOV group are to be mapped to which<br />

items in the base group. This is required if in the generated application you want to<br />

populate the item using a List of Values popup window instead of using a dropdown<br />

list.<br />

Example The EMPLOYEES table has a foreign key to the DEPARTMENTS table.<br />

When adding an EMPLOYEE, you need to choose the department. Suppose you want to<br />

enter the the department using a List of Values, and you want to put that LOV on<br />

the Department Name instead of the Department Id.<br />

In the Application Definition you then have to create an item DepartmentName<br />

(after first creating it in the ADF BC View Object), and link an LOV to that item.<br />

This is how it looks in the Application Definition editor:<br />

4 - 12 Using the <strong>JHeadstart</strong> Addins <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!