PlayTransaction Method

Plays a transaction from the Transactions collection.

App.PlayTransaction(Transaction, [Inputs])

Client support

   Newlook Smartclient

   Newlook Server

Arguments

Transaction - (String, Required)

A string specifying the name of the transaction to play.

Inputs - (String, Optional)

Inputs to the transaction can be supplied in one of two ways:

  1. A separate literal argument can be supplied for every 'InputField' defined within the transaction. Arguments must be provided in the same order that they are defined within the transaction and separated by commas (see example 1 below), or
  2. If the arguments to be provided are values then the argument must be specified in the following way: input=val where 'input' is a string that is the name of the InputField defined in the transaction and 'val' is the value being supplied.

Returns

This method returns a VB Array. If you are using this method in a JScript script then you will need to convert the returned value from a VB to JScript array using the toArray() method. See the JScript examples below.

If method (1) above is used, then the return value is an array of string values (corresponding to the output fields in the order they are defined within the transaction). If method(2) above is chosen, then the return value is an array of strings of the form “OutputFieldName=value” (where OutputFieldName is the name of the output field and Value is the string contents of that output field). In this case, it is up to the calling script to extract the value following the ‘=’ symbol.

Applies To

App object

See Also

Methods | Transaction Recorder | Transaction object | Transactions Collection


© 2004-2021 looksoftware. All rights reserved.