← Back to team overview

dhis2-users team mailing list archive

Bangladesh web portal using dhis2 plugins

 

Dear all,

I am pleased to share with you the Bangladesh portal which we have created
based on the live data from dhis2 using dhis2 plugins. Please visit the
following link to see the portal,
http://103.247.238.81:8080/portal/index.html

We highly appreciate the help from the community. We have got quick support
from the community during the development.

I would like to share my knowledge and experience of the development
process, i believe this will be helpful for others,

Solution
---------------
1) Please add the full address in the CORS whitelist,
[image: Inline image 3]

2) Its better to download the plugins and attach those from local folder.

3) I have used the following version of the plugins,

<link rel="stylesheet" href="css/v216_ext-plugin-gray.css
<view-source:http://103.247.238.81:8080/portal/css/v216_ext-plugin-gray.css>"
/><link rel="stylesheet" type="text/css"
href="//apps.dhis2.org/demo/dhis-web-commons/javascripts/ext-ux/carousel/css/carousel.css
<view-source:http://apps.dhis2.org/demo/dhis-web-commons/javascripts/ext-ux/carousel/css/carousel.css>"
/><script src="js/plugins/v21/v221_ext_ext-all.js
<view-source:http://103.247.238.81:8080/portal/js/plugins/v21/v221_ext_ext-all.js>"></script><script
src="js/plugins/v17/v217_openlayers_OpenLayers.js
<view-source:http://103.247.238.81:8080/portal/js/plugins/v17/v217_openlayers_OpenLayers.js>"></script><script
src="js/plugins/Carousel.js
<view-source:http://103.247.238.81:8080/portal/js/plugins/Carousel.js>"></script><script
src="js/plugins/v21/v221_plugin_chart.js
<view-source:http://103.247.238.81:8080/portal/js/plugins/v21/v221_plugin_chart.js>"></script><script
src="js/plugins/v21/v221_plugin_table.js
<view-source:http://103.247.238.81:8080/portal/js/plugins/v21/v221_plugin_table.js>"></script><script
src="js/plugins/v17/v217_plugin_map.js
<view-source:http://103.247.238.81:8080/portal/js/plugins/v17/v217_plugin_map.js>"></script>

4) Please use the username and password inside the get method (see the
examples),

DHIS.getChart({ crossDomain: true, username: 'view', password:
'DGHS1234', uid: 'oSNtDZNZGIp', el: 'chartA1', url: base });

5) We have created a reporting server where all the live data sync everyday
in one instance of DHIS2. We have hosted the portal in the same reporting
server.

Please let me know if i can provide any support regarding this issue.

-- 
Regards,

*Mohammad Ullah*
-----------------------------------------------------------------------------------------
Technical Advisor (HIS) – Health Sector
Deutsche Gesellschaft für Internationale Zusammenarbeit (GIZ) GmbH
German House
House 10/A-2, Road 90
Gulshan 2, Dhaka 1212, Bangladesh

T    +880 9666701000
F    +880 28823099
M    +880 196 31 56 988
Web    http://lnkd.in/gQrxXz
Skype    mohammad_ullah_giz

Office Location:
Room # 304, Shahid Dr. Milan Bhavan,
MIS, DGHS of MoHFW, Mohakhali, Dhaka.

T    02 8816412 (ex:118)

PNG image


Follow ups