protected function _doUpdate($inputRecord, $currentRecord)
    {
        $dataRec = new DataRecord($currentRecord, $this->getDataObj());

        foreach ($inputRecord as $k => $v){
           	$dataRec[$k] = $v; // or $dataRec->$k = $v;
        }

        try
        {
            $dataRec->save();
        }
        catch (Openbizx\Validation\Exception $e)
        {
            $errElements = $this->getErrorElements($e->errors);           
        	if(count($e->errors)==count($errElements)){
            	$this->formHelper->processFormObjError($errElements);
            }else{            	
            	$errmsg = implode("<br />",$e->errors);
		        Openbizx::$app->getClientProxy()->showErrorMessage($errmsg);
            }
            return false;
        }
        catch (Openbizx\Data\Exception $e)
        {
            $this->processDataException($e);
            return false;
        }
		$this->activeRecord = null;
        $this->getActiveRecord($dataRec["Id"]);

        //$this->runEventLog();
        return true;
    }
protected function _doUpdate($inputRecord, $currentRecord)
    {
        $dataRec = new DataRecord($currentRecord, $this->getDataObj());

        foreach ($inputRecord as $k => $v){
           	$dataRec[$k] = $v; // or $dataRec->$k = $v;
        }

        try
        {
            $dataRec->save();
        }
        catch (Openbizx\Validation\Exception $e)
        {
            $errElements = $this->getErrorElements($e->errors);           
        	if(count($e->errors)==count($errElements)){
            	$this->formHelper->processFormObjError($errElements);
            }else{            	
            	$errmsg = implode("<br />",$e->errors);
		        Openbizx::$app->getClientProxy()->showErrorMessage($errmsg);
            }
            return false;
        }
        catch (Openbizx\Data\Exception $e)
        {
            $this->processDataException($e);
            return false;
        }
		$this->activeRecord = null;
        $this->getActiveRecord($dataRec["Id"]);

        //$this->runEventLog();
        return true;
    }
protected function _doUpdate ( $ inputRecord , $ currentRecord ) { $ dataRec = new DataRecord ( $ currentRecord , $ this -> getDataObj ( ) ) ; foreach ( $ inputRecord as $ k => $ v ) { $ dataRec [ $ k ] = $ v ; // or $dataRec->$k = $v; } try { $ dataRec -> save ( ) ; } catch ( Openbizx \ Validation \ Exception $ e ) { $ errElements = $ this -> getErrorElements ( $ e -> errors ) ; if ( count ( $ e -> errors ) == count ( $ errElements ) ) { $ this -> formHelper -> processFormObjError ( $ errElements ) ; } else { $ errmsg = implode ( "<br />" , $ e -> errors ) ; Openbizx :: $ app -> getClientProxy ( ) -> showErrorMessage ( $ errmsg ) ; } return false ; } catch ( Openbizx \ Data \ Exception $ e ) { $ this -> processDataException ( $ e ) ; return false ; } $ this -> activeRecord = null ; $ this -> getActiveRecord ( $ dataRec [ "Id" ] ) ; //$this->runEventLog(); return true ; }
Do update record

@param array $inputRecord
@param array $currentRecord
@return void
Do update record