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.

ALLOCATIONFIELD: Elements and Attributes
TYPE=ALLOCATIONFIELD
Element Attributes Parent Element Description Element/Attribute Value

<MathVariable>

 

     
TYPE  

This defines the new math variable type

ALLOCATIONFIELD

ALLOCATIONTYPE

 

 

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".

FROM or TO

FUNDGUID

 

MathVariable containing a FundGUID

This defines if the fund to reference in the allocation

 

DATATYPE

 

 

A variable Type you wish to extract the value of data

This defines the Mathvariable data type

TEXT or DECIMAL

CLEARVALUE

 

Optional attribute: 

Yes: The value of the math variable will be deleted after the execution of all the Attached Rules at the end of activity processing and will not be visible on the Math tab in the Activity details screen.

No: The value of the math variable will be retained after activity processing and will be displayed in the Math tab in the Activity details screen.

Value: Yes / No

Default Value: No

 

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>