protected function getDataTable($objName)
    {
        /* @var $formObj EasyForm */
        $formObj = Openbizx::getObject($objName); // get the existing EasyForm|BizForm object

        // if BizForm, call BizForm::renderTable
        if ($formObj instanceof BizForm)
        {
            $dataTable = $formObj->renderTable();
        }
        // if EasyForm, call EasyForm->DataPanel::renderTable
        if ($formObj instanceof EasyForm)
        {
            $recordSet = $formObj->fetchDataSet(); 
            $dataSet = $formObj->dataPanel->renderTable($recordSet);
            foreach ($dataSet['elems'] as $elem)
            {
                $labelRow[] = $elem['label'];
            }
            $dataTable = array_merge(array($labelRow), $dataSet['data']);
        }

        return $dataTable;

    }
protected function getDataTable($objName)
    {
        /* @var $formObj EasyForm */
        $formObj = Openbizx::getObject($objName); // get the existing EasyForm|BizForm object

        // if BizForm, call BizForm::renderTable
        if ($formObj instanceof BizForm)
        {
            $dataTable = $formObj->renderTable();
        }
        // if EasyForm, call EasyForm->DataPanel::renderTable
        if ($formObj instanceof EasyForm)
        {
            $recordSet = $formObj->fetchDataSet(); 
            $dataSet = $formObj->dataPanel->renderTable($recordSet);
            foreach ($dataSet['elems'] as $elem)
            {
                $labelRow[] = $elem['label'];
            }
            $dataTable = array_merge(array($labelRow), $dataSet['data']);
        }

        return $dataTable;

    }
protected function getDataTable ( $ objName ) { /* @var $formObj EasyForm */ $ formObj = Openbizx :: getObject ( $ objName ) ; // get the existing EasyForm|BizForm object // if BizForm, call BizForm::renderTable if ( $ formObj instanceof BizForm ) { $ dataTable = $ formObj -> renderTable ( ) ; } // if EasyForm, call EasyForm->DataPanel::renderTable if ( $ formObj instanceof EasyForm ) { $ recordSet = $ formObj -> fetchDataSet ( ) ; $ dataSet = $ formObj -> dataPanel -> renderTable ( $ recordSet ) ; foreach ( $ dataSet [ 'elems' ] as $ elem ) { $ labelRow [ ] = $ elem [ 'label' ] ; } $ dataTable = array_merge ( array ( $ labelRow ) , $ dataSet [ 'data' ] ) ; } return $ dataTable ; }
Get raw data to display in the spreadsheet. header and data table

@param string $objName
@return array
Get raw data to display in the spreadsheet . header and data table