<< 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.

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

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


Monthly Sales

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

Sales figures by month