src/View/DetailForm.php
public function deleteRecord($id)
	{  	
		$dataRec = $this->getDataObj()->fetchById($id);
		//$this->getDataObj()->setActiveRecord($dataRec);
		
		// take care of exception
		try {
			$dataRec->delete();
		} catch (Openbizx\Data\Exception $e) {
			// call $this->processDataException($e);
			$this->processDataException($e);
			return;
		}

        //$this->runEventLog();
        $this->processPostAction();
	}
public function deleteRecord($id)
	{  	
		$dataRec = $this->getDataObj()->fetchById($id);
		//$this->getDataObj()->setActiveRecord($dataRec);
		
		// take care of exception
		try {
			$dataRec->delete();
		} catch (Openbizx\Data\Exception $e) {
			// call $this->processDataException($e);
			$this->processDataException($e);
			return;
		}

        //$this->runEventLog();
        $this->processPostAction();
	}
Delete Record
NOTE: use redirectpage attr of eventhandler to redirect or redirect to previous page by default

@param string $id
@return void