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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

4.3. Using the Create New Application Definition Wizard<br />

4.3.1. Dropdown Lists or Lists of Values<br />

After enabling <strong>JHeadstart</strong>, you will typically create a <strong>JHeadstart</strong> Application Definition<br />

xml file. You can create a new Application Definition by right-clicking the<br />

ViewController project and choosing ‘New <strong>JHeadstart</strong> Application Definition’.<br />

At this point, <strong>JHeadstart</strong> will make changes to your ADF Business Components Model.<br />

For each View Link, <strong>JHeadstart</strong> generates a Lookup data collection by default. <strong>JHeadstart</strong><br />

adds new instances of the ViewObjects to the Application Module with name *Lookup.<br />

You can inspect this behavior by editing your Application Module.<br />

The reason is that a lookup needs to maintain its own set of rows. For example, when<br />

you have a page that maintains Employees, and in another page there is a list of values<br />

for selecting an employee, there need to be two instances of the same ViewObject. One<br />

instance holds the rows for the maintenance page, and the other holds the rows for the<br />

list of values. This way you can perform a search in the Employees maintenance page,<br />

without limiting the available values in the lookup.<br />

One of the questions asked by the New Application Definition Wizard is ‘Generate<br />

LOV's instead of dropdown lists?'<br />

<strong>JHeadstart</strong> Developer’s <strong>Guide</strong> Using the <strong>JHeadstart</strong> Addins 4 - 7

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

Saved successfully!

Ooh no, something went wrong!