BBjBatch

Creation Path

BBjAPI > BBjSysGui > BBjBatch

 

In BBj 3.02 and higher, the BBjBatch object is deprecated and replaced with BBjAPI::getConfig().suppressUIAckBack(1), which is no-op'd in BBj 5.0 and higher.

Description

The BBjBatch object is used to create and submit a batch of CTRL() and/or SENDMSG() functions in a thin client environment.

Creation

A BBjBatch object is created through the following BBjSysGui method:

Return Value

Method

BBjBatch

getMessageBatch()

Methods of BBjBatch

Return Value

Method

void

addCtrl(int controlID, int function)

void

addCtrl(int controlID, int function, int contextID)

void

addSendMsg(int objectID, int messageID, int argument, string argument)

void

addSendMsg(int objectID, int messageID, int argument, string argument, int contextID)

void

clearAll()

string

getResponse(int)

void

processAll()

Remarks

The SysGui batch feature can be used to reduce the number of network delays when a BBj application is run in a distributed environment.

Constants

None.

Example

rem ' Obtain the instance of the BBjSysGui object

rem '  Obtain the instance of the BBjAPI object
let myAPI!=BBjAPI()

rem '  Open the SysGui device
SYSGUI=UNT
OPEN (SYSGUI) "X0"

rem '  Obtain the instance of the BBjSysGui object
let mySysGui!=myAPI!.getSysGui()

rem '  Obtain the instance of the BBjBatch Object
let myBatch! = mySysGui!.getMessageBatch()

 

See Also

BBjAPI

BBjSysGui

BBj Object Variables

BBj Object Assignment

BBj Object Error Handling

BBj Object Operators

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.