OraFormsIsConnected Function

Action

Returns “true” if the user is connected to the Oracle Forms Runtime on the Oracle Forms server.

This function can be used to implement a function that ensures an established connection at the start of a new transaction. When a transaction is aborted, the connection to the server is terminated. To continue in a subsequent iteration of the same main transaction, a new connection must be established.

Include file

OraForms.bdh

Syntax

OraFormsIsConnected( ): boolean;

Return value

  • true if successful

  • false otherwise

Example

dclfunc  
function DoConnect  
begin
    if(not OraFormsIsConnected()) then
      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",
                      "http://myserver:8888/forms90demo/l90servlet?ifcfs=/forms90demo/f90servlet?config=iorg",
                      "http://myserver:8888/forms90demo/");         
      OraFormsGetSessionId(gsSSessionID);

      WebCookieSet(gsSSessionID, "http://myserver:8888/forms90demo/java/");

    end;
  end DoConnect; 

dcltrans
  transaction TAddAppointment
  begin
    DoConnect();

    ...
  end TAddAppointment;

  transaction TAddToDo
  begin
    DoConnect();

     ...
  end TAddToDo;