options['show_subpanels'] = true; parent::SugarView(); } function preDisplay(){ $metadataFile = $this->getMetaDataFile(); $this->dv = new DetailView2(); $this->dv->ss =& $this->ss; $this->dv->setup($this->module, $this->bean, $metadataFile, 'include/DetailView/DetailView.tpl'); } function display(){ if(empty($this->bean->id)){ global $app_strings; sugar_die($app_strings['ERROR_NO_RECORD']); } $this->dv->process(); echo $this->dv->display(); } }