38 if (
$report_id && is_numeric($_GET[
"report_id"]))
63 $form =
new AutoForm(
$report,
"POST",
"/action/report_manager/update_report?report_id=$report_id");
65 $form->required(
"title");
66 $form->hide(
"column_order",
"configuration",
"manager_class",
"shared",
"user_id");
68 $form->ajaxSubmit(
"function(result) {ReportManager.reportSaved(result);}",
"function() {document.id('{$form->id}_error').set('text','Failed to communicate with server'); }");
70 $form->submitLabel =
"Save Report";
81 echo
$form->writeScript();
86 <script type=
"text/javascript">
87 window.addEvent(
'domready',
function()
89 document.id(
'CustomReport_form_column_order').value =
ReportManager.columnOrder;
static using()
Import the datamodels, views and manifest for the specified component(s).
static end($message="")
Use this method to terminate execution of a script instead of using the php keywords exit() or die().
ReportManager provides a generic mechanism for implementing user configurable reports based on DataIt...
$method
Pull out a simple reference to the request method.
if(startsWith($report_id, "tmp-")) $form