public function getExportFormats() { if ($this->request->get('pcode') == '') { return parent::getExportFormats(); } return array(); }