options['show_subpanels'] = true; parent::SugarView(); } function preDisplay(){ $metadataFile = null; $foundViewDefs = false; $GLOBALS['log']->debug("metadatafile=". $metadataFile); if(!$foundViewDefs && file_exists('modules/'.$this->module.'/metadata/makeproductiondefs.php')){ $metadataFile = 'modules/'.$this->module.'/metadata/makeproductiondefs.php'; } $this->dv = new DetailView2(); $this->dv->ss =& $this->ss; var_dump($this->bean); $this->dv->setup($this->module, $this->bean, $metadataFile, $this->tplFile); } function display(){ if(empty($this->bean->id)){ global $app_strings; sugar_die($app_strings['ERROR_NO_RECORD']); } $this->dv->process(); echo $this->dv->display(); } }