AddOutput(self::OUTPUT_RESULT, NumberIOFormat::class); } /** * Compute the expression and set the output values. * * @param string $sEventType * * @return mixed * @throws \Combodo\iTop\Forms\Block\FormBlockException * @throws \Combodo\iTop\Forms\Register\RegisterException */ public function ComputeExpression(string $sEventType): mixed { $oResult = parent::ComputeExpression($sEventType); // Update output $this->GetOutput(self::OUTPUT_RESULT)->SetValue($sEventType, new NumberIOFormat($oResult)); return $oResult; } }