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.

LOGON built-in<br />

Description<br />

Performs the default <strong>Form</strong> <strong>Builder</strong> logon processing with an indicated username and password. Call this<br />

procedure from an On-Logon trigger when you want to augment default logon processing.<br />

Syntax<br />

PROCEDURE LOGON<br />

(username VARCHAR2,<br />

password VARCHAR2);<br />

PROCEDURE LOGON<br />

(username VARCHAR2,<br />

password VARCHAR2,<br />

logon_screen_on_error VARCHAR2);<br />

Built-in Type unrestricted procedure<br />

Enter Query Mode yes<br />

Parameters<br />

This built-in takes the following arguments:<br />

username Any valid username of up to 80 characters.<br />

password Any valid password of up to 80 characters, including a database connect<br />

string.<br />

logon_screen_ on_error An optional BOOLEAN parameter that, when set to TRUE (default), causes<br />

<strong>Form</strong> <strong>Builder</strong> to automatically display the logon screen if the logon<br />

specified fails (usually because of a incorrect username/password). When<br />

logon_screen_on_error is set to FALSE and the logon fails, the logon<br />

screen will not display and FORM_FAILURE is set to TRUE so the<br />

designer can handle the condition in an appropriate manner.<br />

Usage Notes:<br />

272<br />

When using LOGON to connect to an OPS$ database use a slash ’/’ for the user.name and the<br />

database name for the password..<br />

LOGON restrictions<br />

• If you identify a remote database, a SQL*Net connection to that database must exist at runtime.<br />

• <strong>Form</strong> <strong>Builder</strong> can connect to only one database at a time. However, database links may be used to<br />

access multiple databases with a single connection.<br />

LOGON examples<br />

/*<br />

** Built-in: LOGON<br />

** Example: Perform <strong>Form</strong> <strong>Builder</strong> standard logon to the ORACLE<br />

** database. Decide whether to use <strong>Form</strong> <strong>Builder</strong>

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

Saved successfully!

Ooh no, something went wrong!