=== modified file 'src/docbkx/en/dhis2_user_man_creating_reporting.xml' --- src/docbkx/en/dhis2_user_man_creating_reporting.xml 2013-03-14 16:42:29 +0000 +++ src/docbkx/en/dhis2_user_man_creating_reporting.xml 2013-03-14 16:47:47 +0000 @@ -1286,7 +1286,7 @@ The report template, which you can download after selecting report type, is a useful - starting point for developing HTML based standar reports. It gives you the basic structure + starting point for developing HTML based standard reports. It gives you the basic structure and suggests how you can use Javascript and CSS in the report. Javascript and CSS can easily be included using standard script and style tags. If you selected relative periods when creating the standard report you can access these @@ -1301,8 +1301,9 @@ var code = orgUnit.code; When designing these reports you can utilize the analytics Web API resource in order to retrieve aggregated data in Javascript. Have a look in the Web API chapter in this guide for - a closer description. As an example you can retrieve analytics data after the report has - been loaded and use that data to set the inner text of an HTML element like this: + a closer description. As a complete, minimal example you can retrieve analytics data after + the report has been loaded and use that data to set the inner text of an HTML element like + this: <script type="text/javascript"> $( document ).ready( function() { $.get( "../api/analytics?dimension=dx:FnYCr2EAzWS;eTDtyyaSA7f&dimension=pe:THIS_YEAR&filter=ou:ImspTQPwCqd", function( json ) { @@ -1310,7 +1311,10 @@ $( "#fic" ).html( json.rows[1][2] ); } ); } ); -</script> +</script> + +<div>BGG coverage: <span id="bcg"></span></div> +<div>FIC coverage: <span id="fic"></span></div> A few other tips: To include graphics you can convert an image to SVG and embed that SVG content directly in the report - DHIS 2 is based on HTML 5 where SVG tags are valid markup. To include charts and maps in your report you can use the charts and maps resources in the