QueueMacro

This function is used to queue any transaction macro and pass its required passing parameters directly to the server while in mobile mode. Unlike the TM.CallMacro with the queue property set to True, this command will not check for a valid host connection, or move to a linked screen. It returns ‘True’ if the macro was successfully queued. These macros can be created on the Transactions tree.

Group: Server Extensions


Syntax: [nSeq =] Server.QueueMacro(sMacroName, [vParams])

nSeq                (Long) Optional – Returns the sequence number of the macro when it is successfully queued.

sMacroName     (String) – This is the name of the macro to be called.

vParams           (Variant) Optional – A series of passing parameters as required by the selected macro. Note: these parameters are the fields you defined when you wrote the macro.

Example:

Dim nSeq As Long

nSeq = Server.QueueMacro("ChangeUser", "Sam", "1234")

Supported Versions:       RFgen 4.0 and newer.