BMXNET 4.0 Developer API

All server-side RPMS RPC calls are performed through this interface. Each instance of RemoteSession corresponds to a single job (e.g. Cache process) on RPMS. There is always one primary RemoteSession and potentially more when using RemoteSessionPool. When the primary RemoteSession is closed all secondary pooled sessions are also closed and the server broker connection is terminated.

Namespace:  IndianHealthService.BMXNet
Assembly:  BMXNET40 (in BMXNET40.dll)

Syntax

         
 C#  Visual Basic  Visual C++ 
public interface RemoteSession
Public Interface RemoteSession
public interface class RemoteSession

Members

         
 All Members  Properties   Methods  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
AppContext
The active AppContext (OPTION) of this remote session.
AsyncTableFromCommand(String)
Same as the corresponding TableFromCommand call except a DataTableFuture is returned. See DataTableFuture on how to use a 'Future
AsyncTableFromCommand(String, String)
Same as the corresponding TableFromCommand call except a DataTableFuture is returned. See DataTableFuture on how to use a 'Future
AsyncTableFromCommand(String, DataSet, String)
Same as the corresponding TableFromCommand call except a DataTableFuture is returned. See DataTableFuture on how to use a 'Future
AsyncTableFromCommand(String, DataSet, String, String)
Same as the corresponding TableFromCommand call except a DataTableFuture is returned. See DataTableFuture on how to use a 'Future
AsyncTableFromRPC(String, String)
Same as the corresponding TableFromRPC call except a DataTableFuture is returned. See DataTableFuture on how to use a 'Future
AsyncTableFromRPC(String, String, String)
Same as the corresponding TableFromRPC call except a DataTableFuture is returned. See DataTableFuture on how to use a 'Future
AsyncTableFromRPC(String, String, DataSet, String)
Same as the corresponding TableFromRPC call except a DataTableFuture is returned. See DataTableFuture on how to use a 'Future
AsyncTableFromRPC(String, String, DataSet, String, String)
Same as the corresponding TableFromRPC call except a DataTableFuture is returned. See DataTableFuture on how to use a 'Future
AsyncTableFromSQL(String)
AsyncTableFromSQL(String, String)
AsyncTableFromSQL(String, DataSet, String)
AsyncTableFromSQL(String, DataSet, String, String)
Close()()()
When done with session it should be closed. Once closed it is unusable.
DebugLastRpcResult
String value of last successful non-DataTable RPC call
DebugLastRpcSignature
String describing RPC call and input parameters of last non-DataTable RPC call
DebugLastTableResult
Last DataTable retrieved by non-async calls
EventServices
Access the session's RemoteEventServices service provider to configure receiving remote events and to source new events.
HostAddress
BMX Broker's host address name or IP Address
IsBmxAdoCommand(String)
Answer True if aString is a standard BMX ADO SS command that uses the BMX ADO SCHEMA files
IsPrimary
The primary session has the unique in that it holds the authenication privileges for all sessions. If you close the primary session, then all will close.
Job
Job number of server-side Cache/MDB process. Very useful for debugging.
Log
ReceiveTimeout
The networking data receive timeout (in milliseconds). This value can be changed if the developer finds it neccessary to extend the time after login.
RpcResult
String value of last successful non-DataTable RPC call
SafelyTransmitRPC(String, String)
Calls a remote procedure on the RPMS server and returns the result as a String. If there are any exceptions a colon delimited string in the format Exception:Message is returned.
SafelyTransmitRPC(String, String, String)
Calls a remote procedure on the RPMS server and returns the result as a String. If there are any exceptions a colon delimited string in the format Exception:Message is returned.
SaveChanges(DataTable)

Examples

Copy Code
            
            this.Context.Visit.Create();
            if (this.Context.Visit.IsStub)
            {
                if (!this.Context.Visit.Create())
                {
                    return false;
                }
            }
            this.RemoteSession.SaveChanges(this.ScoreTable);
            
SendTimeout
The networking data send timeout (in milliseconds). This value can be changed if the developer finds it neccessary to extend the time after login but normally the send timeout should be kept short unless network conditions are poor.
TableFromCommand(String)
Calling a Custom Remote Procedure call (RPC) registered in VA FileMan’s REMOTE PROCEDURE file that results in a DataTable. You must design your remote procedure’s M routine to build its result its data in the specific format described later in this document.
TableFromCommand(String, String)
Calling a Custom Remote Procedure call (RPC) registered in VA FileMan’s REMOTE PROCEDURE file that results in a DataTable. You must design your remote procedure’s M routine to build its result its data in the specific format described later in this document.
TableFromCommand(String, DataSet, String)
Calling a Custom Remote Procedure call (RPC) registered in VA FileMan’s REMOTE PROCEDURE file that results in a DataTable. You must design your remote procedure’s M routine to build its result its data in the specific format described later in this document.
TableFromCommand(String, DataSet, String, String)
Calling a Custom Remote Procedure call (RPC) registered in VA FileMan’s REMOTE PROCEDURE file that results in a DataTable. You must design your remote procedure’s M routine to build its result its data in the specific format described later in this document.
TableFromRPC(String, String)
TabletFromRpc is a double-dispatch method that is used by some developers. Developers create an RPC call the returns a properly format BMX command (custom or BMX SS ADO) that is then transmitted back to RPMS to retrieve the Data Table.
TableFromRPC(String, String, String)
TabletFromRpc is a double-dispatch method that is used by some developers. Developers create an RPC call the returns a properly format BMX command (custom or BMX SS ADO) that is then transmitted back to RPMS to retrieve the Data Table.
TableFromRPC(String, String, DataSet, String)
TabletFromRpc is a double-dispatch method that is used by some developers. Developers create an RPC call the returns a properly format BMX command (custom or BMX SS ADO) that is then transmitted back to RPMS to retrieve the Data Table.
TableFromRPC(String, String, DataSet, String, String)
TabletFromRpc is a double-dispatch method that is used by some developers. Developers create an RPC call the returns a properly format BMX command (custom or BMX SS ADO) that is then transmitted back to RPMS to retrieve the Data Table.
TableFromSQL(String)
TableFromSQL(String, String)
TableFromSQL(String, DataSet, String)
TableFromSQL(String, DataSet, String, String)
SELECT VA_PATIENT.NAME, VA_PATIENT.SSN, PATIENT.CURRENT_COMMUNITY FROM VA_PATIENT, PATIENT WHERE VA_PATIENT.BMXIEN =* INTERNAL[PATIENT.NAME] AND VA_PATIENT.NAME LIKE 'DEMO%' AND VA_PATIENT.AGE BETWEEN 15 AND 24 SHOWPLAN
TransmitRPC(String, String)
Calls a remote procedure on the RPMS server and returns the result as a String.
TransmitRPC(String, String, String)
User
Authenticated user associated with this remote session

See Also