I am trying to find a way to run a formulafill that will create an array of numbers then add the numbers together to put the result into a field. I can make this happen on a line by line basis by passing the array through a python script and converting it to an integer before feeding it back to the field. Is there a way to cleanly do the same with a formulafull? Here is a sample of the code that I am running to do a line by line calculation.
global vThisItem, vTotal, vItems
arraybuild vItems,",","",?(str(Item)[1,3]+rootstock=vThisItem, str(val(str(Item)[-1,-1])*val(«bundle size»)),"") python |||x=(^«arraytopythonlist(vItems,",")»^);x=map(int,x);x=sum(x);print(x)|||,orderedtodate
Thanks for you help,