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.

ENTER_QUERY restrictions<br />

Use the ALL_RECORDS and FOR_UPDATE parameters with caution. Locking and fetching a large<br />

number of rows can result in long delays due to the many resources that must be acquired to accomplish<br />

the task.<br />

ENTER_QUERY examples<br />

/*<br />

** Built-in: ENTER_QUERY<br />

** Example: Go Into Enter-Query mode, and exit the form if<br />

** the user cancels out of enter-query mode.<br />

*/<br />

BEGIN<br />

Enter_Query;<br />

/*<br />

** Check to see if the record status of the first record<br />

** is ’NEW’ immediately after returning from enter-query<br />

** mode. It should be ’QUERY’ if at least one row was<br />

** returned.<br />

*/<br />

IF :System.Record_Status = ’NEW’ THEN<br />

Exit_<strong>Form</strong>(No_Validate);<br />

END IF;<br />

END;<br />

105

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

Saved successfully!

Ooh no, something went wrong!