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

Create successful ePaper yourself

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

:Employee.Payplan_Id;<br />

CURSOR lookup_area IS SELECT Area_Name<br />

FROM Zip_Code<br />

WHERE Zip = :Employee.Zip;<br />

BEGIN<br />

/*<br />

** Lookup the Payment Plan Description given the<br />

** Payplan_Id in the Employee Record just fetched.<br />

** Use Explicit Cursor for highest efficiency.<br />

*/<br />

OPEN lookup_payplan;<br />

FETCH lookup_payplan INTO :Employee.Payplan_Desc_Nondb;<br />

CLOSE lookup_payplan;<br />

/*<br />

** Lookup Area Descript given the Zipcode in<br />

** the Employee Record just fetched. Use Explicit<br />

** Cursor for highest efficiency.<br />

*/<br />

OPEN lookup_area;<br />

FETCH lookup_area INTO :Employee.Area_Desc_Nondb;<br />

CLOSE lookup_area;<br />

END;<br />

473

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

Saved successfully!

Ooh no, something went wrong!