RemoteCall
Mon 01 January 2018Syntax
RemoteCall(dispatcher_name [, service_paramlist] [, user_paramlist])
where service_paramlist and user_paramlist are arbitrary-length lists of parameters in the form:
var1, val1 [, var2, val2]. . .
Description
Use the RemoteCall function to call a Tuxedo service from a PeopleSoft application. A typical use of Remote Call is to run data-intensive, performance-sensitive programs near or on the database server.
Note: After PeopleTools 8 you can no longer use RemoteCall to start an Application Engine program. You must use CallAppEngine instead.
Because complex PeopleCode processes can now be run on the application server in three-tier mode, the RemoteCall PeopleCode function has more limited utility. However, RemoteCall can still be very useful, because it provides a way to take advantage of existing COBOL processes.
-
In three-tier mode, RemoteCall always runs on the application server.
-
In two-tier mode, RemoteCall always runs on the client.
This means that it is no longer necessary to set a location for the remote call in PeopleSoft Configuration Manager.
Each RemoteCall service can have zero or more standard parameters and any number of user parameters. The standard parameters are determined by the RemoteCall dispatcher, the user parameters by the COBOL program being run.
There is only one RemoteCall dispatcher delivered with PeopleTools 7, PSRCCBL, which executes a COBOL program using the connect information of the current end user.
In the application server configuration file, you can specify where RemoteCall can find the COBOL executables
RemoteCall can be used from any type of PeopleCode except SavePostChange, SavePreChange, Workflow, and RowSelect. However, remote programs that change data should not be run as part of the SaveEdit process, because the remote program may complete successfully even though an error occurs in a later part of the save process. For remote programs that change data, the normal place for them would be in the FieldChange PeopleCode behind a command push button, or in a pop-up menu item.
After you use RemoteCall, you may want to refresh your page. The Refresh method, on a rowset object, reloads the rowset (scroll) using the current page keys. This causes the page to be redrawn. The following code refreshes the entire page:
GetLevel0().Refresh()
If you only want a particular scroll to be redrawn, you can refresh just that part.
Parameters
The parameters passed to RemoteCall can be broken into three parts: the RemoteCall Dispatcher Name , the standard Parameter Lists for the service, and the User Parameter Lists for the program being called on the service.
Returns
None.