← Back to team overview

dhis2-devs team mailing list archive

Fwd: dhis-web-mapping

 

Hey guys,

I am enhancing and re-developing the dynamic tool that picks maps, charts,
reports from any DHIS2 system and i am dynamically sending the id's of the
maps & charts but on the page to diaplay the maps / charts, it doesnt
load..what could i be doing wrong??? I have shared a sample excerpt of the
maps page which doesn't load in my tool but as you can see in the jpeg
attached loads just fine in the DHIS2 system!

<?php
    $ch = curl_init( "
http://aaa.bbb.ccc.ddd/dhis-web-mapping/mapping/index.html?id=cc5D0epyFJC";
);
        $options = array(
            CURLOPT_RETURNTRANSFER => true,
            CURLOPT_USERPWD => "username:password",
            CURLOPT_HTTPHEADER => array('Content-type: text/html')   # NOT
SURE THIS IS CORRECT!
        );
        curl_setopt_array( $ch, $options );

        $result =  curl_exec($ch); // Getting jSON result string
        print $result;
    curl_close($ch);
?>

*FYI:::**
The standard reports work just fine!
The data-visualizer also doesn't load*!

-----

kind regards

*Martin Namutso | Information System Specialist | Mob: +256 782 006 662*

*----- If you think education is expensive try ignorance! -----*

Attachment: dhis-web-mapping.jpg
Description: JPEG image


Follow ups