RPC HELP Tutorial Step 1
From VistApedia
Tutorial: Step 1 -- RPC Broker Component
The first step of this tutorial is to create a Delphi-based application that includes a TRPCBroker component.
To do this:
- In Delphi, create a new application. Delphi will create a blank form, named Form1.
- Set Form1's Caption property to Terminal Type Display.
- From the Kernel component palette tab, add a TRPCBroker component to your form. The instance of the component will automatically be named RPCBroker1. It should be renamed to brkrRPCBroker1. (In general the name of the component can be any meaningful name that begins with "brkr" to indicate a TRPCBroker component.)
- Leave the default values for Server and ListenerPort as is (they are retrieved from your workstation's Registry). In the next section of the tutorial, you will add code to retrieve these values at run-time from the workstation's Registry.
- Set the ClearParameters and ClearResults properties to True if they are not set to True already. This ensures that each time a call to an RPC is made, the Results property is cleared beforehand, and the Param property is cleared afterwards.
Your form should look like:
<image missing>
The next tasks are to use the TRPCBroker component to retrieve the client workstation's RPC Broker server and port information (Step 2), and then to establish a connection through the TRPCBroker component to the VistA M Server (Step 3).