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.

COUNT_QUERY built-in<br />

Description<br />

In an On-Count trigger, performs the default <strong>Form</strong> <strong>Builder</strong> processing for identifying the number of rows<br />

that a query will retrieve for the current block, and clears the current block. If there are changes to<br />

commit in the block, <strong>Form</strong> <strong>Builder</strong> prompts the end user to commit them during COUNT_QUERY<br />

processing. <strong>Form</strong> <strong>Builder</strong> returns the following message as a result of a valid call to COUNT_QUERY:<br />

FRM-40355: Query will retrieve records.<br />

54<br />

This built-in is included primarily for applications that will run against a non-ORACLE data source.<br />

Syntax<br />

PROCEDURE COUNT_QUERY;<br />

Built-in Type restricted procedure<br />

Enter Query Mode yes<br />

Parameters<br />

none<br />

COUNT_QUERY restrictions<br />

Valid only in triggers that allow restricted built-ins.<br />

COUNT_QUERY examples<br />

Example 1<br />

/*<br />

** Built-in: COUNT_QUERY<br />

** Example: Display the number of records that will be<br />

retrieved<br />

** by the current query.<br />

*/<br />

BEGIN<br />

Count_Query;<br />

END;<br />

Example 2<br />

/*<br />

** Built-in: COUNT_QUERY<br />

** Example: Perform <strong>Form</strong> <strong>Builder</strong> count query hits processing.<br />

** Decide whether to use this Built-in or a user<br />

** exit based on a global flag setup at startup by<br />

** the form, perhaps based on a parameter.<br />

** trigger: On-Count<br />

*/<br />

BEGIN<br />

/*<br />

** Check the global flag we set during form startup<br />

*/

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

Saved successfully!

Ooh no, something went wrong!