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.

Master/Detail triggers<br />

<strong>Form</strong> <strong>Builder</strong> generates master/detail triggers automatically when a master/detail relation is defined<br />

between blocks. The default master/detail triggers enforce coordination between records in a detail<br />

block and the master record in a master block. Unless developing custom block-coordination schemes,<br />

you do not need to define these triggers. Instead, simply create a relation object, and let <strong>Form</strong> <strong>Builder</strong><br />

generate the triggers required to manage coordination between the master and detail blocks in the<br />

relation.<br />

trigger Typical Usage<br />

On-Check-Delete-Master Fires when <strong>Form</strong> <strong>Builder</strong> attempts to delete a record<br />

in a block that is a master block in a master/detail<br />

relation.<br />

On-Clear-Details Fires when <strong>Form</strong> <strong>Builder</strong> needs to clear records in a<br />

block that is a detail block in a master/detail relation<br />

because those records no longer correspond to the<br />

current record in the master block.<br />

On-Populate-Details Fires when <strong>Form</strong> <strong>Builder</strong> needs to fetch records into<br />

a block that is the detail block in a master/detail<br />

relation so that detail records are synchronized with<br />

the current record in the master block.<br />

Message-handling triggers<br />

<strong>Form</strong> <strong>Builder</strong> automatically issues appropriate error and informational messages in response to runtime<br />

events. Message handling triggers fire in response to these default messaging events.<br />

trigger Typical Usage<br />

On-Error Replace a default error message with a custom error<br />

message, or to trap and recover from an error.<br />

On-Message To trap and respond to a message; for example, to<br />

replace a default message issued by <strong>Form</strong> <strong>Builder</strong> with a<br />

custom message.<br />

Navigational triggers<br />

Navigational triggers fire in response to navigational events. For instance, when the operator clicks on a<br />

text item in another block, navigational events occur as <strong>Form</strong> <strong>Builder</strong> moves the input focus from the<br />

current item to the target item.<br />

420

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

Saved successfully!

Ooh no, something went wrong!