xdb
Syntax
xdb(siteAlias, [userId], [password])
or
xdb(host, port, [userId], [password])
Arguments
siteAlias is the alias of the remote node. It needs to be defined in configuration.
host is the host name (IP address or website) of the remote node.
port is the port number of the remote node.
userId and password (optional) are based on the user's profile. They are used if the administrator has enabled UserAccessControl.
Details
Connect to a remote site. This remote site must be on. If the connection is successful, it returns the handle of the remote connection.
Examples
h2=xdb("local8081");
h2;
// output
"Conn[localhost:8081:1166953221]"
h21=xdb("localhost",8081);
h21;
// output
"Conn[localhost:8081:1441295757]"
h4=xdb("local8083","userAdm","passAdm");
h4;
// output
"Conn[localhost:8083:1166953221]"
h41=xdb("localhost",8083, "user001","pass001");
h41;
// output
"Conn[localhost:8083:597793698]"