Installation

<< Back to embedding reports

Embed report in criteria entry mode - with less options

Look below and you will some of the buttons and checkboxes removed to create a cleaner interfaces. You can turn these off using the output_template_parameters. Using this you can hide the checkboxes that control of whether report graphs, detail, groups are shown. Or you can hide the report to CSV button. In the example below we have hidden everything except the button that produces a printable HTML report in another browser window.

        $reportico = \Yii::$app->getModule('reportico');
        $engine = $reportico->getReporticoEngine();        // Fetches reportico engine
        $engine->access_mode = "ONEREPORT";                // Allows access to single specified report
        $engine->initial_execute_mode = "PREPARE";         // Starts user in report criteria selection mode
        $engine->initial_project = "northwind";            // Name of report project folder
        $engine->initial_report = "salestotals";           // Name of report to run
        $engine->bootstrap_styles = "3";                   // Set to "3" for bootstrap v3, "2" for V2 or false for no bootstrap
        $engine->force_reportico_mini_maintains = true;    // Often required
        $engine->bootstrap_preloaded = true;               // true if you dont need Reportico to load its own bootstrap
        $engine->clear_reportico_session = true;           // Normally required

        // Turn on and off UI elements
        $engine->output_template_parameters["show_hide_navigation_menu"] = "show";   
        $engine->output_template_parameters["show_hide_dropdown_menu"] = "show";
        $engine->output_template_parameters["show_hide_report_output_title"] = "hide";
        $engine->output_template_parameters["show_hide_prepare_section_boxes"] = "hide";
        $engine->output_template_parameters["show_hide_prepare_pdf_button"] = "hide";
        $engine->output_template_parameters["show_hide_prepare_html_button"] = "hide";
        $engine->output_template_parameters["show_hide_prepare_print_html_button"] = "show";
        $engine->output_template_parameters["show_hide_prepare_csv_button"] = "hide";
        $engine->output_template_parameters["show_hide_prepare_page_style"] = "hide";

        $engine->execute();   

Monthly Sales

  Output: HTML PDF CSV
Style Table Form
Show
 
Country
Customer ANY
Order Date  -

 
Sales figures by month