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.

LOGOUT built-in<br />

Description<br />

Disconnects the application from the ORACLE RDBMS. All open cursors are automatically closed<br />

when you issue a call to the LOGOUT built-in. You can programmatically log back on with LOGON. If<br />

you LOGOUT of a multiple-form application with multiple connections, <strong>Form</strong> <strong>Builder</strong> tries to reestablish<br />

all of those connections when you subsequently execute LOGON.<br />

Syntax<br />

PROCEDURE LOGOUT;<br />

Built-in Type unrestricted procedure<br />

Enter Query Mode yes<br />

Parameters<br />

none<br />

LOGOUT examples<br />

276<br />

/*<br />

** Built-in: LOGOUT<br />

** Example: Perform <strong>Form</strong> <strong>Builder</strong> standard logout. Decide<br />

** whether to use <strong>Form</strong> <strong>Builder</strong> built-in processing or<br />

a<br />

** user exit by consulting a global flag setup at<br />

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

** parameter.<br />

** trigger: On-Logout<br />

*/<br />

BEGIN<br />

/*<br />

** Check the flag we setup at form startup<br />

*/<br />

IF :Global.Non_<strong>Oracle</strong>_Datasource = ’TRUE’ THEN<br />

User_Exit(’my_logout’);<br />

/*<br />

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

*/<br />

ELSE<br />

Logout;<br />

END IF;

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

Saved successfully!

Ooh no, something went wrong!