project BLF > class Transaction > method GetInstances
Description
Returns the ID's of all instances of a certain business class that are part of this transaction.
Parameters
icClass | input | character | Business class shortname (optional) |
ocInstances | output | character | Comma seperated list of alternately a business class shortname and an instance number |
oiReturnStatus | output | integer | Return status of the method. |
Internal usage
BLF
QadFinancials
program code (program1/transaction.p)
for each tInstances where
can-do(tInstances.tcInsName,icClass) or
icClass = ""
by tInstances.tiPriority:
assign ocInstances = (if ocInstances = ""
then ""
else ocInstances + ",":U)
+ entry(1,tInstances.tcInsName) + ",":U
+ string(tInstances.tiInstanceNr).
end.