get the GLT_EcoResCalculatedTypeValue for the _recid passed through

 

 

 

 parse the calculated text and look for

 

 

 

 [ATTRIBUTE.xxx] - replace with the value returned from getAttributeValue

 

 

 

 [PRODUCT.xxx] - replace with the value returned from getProductValue

 [ITEM.xxx] - replace with the value returned from getItemValue,

what i want it to do is run through my method i wrote for of these and pull data when it is asked, then loop around and repeat the process depending on how many times these methods are called. when it finished its moves onto the next one, Product.XXX then the next Item.XXX. 

What i was doing here is trying to leverage 2 features of AX language, My code and the IT clients code for a calculated attribute. Say you have length and width for attributes, i want the client to put in strFmt('%1 x %2', [Attribute.Length],[Attribute.Width]) then i return its back 5.4 x 3.2. But i need to be able to loop as many times as the client calls for different parameters.

I need help trying to figure out the code to loop this through, if anyone has example or knows where to look that would be great.