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.

GUI application, or an invalid command. FORM_SUCCESS will return TRUE for 32-bit<br />

applications executed sucessfully and FALSE if failed.<br />

FORM_SUCCESS examples<br />

/*<br />

** Built-in: FORM_SUCCESS<br />

** Example: Check whether the most-recently executed built-in<br />

** succeeded.<br />

*/<br />

BEGIN<br />

/*<br />

** Force validation to occur<br />

*/<br />

Enter;<br />

/*<br />

** If the validation succeeded, then Commit the data.<br />

**<br />

*/<br />

IF <strong>Form</strong>_Success THEN<br />

Commit;<br />

IF :System.<strong>Form</strong>_Status ’QUERY’ THEN<br />

Message(’Error prevented Commit’);<br />

RAISE <strong>Form</strong>_trigger_Failure;<br />

END IF;<br />

END IF;<br />

END;<br />

149

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

Saved successfully!

Ooh no, something went wrong!