Setting a Connection

Before using the ITRDS you need to tell it which connection you want to use. For this reason you must have pre configured a connection on both the Client and Server before getting to here. For the examples here I have created a connection with the code "MYHTTP". This connection could be any of the available types (HTTP or LOCAL etc). It makes no difference as long as it's a valid connection.

To tell the ITRDS which of the pre configured connections to use you issue the following command.

loITRDS.SetConnection("MYHTTP")

Issuing this command will configure all objects in the ITRDS with the connection settings. For example if it's an HTTTP connection the HTTP server URL will be set.

NOTE: That this is one of two cases, the other being "SetSystem, where we do not perform the method on the table object of interest. In this case the method is acted on the parent object "loITRDS". The reason for this is that this method then performs the "SetConnection" method on ALL the child objects for you. It saves you having to do the following;

loITRDS.oWorkOrders.SetConnection("MYHTTP")
loITRDS.oCustomers.SetConnection("MYHTTP")
loITRDS.oCharges.SetConnection("MYHTTP")
etc



Last Updated: 19/05/2004