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.

120<br />

** we are done.<br />

*/<br />

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

/* Create and Populate ’numrecs’ records */<br />

FOR j IN 1..numrecs LOOP<br />

Create_Queried_Record;<br />

/*<br />

** User exit returns false if there are no more<br />

** records left to fetch. We break out of the<br />

** if we’ve hit the last record.<br />

*/<br />

User_Exit(’my_fetch block=EMP get_next_record’);<br />

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

EXIT;<br />

END IF;<br />

END LOOP;<br />

END IF;<br />

/*<br />

** Otherwise, do the right thing.<br />

*/<br />

ELSE<br />

Fetch_Records;<br />

END IF;<br />

END;

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

Saved successfully!

Ooh no, something went wrong!