public function removeRecord()
    {
        if ($id == null || $id == '')
            $id = Openbizx::$app->getClientProxy()->getFormInputs('_selectedId');

        $selIds = Openbizx::$app->getClientProxy()->getFormInputs('row_selections', false);
        if ($selIds == null)
            $selIds[] = $id;
        foreach ($selIds as $id) {
            $rec = $this->getDataObj()->fetchById($id);
            $ok = $this->getDataObj()->removeRecord($rec, $bPrtObjUpdated);
            if (!$ok)
                return $this->processDataObjError($ok);
        }

        $this->runEventLog();
        $this->rerender();
        if ($this->parentFormName) {
            $this->renderParent();
        }
    }