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.

CHECK_RECORD_UNIQUENESS built-in<br />

Description<br />

When called from an On-Check-Unique trigger, initiates the default <strong>Form</strong> <strong>Builder</strong> processing for<br />

checking the primary key uniqueness of a record.<br />

34<br />

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

Syntax<br />

PROCEDURE CHECK_RECORD_UNIQUENESS;<br />

Built-in Type unrestricted procedure<br />

Enter Query Mode yes<br />

Parameters<br />

none<br />

CHECK_RECORD_UNIQUENESS restrictions<br />

Valid only in an On-Check-Unique trigger.<br />

CHECK_RECORD_UNIQUENESS examples<br />

/*<br />

** Built-in: CHECK_RECORD_UNIQUENESS<br />

** Example: Perform <strong>Form</strong> <strong>Builder</strong> record uniqueness checking<br />

** from the fields in the block that are marked as<br />

** primary keys based on a global flag setup at<br />

** startup by the form, perhaps based on a<br />

** parameter.<br />

** trigger: On-Check-Unique<br />

*/<br />

BEGIN<br />

/*<br />

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

*/<br />

IF :Global.Using_Transactional_Triggers = ’TRUE’ THEN<br />

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

/*<br />

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

*/<br />

ELSE<br />

Check_Record_Uniqueness;<br />

END IF;<br />

END;

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

Saved successfully!

Ooh no, something went wrong!