Difference between revisions of "RPC HELP Tutorial Step 1"
From VistApedia
(Created page with "<h2>Tutorial: Step 1 -- RPC Broker Component</h2> The first step of this tutorial is to create a Delphi-based application that includes a TRPCBroker co...") |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | [[RPC_Broker_Help| RPC Broker Help Home]] | ||
+ | |||
+ | [[RPC_Broker_Help#Tutorial|Tutorial Home]] | ||
<h2>Tutorial: Step 1 -- RPC Broker Component</h2> | <h2>Tutorial: Step 1 -- RPC Broker Component</h2> | ||
The first step of this tutorial is to create a Delphi-based application that includes a [[RPC_HELP_TRPCBroker|TRPCBroker]] component. | The first step of this tutorial is to create a Delphi-based application that includes a [[RPC_HELP_TRPCBroker|TRPCBroker]] component. | ||
Line 11: | Line 14: | ||
Your form should look like: | Your form should look like: | ||
− | + | [[IMAGE:RPC_BROKER_TUTORIAL_1.png]] | |
The next tasks are to use the [[RPC_HELP_TRPCBroker|TRPCBroker]] component to retrieve the client workstation's RPC Broker server and port information ([[RPC_HELP_Tutorial_Step_2|Step 2]]), and then to establish a connection through the TRPCBroker component to the VistA M Server ([[RPC_HELP_Tutorial_Step_3|Step 3]]). | The next tasks are to use the [[RPC_HELP_TRPCBroker|TRPCBroker]] component to retrieve the client workstation's RPC Broker server and port information ([[RPC_HELP_Tutorial_Step_2|Step 2]]), and then to establish a connection through the TRPCBroker component to the VistA M Server ([[RPC_HELP_Tutorial_Step_3|Step 3]]). |
Latest revision as of 17:47, 15 July 2015
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:
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).