OraFormsConnect Function

Action

Establishes a connection between an Oracle Forms client and an Oracle Forms Server.

Include file

OraForms.bdh

Syntax

OraFormsConnect( in ssInitialCommandLine : string,
                 in  sServerUrl          : string optional,
                 in sDocumentBase        : string optional ): boolean;

Return Value

  • true if successful
  • false otherwise
Parameter Description
sInitialCommandLine The module that will be called by the client.
sServerUrl

(optional) allows to pass the complete ServerURL parameter that is used to initialize the Oracle Forms Applet.

This parameter should be defined for Oracle Forms 9i and Oracle Forms 6i >= PatchSet4.

sDocumentBase

(optional) allows to pass the document base of the Oracle Forms Applet.

This parameter should be defined for Oracle Forms 9i and Oracle Forms 6i >= PatchSet4.

Example

dcltrans
  transaction TMain
  begin
    OraFormsSetBoolean ("WINSYS_REQUIREDVA_LIST", false);
    OraFormsSetString ("DEFAULT_LOCAL_TZ", "Europe/Berlin");
    OraFormsConnect ("server module=javamail90.fmx usesdi=yes userid= "
                     "sso_userid= temp_dir=C:\\orant\\forms90\\demos\\temp");
  end TMain;