I'm using an UDT and an Event Handler (PreItemSave) for the LISE Instance to save the result of the calculation. But it seems my LISE fields is not accepted as numbers. What am i doing wrong here?
My UDT:
Code: Select all
$item = $params['item_object'];
//Set Vars
$firstfield = (int)$item->firstfield;
$secondfield = (int)$item->secondfield;
$thirdfield = (int)$item->thirdfield;
//Calculate Total
$total = $firstfield + $secondfield + $thirdfield;
//Save To LISE Instance
$item->total = $total;