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.

330<br />

WHEN VALUE_ERROR THEN<br />

Message(’Target Date must be of the form DD-MON-YY’);<br />

Bell;<br />

Validation_Err := TRUE;<br />

END;<br />

/*<br />

** If we get here, all parameters were valid so do the<br />

** Update Statement.<br />

*/<br />

IF NOT Validation_Err THEN<br />

UPDATE WAREHOUSE<br />

SET QTY_TO_ORDER = QTY_TO_ORDER*0.18<br />

WHERE TARGET_DATE = TO_DATE(:z6)<br />

AND QTY_ON_HAND > TO_NUMBER(:q2)<br />

AND COST_CODE LIKE :p1||’%’;<br />

END IF;<br />

ELSE<br />

/*<br />

** If Menu_Success is boolean false, then return back<br />

** from the procedure since user cancelled the dialog<br />

*/<br />

RETURN;<br />

END IF;<br />

END LOOP;<br />

END;

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

Saved successfully!

Ooh no, something went wrong!