11.01.2013 Views

Oracle Forms Developer – Form Builder Reference, Volume 1

Oracle Forms Developer – Form Builder Reference, Volume 1

Oracle Forms Developer – Form Builder Reference, Volume 1

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.

566<br />

LOV1 and LOV2 are based on the same record group; LOV1 has Automatic Refresh set to Yes, LOV2<br />

has Automatic Refresh set to No. When LOV1 is invoked, <strong>Form</strong> <strong>Builder</strong> executes the query to<br />

populate the underlying record group. When the operator dismisses LOV1, <strong>Form</strong> <strong>Builder</strong> destroys the<br />

record cache, and clears the record group.<br />

When LOV2 is subsequently invoked, <strong>Form</strong> <strong>Builder</strong> again executes the query to populate the record<br />

group, even though LOV2 has Automatic Refresh set to No. Because LOV2’s underlying record group<br />

was cleared when LOV1 was dismissed, <strong>Form</strong> <strong>Builder</strong> does not consider it to have been queried by an<br />

LOV invocation, and so re-executes the query.<br />

If, on the other hand, both LOV1 and LOV2 had Automatic Refresh set to No, <strong>Form</strong> <strong>Builder</strong> would<br />

execute the query when LOV1 was invoked, but would not re-execute the query for LOV2. This is<br />

true even if the initial query returned no rows.<br />

• When Automatic Refresh is set to No, you can programmatically replace the rows that were returned<br />

by the initial query with POPULATE_GROUP. <strong>Form</strong> <strong>Builder</strong> ignores this operation when deciding<br />

whether to re-execute the query. (<strong>Form</strong> <strong>Builder</strong> looks only at the internal flag that indicates whether<br />

a query has occurred, not at the actual rows returned by that query.)<br />

Automatic Refresh restrictions<br />

Valid only for an LOV based on a query record group, rather than a static or non-query record group.

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

Saved successfully!

Ooh no, something went wrong!