Loading...
 

CX_TRANSACTION::TopTransaction

CX_TRANSACTION::TopTransaction

Description:

A transaction can have a parent transaction, which in turn can have a parent, etc. This class function returns the original transaction, i.e. the top of the chain (direction "up" means "reachable via the data field transaction", direction "down" - from class CX_COMPOUND_TXN - means "reachable via the data field subTransactions").

Code example:
ObjectList(CX_TRANSACTION::predecessors~OrderItems, CONTEXTMENU(OrderItemMenu), NO_DRAIN, VIEW_ONLY, AUTO_POSITION, ENTIRE, 100, 51, 100, 30) [ INITIALIZE: [ "CX_TRANSACTION::TopTransaction().uniqueID" COLOR LIGHTBLUE ] SetFormat [ "CX_TRANSACTION::uniqueID" ] SetFormat [ "CX_TRANSACTION::salesItem.uniqueID" COLOR LIGHTRED ] SetFormat [ "CX_TRANSACTION::salesItem.ShortName()" COLOR CYAN ] SetFormat ]
Stack
Stack Position Object type Brief description
Stack(In) Top CX_TRANSACTION A transaction
Stack(Out) Top CX_TRANSACTION Its top transaction
Function call: Call(TopTransaction)