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.

Post-Logon trigger<br />

Description<br />

Fires after either of the following events:<br />

• The successful completion of <strong>Form</strong> <strong>Builder</strong> default logon processing.<br />

• The successful execution of the On-Logon trigger.<br />

Definition Level form<br />

Legal Commands<br />

SELECT statements, unrestricted built-ins<br />

Enter Query Mode no<br />

Usage Notes<br />

Use a Post-Logon trigger to provide an event point for a task such as setting up a custom environment<br />

with special variables--to initialize on an application level rather than a form-by-form basis. You might<br />

accomplish this by initializing special global variables from this trigger.<br />

On Failure<br />

Varies based on the following conditions:<br />

• If the trigger fails during the first logon process, <strong>Form</strong> <strong>Builder</strong> exits the form, and returns to the<br />

operating system.<br />

• If the trigger fails after a successful logon, <strong>Form</strong> <strong>Builder</strong> raises the built-in exception<br />

FORM_TRIGGER_FAILURE .<br />

Fires In<br />

LOGON<br />

See Process Flowcharts<br />

Post-Logon trigger examples<br />

Example<br />

This example calls a user exit to log the current username and time to an encrypted audit trail file on the<br />

file system, which for security reasons is outside the database.<br />

BEGIN<br />

User_Exit(’LogCrypt ’||<br />

USER||’ ’ ||<br />

TO_CHAR(SYSDATE,’YYYYMMDDHH24MISS’));<br />

END;<br />

470

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

Saved successfully!

Ooh no, something went wrong!