Showing posts with label rollup. Show all posts
Showing posts with label rollup. Show all posts

Sunday, 17 March 2019

Rollup Cost from all Child lines into Parent as Total Cost | Maximo

Create a Object Launch Point


Object: ParentObject
Language: jython
Event:     Validate Application

Variables:
vSumLine    Rel_ChildObject.LINECOST*       
vtotalcost    TOTALCOST

Script:
if vSumLine is not None:
    vtotalcost = sum(vSumLine)
else:
    vtotalcost = 0.0