ALLOCATIONFIELD
The ALLOCATIONFIELD MathVariable is used to refer to values in the field columns of the activity allocation records in memory, and to extract the value of fields via screen or transaction math.
TYPE=ALLOCATIONFIELD | ||||
---|---|---|---|---|
Element | Attributes | Attribute Value | Element Value | Definition |
<MathVariable> |
TYPE |
ALLOCATIONFIELD |
This defines the new math variable type | |
ALLOCATIONTYPE | FROM or TO |
The math object you wish to extract a field from or to. |
The variable is required for allocation switch or transfer that defines the fund detail to return based on the positive or negative allocations. Default vale is "TO". |
|
FUNDGUID | MathVariable containing a FundGUID | This defines if the fund to reference in the allocation | ||
DATATYPE | TEXT OR DECIMAL |
A variable Type you wish to extract the value of data |
This defines the Mathvariable data type |
XML Example
<MathVariable VARIABLENAME="FundValueCollection" TYPE="COLLECTION" OPERATION="CREATE" DATATYPE="MAP" LOG="Yes"></MathVariable>
<MathVariable VARIABLENAME="NumberOfFunds" TYPE="AGGREGATEFUNCTION" METHOD="COUNT" DATATYPE="INTEGER">AllocationFundGUIDArray</MathVariable>
<MathLoop VARIABLENAME="FundLoop" TYPE="FOR" ITERATIONS="NumberOfFunds">
<MathVariable VARIABLENAME="FundIndex" TYPE="LOOPINDEX" SOURCEARRAY="FundLoop" DATATYPE="INTEGER"></MathVariable>
<MathVariable VARIABLENAME="FundGUID" TYPE="AGGREGATEFUNCTION" METHOD="INDEX" INDEX="FundIndex" DATATYPE="TEXT">AllocationFundGUIDArray</MathVariable>
<MathVariable VARIABLENAME="FundValue" TYPE="ALLOCATIONFIELD" ALLOCATIONTYPE="TO" FUNDGUID="FundGUID" DATATYPE="DECIMAL">AllocationAmount</MathVariable>
<MathVariable VARIABLENAME="FundValueCollection" TYPE="COLLECTION" OPERATION="SETVALUE" KEY="FundGUID" DATATYPE="DECIMAL">FundValue</MathVariable>
</MathLoop>