Reportico Reporting

If you're a new user of AppGini, feel free to ask general usage questions, or look for answers here.
Post Reply
salemsaleem76
Posts: 19
Joined: 2016-04-28 09:52

Reportico Reporting

Post by salemsaleem76 » 2016-11-30 10:27

Hello Everyone,

I am trying to use reportico to create reports but I've two issues:

1- I am using Links Nav to add links to these reports but since I've the Appgini Tabs I am not able to know how to change in which menu they go. So I need to insert reports in each Nav menu and dont know how to direct the reports to the specified menu

2- Not sure which bootstrap version we use as its required in these reports, I've tried 3,2,1 and null and the reports seems not justified, also if I am using the project menu or need to go back in any report I am having the attached error.

Thanks in advance,

SS
Attachments
Error.png
Error.png (50.97 KiB) Viewed 6195 times

DevGiu
AppGini Super Hero
AppGini Super Hero
Posts: 151
Joined: 2016-05-27 09:08

Re: Reportico Reporting

Post by DevGiu » 2016-11-30 11:47

Not understand. Where are you trying to "insert" reportico, on a custom page?

Here you have a sample of how to integrate a reportico report inside a custom page

Code: Select all

<?php
	$currDir = dirname(__FILE__);
	include("$currDir/defaultLang.php");
	include("$currDir/language.php");
	include("$currDir/lib.php");

	include_once("$currDir/header.php");

	/* grant access to all logged users */
	$mi = getMemberInfo();
	if(!$mi['username'] || $mi['username'] == 'guest'){
		echo "Access denied";
		exit;
	}
	define('__ROOT__', dirname(dirname(__FILE__)));
	require_once(__ROOT__.'/src/lib/reportico/reportico.php');
	$q = new reportico();
	$q->initial_project = "tutorials";
	//$q->initial_project_password = "password";
	$q->initial_report = "tut1_4_stock.xml";
	$q->initial_execute_mode = "EXECUTE";
	$q->initial_output_format = "HTML";
	$q->access_mode = "REPORTOUTPUT";
	$q->bootstrap_styles = "3";
	$q->bootstrap_preloaded = true;
	$q->clear_reportico_session = true;
	$q->bootstrap_included = true;

	$q->dynamic_grids = false;
	$q->dynamic_grids_sortable = true;
	$q->dynamic_grids_searchable = true;
	$q->dynamic_grids_paging = true;
	$q->dynamic_grids_page_size = 10;

	$q->reportico_ajax_mode = true;
	$q->embedded_report = true;
	$q->output_template_parameters["show_hide_navigation_menu"] = "hide";
	$q->execute();

	include_once("$currDir/footer.php");
?>

/Giuseppe
Professional Outsourcing Services

salemsaleem76
Posts: 19
Joined: 2016-04-28 09:52

Re: Reportico Reporting

Post by salemsaleem76 » 2016-11-30 18:06

Thanks for the reply, This is how I added into the links page

See the attached image, I hope its clear now
Attachments
Error2.png
Error2.png (67.61 KiB) Viewed 6188 times

DevGiu
AppGini Super Hero
AppGini Super Hero
Posts: 151
Joined: 2016-05-27 09:08

Re: Reportico Reporting

Post by DevGiu » 2016-11-30 18:21

But this menu you are pointing is AppGini menu or Reportico Project menu?
/Giuseppe
Professional Outsourcing Services

salemsaleem76
Posts: 19
Joined: 2016-04-28 09:52

Re: Reportico Reporting

Post by salemsaleem76 » 2016-11-30 19:55

These are AppgGini menus. I dont see an option in the NAV links to decide to which menu they go and its critical to place each report on its related menu. Same as If I want to define single menu to contain all reports.

Bertv
Veteran Member
Posts: 65
Joined: 2013-12-11 15:59

Re: Reportico Reporting

Post by Bertv » 2016-11-30 21:29

See this item for menus and and NAV links
http://forums.appgini.com/phpbb/viewtop ... menu#p5651
at the end is the solution for your problem.
Bert
I am using Appgini 5.75

DevGiu
AppGini Super Hero
AppGini Super Hero
Posts: 151
Joined: 2016-05-27 09:08

Re: Reportico Reporting

Post by DevGiu » 2016-12-01 10:30

Added to what BertV wrote. Just create a custom-page with the code I pasted before. Change the params as you need, and add the link as BertV explains in your menu, pointing to your custom-page. Now you have a reportico report integrated into your AppGini project.
/Giuseppe
Professional Outsourcing Services

Post Reply