Adsense Ad

Thursday 11 May 2017

Oracle Forms: LOGOUT

LOGOUT Built-in

Description

Disconnects the application from the ORACLE RDBMS. All open cursors are automatically closed when you issue a call to the LOGOUT built-in. You can programmatically log back on with LOGON. If you LOGOUT of a multiple-form application with multiple sessions, Forms Developer tries to re-establish all of those connections when you subsequently execute

LOGON.

Syntax

PROCEDURE LOGOUT;

Built-in Type unrestricted procedure

Enter Query Mode yes

Parameters

none

LOGOUT Examples

/*

**  Built-in: LOGOUT

**  Example: Perform Forms Developer standard logout. Decide

**  whether to use Forms Developer built-in processing or a

**  user exit by consulting a global flag setup at

**  startup by the form, perhaps based on a

**  parameter.

**  Trigger: On-Logout

*/

BEGIN /*

** Check the flag we setup at form startup */

IF :Global.Non_Oracle_Datasource = 'TRUE' THEN


User_Exit('my_logout'); /*

** Otherwise, do the right thing. */

ELSE Logout;

END IF;

No comments: