Investment Studio > Expressions > Functions > Lookup > TRANSACTION_ASSET

integer transaction_asset(integer transaction_number)

Returns the index of the asset changing hands in the transaction identified by transaction_number.

Asset indices are references to entries in the global table of assets in the selected portfolio. They are required arguments to all asset_xxx functions, e.g. asset_name and asset_symbol.

Transaction numbers are references to entries in Investment Studio's internal table of transactions in the selected portfolio. Since they can be reassigned at the user's request (see the discussion of transaction number cells in Grid objects) it's not advisable to specify them using constants. Instead, they should be obtained through the interface methods provided by the object hosting the expression.

Tip: In the Transaction view's Grid, the cell values of Transaction type cells are actually transaction numbers, making any Transaction type field's symbols a valid arguments to transaction_asset.