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.

• Add a Query Where Clause to the View Object. In general, if you want only<br />

the root nodes of the recursion, select those rows where the self-referencing<br />

foreign key column is null. In this example we select only the employees that<br />

have no manager with the Query Where Clause ‘manager_id is null’. Test the<br />

Query.<br />

• Because this View Object is new, we need also an extra View Link. By doing<br />

so, <strong>JHeadstart</strong> knows the relation between the new View Object with top-level<br />

rows and the View Object with the associated subordinates.<br />

• In your Business Components (model) project, choose ‘New View Link’.<br />

• Give the View Link an appropriate name, for example<br />

MgrHasSubordinatesLink.<br />

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

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

Saved successfully!

Ooh no, something went wrong!