src/Easy/Element/FormElement.php
public function render()
    {    	
        if(!$this->formReference)
        {
        	return null;
        }
        $formObj = $this->getFormObj();   
        $formElementObj = Openbizx::getObject($this->formReference);
        $formElementObj->parentFormName = $formObj->objectName;
        $formElementObj->parentFormElementMeta = $this->xmlMeta;
		$formElementObj->canUpdateRecord = $formObj->canUpdateRecord;
        if (method_exists($formObj,"SetSubForms"))
        {
                $formObj->setSubForms($this->formReference);   
                if($formObj->dataObjName){             
                	$formDataObj = Openbizx::getObject($formObj->dataObjName);
               	 	$dataObj = $formDataObj->getRefObject($formElementObj->dataObjName);
                }
                if ($dataObj)
                    $formObj->setDataObj($dataObj);                
        }        
    	$sHTML = $formElementObj->render();    	
    	$formObj->setDataObj($formDataObj);
    	$this->FormRecordCount();    
    	if(strlen($sHTML))
    	{
    		$this->hidden = "N";
    	}
    	else
    	{
    		$this->hidden = "Y";
    	}
        return $sHTML;
    }
public function render()
    {    	
        if(!$this->formReference)
        {
        	return null;
        }
        $formObj = $this->getFormObj();   
        $formElementObj = Openbizx::getObject($this->formReference);
        $formElementObj->parentFormName = $formObj->objectName;
        $formElementObj->parentFormElementMeta = $this->xmlMeta;
		$formElementObj->canUpdateRecord = $formObj->canUpdateRecord;
        if (method_exists($formObj,"SetSubForms"))
        {
                $formObj->setSubForms($this->formReference);   
                if($formObj->dataObjName){             
                	$formDataObj = Openbizx::getObject($formObj->dataObjName);
               	 	$dataObj = $formDataObj->getRefObject($formElementObj->dataObjName);
                }
                if ($dataObj)
                    $formObj->setDataObj($dataObj);                
        }        
    	$sHTML = $formElementObj->render();    	
    	$formObj->setDataObj($formDataObj);
    	$this->FormRecordCount();    
    	if(strlen($sHTML))
    	{
    		$this->hidden = "N";
    	}
    	else
    	{
    		$this->hidden = "Y";
    	}
        return $sHTML;
    }
Draw the element according to the mode

@return string HTML text