Beispiel #1
0
                $arResult['report']['TITLE'] .= ' (' . GetMessage('REPORT_TITLE_COPY') . ')';
            }
        } else {
            // default preset for new report
            $arResult['preSettings'] = array('select' => call_user_func(array($arParams['REPORT_HELPER_CLASS'], 'getDefaultColumns')));
        }
        // </editor-fold>
    }
} catch (Exception $e) {
    //throw $e;
    if ($e instanceof BXFormException) {
        $arResult['FORM_ERROR'] = $e->getMessage();
        // refill form
        $arResult['report']['TITLE'] = $reportSettings['title'];
        unset($reportSettings['title']);
        CReport::fillFilterReferenceColumns($reportSettings['filter'], $fieldList, $arParams['REPORT_HELPER_CLASS']);
        $arResult['preSettings'] = $reportSettings;
    } else {
        if ($e instanceof BXUserException) {
            $arResult['ERROR'] = $e->getMessage();
        } else {
            $arResult['ERROR'] = GetMessage('REPORT_UNKNOWN_ERROR');
        }
    }
}
$this->IncludeComponentTemplate();
// <editor-fold defaultstate="collapsed" desc="tree structure description">
// format fields parameters to chains and build fields tree
//array(
//	array($originalDefinition, $elem, $subTree),
//	array(str, scalar, null)