src/View/BaseForm.php
public function getActiveRecord($recId = null)
    {
        if ($this->activeRecord != null) {
            if ($this->activeRecord['Id'] != null) {
                return $this->activeRecord;
            }
        }

        if ($recId == null || $recId == '')
            $recId = Openbizx::$app->getClientProxy()->getFormInputs('_selectedId');
        if ($recId == null || $recId == '')
            return null;
        $this->recordId = $recId;

        // TODO: may consider cache the current record in session or pass the record from client
        if ($this->getDataObj()) {
            $this->getDataObj()->setActiveRecordId($this->recordId);
            $rec = $this->getDataObj()->getActiveRecord();

            // update the record row
            $this->dataPanel->setRecordArr($rec);

            $this->activeRecord = $rec;
        }
        return $rec;
    }
public function getActiveRecord($recId = null)
    {
        if ($this->activeRecord != null) {
            if ($this->activeRecord['Id'] != null) {
                return $this->activeRecord;
            }
        }

        if ($recId == null || $recId == '')
            $recId = Openbizx::$app->getClientProxy()->getFormInputs('_selectedId');
        if ($recId == null || $recId == '')
            return null;
        $this->recordId = $recId;

        // TODO: may consider cache the current record in session or pass the record from client
        if ($this->getDataObj()) {
            $this->getDataObj()->setActiveRecordId($this->recordId);
            $rec = $this->getDataObj()->getActiveRecord();

            // update the record row
            $this->dataPanel->setRecordArr($rec);

            $this->activeRecord = $rec;
        }
        return $rec;
    }
Get activeRecord

@param mixed $recId
@return array - record array