src/Data/BizField.php
public function getValue($formatted = true)
    {
        // need to ensure that value are retrieved from source/cache
        //if ($this->getDataObj()->CheckDataRetrieved() == false)    	
        //$this->getDataObj()->getActiveRecord();

        if ($this->_prevValue == $this->value) {
            return $this->_getValueCache;
        }
        //$value = stripcslashes($this->value);
        $value = $this->value;
        if ($this->valueExpression && trim($this->column) == "") {
            $value = Expression::evaluateExpression($this->valueExpression, $this->getDataObj());
        }
        if ($this->format && $formatted) {
            $value = Openbizx::$app->getTypeManager()->valueToFormattedString($this->type, $this->format, $value);
        }
        $this->_prevValue = $this->value;
        $this->_getValueCache = $value;
        return $value;
    }
public function getValue($formatted = true)
    {
        // need to ensure that value are retrieved from source/cache
        //if ($this->getDataObj()->CheckDataRetrieved() == false)    	
        //$this->getDataObj()->getActiveRecord();

        if ($this->_prevValue == $this->value) {
            return $this->_getValueCache;
        }
        //$value = stripcslashes($this->value);
        $value = $this->value;
        if ($this->valueExpression && trim($this->column) == "") {
            $value = Expression::evaluateExpression($this->valueExpression, $this->getDataObj());
        }
        if ($this->format && $formatted) {
            $value = Openbizx::$app->getTypeManager()->valueToFormattedString($this->type, $this->format, $value);
        }
        $this->_prevValue = $this->value;
        $this->_getValueCache = $value;
        return $value;
    }
Get the value of the field.

@param boolean $formatted true if want to get the formatted value
@return mixed string or number depending on the field type