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

image

···

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)

Dear Munna Viyya,

It will be helpful for us. Thank you very much.

image

image

···

On Wed, Dec 23, 2015 at 12:33 PM, Mohammad Ullah munnabcis@gmail.com wrote:

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,
  1. Its better to download the plugins and attach those from local folder.
  1. I have used the following version of the plugins,
<link rel="stylesheet" href="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" />
<script src="js/plugins/v21/v221_ext_ext-all.js"></script>
<script src="js/plugins/v17/v217_openlayers_OpenLayers.js"></script>
<script src="js/plugins/Carousel.js"></script>
<script src="js/plugins/v21/v221_plugin_chart.js"></script>
<script src="js/plugins/v21/v221_plugin_table.js"></script>
<script src="js/plugins/v17/v217_plugin_map.js"></script>
  1. 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 });
  1. 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)


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Best Regards
Julhas Sujan
Java Consultant
Management Science for Health(MSH)
USAID, Dhaka, Bangladesh
Cell: +8801989 442856
Skype: julhas08
Web: www.julhas.info

www.msh.org http://siapsprogram.org/wherewework/bangladesh/

Dear Munna,

Thank you very much for sharing.

image

image

···

On Wed, Dec 23, 2015 at 12:49 PM, Julhas Sujan julhaspustcse@gmail.com wrote:

Dear Munna Viyya,

It will be helpful for us. Thank you very much.


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Best Regards
Julhas Sujan
Java Consultant
Management Science for Health(MSH)
USAID, Dhaka, Bangladesh
Cell: +8801989 442856
Skype: julhas08
Web: www.julhas.info

www.msh.org http://siapsprogram.org/wherewework/bangladesh/

On Wed, Dec 23, 2015 at 12:33 PM, Mohammad Ullah munnabcis@gmail.com wrote:

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,
  1. Its better to download the plugins and attach those from local folder.
  1. I have used the following version of the plugins,
<link rel="stylesheet" href="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" />
<script src="js/plugins/v21/v221_ext_ext-all.js"></script>
<script src="js/plugins/v17/v217_openlayers_OpenLayers.js"></script>
<script src="js/plugins/Carousel.js"></script>
<script src="js/plugins/v21/v221_plugin_chart.js"></script>
<script src="js/plugins/v21/v221_plugin_table.js"></script>
<script src="js/plugins/v17/v217_plugin_map.js"></script>
  1. 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 });
  1. 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)


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any attachments may be legally privileged and confidential. If you are not an intended recipient, you are hereby notified that any dissemination, distribution, or copying of this e-mail is strictly prohibited. If you have received this e-mail in error, please notify the sender and permanently delete the e-mail and any attachments immediately. You should not retain, copy or use this e-mail or any attachments for any purpose, nor disclose all or any part of the contents to any other person.

Hi Muhammad,

this looks great! Thanks for sharing.

You can expect improvements in the plugins in terms of improved load-time and extra features in 2.23.

best regards,

Lars

image

image

···

On Wed, Dec 23, 2015 at 11:07 AM, Pamod Amarakoon pamodm@gmail.com wrote:

Dear Munna,

Thank you very much for sharing.


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

On Wed, Dec 23, 2015 at 12:49 PM, Julhas Sujan julhaspustcse@gmail.com wrote:

Dear Munna Viyya,

It will be helpful for us. Thank you very much.


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any attachments may be legally privileged and confidential. If you are not an intended recipient, you are hereby notified that any dissemination, distribution, or copying of this e-mail is strictly prohibited. If you have received this e-mail in error, please notify the sender and permanently delete the e-mail and any attachments immediately. You should not retain, copy or use this e-mail or any attachments for any purpose, nor disclose all or any part of the contents to any other person.

Best Regards
Julhas Sujan
Java Consultant
Management Science for Health(MSH)
USAID, Dhaka, Bangladesh
Cell: +8801989 442856
Skype: julhas08
Web: www.julhas.info

www.msh.org http://siapsprogram.org/wherewework/bangladesh/

On Wed, Dec 23, 2015 at 12:33 PM, Mohammad Ullah munnabcis@gmail.com wrote:

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,
  1. Its better to download the plugins and attach those from local folder.
  1. I have used the following version of the plugins,
<link rel="stylesheet" href="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" />
<script src="js/plugins/v21/v221_ext_ext-all.js"></script>
<script src="js/plugins/v17/v217_openlayers_OpenLayers.js"></script>
<script src="js/plugins/Carousel.js"></script>
<script src="js/plugins/v21/v221_plugin_chart.js"></script>
<script src="js/plugins/v21/v221_plugin_table.js"></script>
<script src="js/plugins/v17/v217_plugin_map.js"></script>
  1. 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 });
  1. 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)


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Lars Helge Øverland

Lead developer, DHIS 2

University of Oslo

Skype: larshelgeoverland

http://www.dhis2.org

Thank u Muhammad for Sharing these tips

Envoyé depuis Yahoo Mail pour Android

image

image

···

On Wed, Dec 23, 2015 at 11:07 AM, Pamod Amarakoon pamodm@gmail.com wrote:

Dear Munna,

Thank you very much for sharing.


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

On Wed, Dec 23, 2015 at 12:49 PM, Julhas Sujan julhaspustcse@gmail.com wrote:

Dear Munna Viyya,

It will be helpful for us. Thank you very much.


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any attachments may be legally privileged and confidential. If you are not an intended recipient, you are hereby notified that any dissemination, distribution, or copying of this e-mail is strictly prohibited. If you have received this e-mail in error, please notify the sender and permanently delete the e-mail and any attachments immediately. You should not retain, copy or use this e-mail or any attachments for any purpose, nor disclose all or any part of the contents to any other person.

Best Regards
Julhas Sujan
Java Consultant
Management Science for Health(MSH)
USAID, Dhaka, Bangladesh
Cell: +8801989 442856
Skype: julhas08
Web: www.julhas.info

www.msh.org http://siapsprogram.org/wherewework/bangladesh/

On Wed, Dec 23, 2015 at 12:33 PM, Mohammad Ullah munnabcis@gmail.com wrote:

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,
  1. Its better to download the plugins and attach those from local folder.
  1. I have used the following version of the plugins,
<link rel="stylesheet" href="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" />
<script src="js/plugins/v21/v221_ext_ext-all.js"></script>
<script src="js/plugins/v17/v217_openlayers_OpenLayers.js"></script>
<script src="js/plugins/Carousel.js"></script>
<script src="js/plugins/v21/v221_plugin_chart.js"></script>
<script src="js/plugins/v21/v221_plugin_table.js"></script>
<script src="js/plugins/v17/v217_plugin_map.js"></script>
  1. 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 });
  1. 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)


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Lars Helge Øverland

Lead developer, DHIS 2

University of Oslo

Skype: larshelgeoverland

http://www.dhis2.org

Dear Lars

Thanks to all DHIS2 experts specially Jan and you. After our earlier failed attempt you all update the plugin and other libraries and make our effort is possible.

Still we are facing some issues, which I will discuss later.

Regards

Hannan Khan

HISP Bangladesh

image

image

···

On Wed, Dec 23, 2015 at 4:25 PM, Lars Helge Øverland larshelge@gmail.com wrote:

Hi Muhammad,

this looks great! Thanks for sharing.

You can expect improvements in the plugins in terms of improved load-time and extra features in 2.23.

best regards,

Lars


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

On Wed, Dec 23, 2015 at 11:07 AM, Pamod Amarakoon pamodm@gmail.com wrote:

Dear Munna,

Thank you very much for sharing.


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Lars Helge Øverland

Lead developer, DHIS 2

University of Oslo

Skype: larshelgeoverland

http://www.dhis2.org

On Wed, Dec 23, 2015 at 12:49 PM, Julhas Sujan julhaspustcse@gmail.com wrote:

Dear Munna Viyya,

It will be helpful for us. Thank you very much.


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any attachments may be legally privileged and confidential. If you are not an intended recipient, you are hereby notified that any dissemination, distribution, or copying of this e-mail is strictly prohibited. If you have received this e-mail in error, please notify the sender and permanently delete the e-mail and any attachments immediately. You should not retain, copy or use this e-mail or any attachments for any purpose, nor disclose all or any part of the contents to any other person.

Best Regards
Julhas Sujan
Java Consultant
Management Science for Health(MSH)
USAID, Dhaka, Bangladesh
Cell: +8801989 442856
Skype: julhas08
Web: www.julhas.info

www.msh.org http://siapsprogram.org/wherewework/bangladesh/

On Wed, Dec 23, 2015 at 12:33 PM, Mohammad Ullah munnabcis@gmail.com wrote:

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,
  1. Its better to download the plugins and attach those from local folder.
  1. I have used the following version of the plugins,
<link rel="stylesheet" href="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" />
<script src="js/plugins/v21/v221_ext_ext-all.js"></script>
<script src="js/plugins/v17/v217_openlayers_OpenLayers.js"></script>
<script src="js/plugins/Carousel.js"></script>
<script src="js/plugins/v21/v221_plugin_chart.js"></script>
<script src="js/plugins/v21/v221_plugin_table.js"></script>
<script src="js/plugins/v17/v217_plugin_map.js"></script>
  1. 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 });
  1. 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)


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

This is very good Thank you very much for sharing.


This email has been sent from a virus-free computer protected by Avast.
www.avast.com

image

···

On Wed, Dec 23, 2015 at 12:03 PM, Mohammad Ullah munnabcis@gmail.com wrote:

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,
  1. Its better to download the plugins and attach those from local folder.
  1. I have used the following version of the plugins,
<link rel="stylesheet" href="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" />
<script src="js/plugins/v21/v221_ext_ext-all.js"></script>
<script src="js/plugins/v17/v217_openlayers_OpenLayers.js"></script>
<script src="js/plugins/Carousel.js"></script>
<script src="js/plugins/v21/v221_plugin_chart.js"></script>
<script src="js/plugins/v21/v221_plugin_table.js"></script>
<script src="js/plugins/v17/v217_plugin_map.js"></script>
  1. 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 });
  1. 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)


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

Dr Gayan Yasantha Piyasena (MBBS, MSC)

Anti-Leprosy Campaign

Ministry Of Health

hello Muhammad and community

In our case we have 2 Server (one for DHIS and one for our Portal), and it’s also working when the user “view” is connected on the dhis2 instance. When the user “view” is disconnected to Dhis2 nothing appear on the portal.

Please could you help ?

Sincerely,

DHIS 2.21

image

image

···

=========================
EKANI Guy

Le Mercredi 23 décembre 2015 11h25, Lars Helge Øverland larshelge@gmail.com a écrit :

Hi Muhammad,

this looks great! Thanks for sharing.

You can expect improvements in the plugins in terms of improved load-time and extra features in 2.23.

best regards,

Lars

On Wed, Dec 23, 2015 at 11:07 AM, Pamod Amarakoon pamodm@gmail.com wrote:

Dear Munna,

Thank you very much for sharing.

On Wed, Dec 23, 2015 at 12:49 PM, Julhas Sujan julhaspustcse@gmail.com wrote:

Dear Munna Viyya,

It will be helpful for us. Thank you very much.
Best Regards
Julhas Sujan
Java Consultant
Management Science for Health(MSH)
USAID, Dhaka, Bangladesh
Cell: +8801989 442856
Skype: julhas08
Web: www.julhas.info

www.msh.org http://siapsprogram.org/wherewework/bangladesh/

On Wed, Dec 23, 2015 at 12:33 PM, Mohammad Ullah munnabcis@gmail.com wrote:

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,
    Inline image 3
  1. Its better to download the plugins and attach those from local folder.
  1. I have used the following version of the plugins,
<link rel="stylesheet" href="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" />
<script src="js/plugins/v21/v221_ext_ext-all.js"></script>
<script src="js/plugins/v17/v217_openlayers_OpenLayers.js"></script>
<script src="js/plugins/Carousel.js"></script>
<script src="js/plugins/v21/v221_plugin_chart.js"></script>
<script src="js/plugins/v21/v221_plugin_table.js"></script>
<script src="js/plugins/v17/v217_plugin_map.js"></script>
  1. 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 });
  1. 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)


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any attachments may be legally privileged and confidential. If you are not an intended recipient, you are hereby notified that any dissemination, distribution, or copying of this e-mail is strictly prohibited. If you have received this e-mail in error, please notify the sender and permanently delete the e-mail and any attachments immediately. You should not retain, copy or use this e-mail or any attachments for any purpose, nor disclose all or any part of the contents to any other person.


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp


Lars Helge Øverland

Lead developer, DHIS 2

University of Oslo

Skype: larshelgeoverland

http://www.dhis2.org


Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help : https://help.launchpad.net/ListHelp

Dear Guy,

Could you please send a snapshot of the console output using firebug? From my understanding you are facing CORS issues. To solve this, i would suggest you to put all your portal files under tomcat\webapps directory.

image

image

···

On Sat, Jan 23, 2016 at 8:49 PM, Guy Ekani constyekani@yahoo.fr wrote:

hello Muhammad and community

In our case we have 2 Server (one for DHIS and one for our Portal), and it’s also working when the user “view” is connected on the dhis2 instance. When the user “view” is disconnected to Dhis2 nothing appear on the portal.

Please could you help ?

Sincerely,

DHIS 2.21

EKANI Guy

=========================

Le Mercredi 23 décembre 2015 11h25, Lars Helge Øverland larshelge@gmail.com a écrit :

Hi Muhammad,

this looks great! Thanks for sharing.

You can expect improvements in the plugins in terms of improved load-time and extra features in 2.23.

best regards,

Lars

On Wed, Dec 23, 2015 at 11:07 AM, Pamod Amarakoon pamodm@gmail.com wrote:

Dear Munna,

Thank you very much for sharing.

On Wed, Dec 23, 2015 at 12:49 PM, Julhas Sujan julhaspustcse@gmail.com wrote:

Dear Munna Viyya,

It will be helpful for us. Thank you very much.
Best Regards
Julhas Sujan
Java Consultant
Management Science for Health(MSH)
USAID, Dhaka, Bangladesh
Cell: +8801989 442856
Skype: julhas08
Web: www.julhas.info

www.msh.org http://siapsprogram.org/wherewework/bangladesh/

On Wed, Dec 23, 2015 at 12:33 PM, Mohammad Ullah munnabcis@gmail.com wrote:

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,
  1. Its better to download the plugins and attach those from local folder.
  1. I have used the following version of the plugins,
<link rel="stylesheet" href="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" />
<script src="js/plugins/v21/v221_ext_ext-all.js"></script>
<script src="js/plugins/v17/v217_openlayers_OpenLayers.js"></script>
<script src="js/plugins/Carousel.js"></script>
<script src="js/plugins/v21/v221_plugin_chart.js"></script>
<script src="js/plugins/v21/v221_plugin_table.js"></script>
<script src="js/plugins/v17/v217_plugin_map.js"></script>
  1. 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 });
  1. 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)


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any attachments may be legally privileged and confidential. If you are not an intended recipient, you are hereby notified that any dissemination, distribution, or copying of this e-mail is strictly prohibited. If you have received this e-mail in error, please notify the sender and permanently delete the e-mail and any attachments immediately. You should not retain, copy or use this e-mail or any attachments for any purpose, nor disclose all or any part of the contents to any other person.


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp


Lars Helge Øverland

Lead developer, DHIS 2

University of Oslo

Skype: larshelgeoverland

http://www.dhis2.org


Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help : https://help.launchpad.net/ListHelp

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)

Dear Ekani

Sorry for late reply.

I think the problem is authentication; did you pass user name inside get function? Like

DHIS.getChart({ crossDomain: true, username: ‘xxxxxx’, password: ‘*********’, uid: ‘yyyyyyyyyyy’, el: ‘chartName’, url: base });

CORS might be another issue. can you please check Chrome debug report and let me know the exact error.

Regards

Hannan Khan

HISP Bangladesh

image

image

···

On Sat, Jan 23, 2016 at 8:49 PM, Guy Ekani constyekani@yahoo.fr wrote:

hello Muhammad and community

In our case we have 2 Server (one for DHIS and one for our Portal), and it’s also working when the user “view” is connected on the dhis2 instance. When the user “view” is disconnected to Dhis2 nothing appear on the portal.

Please could you help ?

Sincerely,

DHIS 2.21

EKANI Guy

=========================

Le Mercredi 23 décembre 2015 11h25, Lars Helge Øverland larshelge@gmail.com a écrit :

Hi Muhammad,

this looks great! Thanks for sharing.

You can expect improvements in the plugins in terms of improved load-time and extra features in 2.23.

best regards,

Lars

On Wed, Dec 23, 2015 at 11:07 AM, Pamod Amarakoon pamodm@gmail.com wrote:

Dear Munna,

Thank you very much for sharing.

On Wed, Dec 23, 2015 at 12:49 PM, Julhas Sujan julhaspustcse@gmail.com wrote:

Dear Munna Viyya,

It will be helpful for us. Thank you very much.
Best Regards
Julhas Sujan
Java Consultant
Management Science for Health(MSH)
USAID, Dhaka, Bangladesh
Cell: +8801989 442856
Skype: julhas08
Web: www.julhas.info

www.msh.org http://siapsprogram.org/wherewework/bangladesh/

On Wed, Dec 23, 2015 at 12:33 PM, Mohammad Ullah munnabcis@gmail.com wrote:

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,
  1. Its better to download the plugins and attach those from local folder.
  1. I have used the following version of the plugins,
<link rel="stylesheet" href="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" />
<script src="js/plugins/v21/v221_ext_ext-all.js"></script>
<script src="js/plugins/v17/v217_openlayers_OpenLayers.js"></script>
<script src="js/plugins/Carousel.js"></script>
<script src="js/plugins/v21/v221_plugin_chart.js"></script>
<script src="js/plugins/v21/v221_plugin_table.js"></script>
<script src="js/plugins/v17/v217_plugin_map.js"></script>
  1. 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 });
  1. 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)


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any attachments may be legally privileged and confidential. If you are not an intended recipient, you are hereby notified that any dissemination, distribution, or copying of this e-mail is strictly prohibited. If you have received this e-mail in error, please notify the sender and permanently delete the e-mail and any attachments immediately. You should not retain, copy or use this e-mail or any attachments for any purpose, nor disclose all or any part of the contents to any other person.


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp


Lars Helge Øverland

Lead developer, DHIS 2

University of Oslo

Skype: larshelgeoverland

http://www.dhis2.org


Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help : https://help.launchpad.net/ListHelp


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

Thank u all,

Here is the chrome debug report :

Failed to load resource: the server responded with a status of 404 (Not Found)

portal.html:1 XMLHttpRequest cannot load http://www.dhis-instance.org/api/me/user-account.json. Response for preflight is invalid (redirect)

portal.html:1 XMLHttpRequest cannot load http://www.dhis-instance.org/api/organisationUnits.json?userOnly=true&fields=id,name,children[id,name]&paging=false. Response for preflight is invalid (redirect)

portal.html:1 XMLHttpRequest cannot load http://www.dhis-instance.org/api/dimensions.json?fields=id,name&paging=false. Response for preflight is invalid (redirect)

portal.html:1 XMLHttpRequest cannot load http://www.dhis-instance.org/api/me/user-account.json. Response for preflight is invalid (redirect)

portal.html:1 XMLHttpRequest cannot load http://www.dhis-instance.org/api/organisationUnits.json?userOnly=true&fields=id,name,children[id,name]&paging=false. Response for preflight is invalid (redirect)

portal.html:1 XMLHttpRequest cannot load http://www.dhis-instance.org/api/dimensions.json?fields=id,name&paging=false. Response for preflight is invalid (redirect)

portal.html:1 XMLHttpRequest cannot load http://www.dhis-instance.org/api/legendSets.json?fields=id,name,legends[id,name,startValue,endValue,color]&paging=false&_dc=1453740235773. Response for preflight is invalid (redirect)

http://www.web-site.cm/portal_sample/css/images/favicon.ico Failed to load resource: the server responded with a status of 404 (Not Found)

portal.html:1 Refused to execute script from ‘http://www.dhis-instance.org/api/systemSettings.jsonp?key=keyCalendar&key=keyDateFormat&callback=Ext.data.JsonP.callback1&_dc=1453740235766’ because its MIME type (‘text/html’) is not executable, and strict MIME type checking is enabled.

portal.html:1 Refused to execute script from ‘http://www.dhis-instance.org/api/dimensions.jsonp?links=false&paging=false&callback=Ext.data.JsonP.callback3&_dc=1453740235768’ because its MIME type (‘text/html’) is not executable, and strict MIME type checking is enabled.

portal.html:1 Refused to execute script from ‘http://www.dhis-instance.org/api/organisationUnits.jsonp?userOnly=true&f…[id,name]&paging=false&callback=Ext.data.JsonP.callback2&_dc=1453740235768’ because its MIME type (‘text/html’) is not executable, and strict MIME type checking is enabled.

http://maps.googleapis.com/maps/api/js/AuthenticationService.Authenticate?1…cm%2Fportal_sample%2Fportal.html&callback=xdc._673sju&token=124169 Failed to load resource: the server responded with a status of 403 (Forbidden)

http://www.web-site.cm/portal_sample/carousel-1.css Failed to load resource: the server responded with a status of 404 (Not Found)

Sincerely

image

image

···

=========================
EKANI Guy

Le Lundi 25 janvier 2016 17h29, Hannan Khan hannank@gmail.com a écrit :

Dear Ekani

Sorry for late reply.

I think the problem is authentication; did you pass user name inside get function? Like

DHIS.getChart({ crossDomain: true, username: ‘xxxxxx’, password: ‘*********’, uid: ‘yyyyyyyyyyy’, el: ‘chartName’, url: base });

CORS might be another issue. can you please check Chrome debug report and let me know the exact error.

Regards

Hannan Khan

HISP Bangladesh

On Sat, Jan 23, 2016 at 8:49 PM, Guy Ekani constyekani@yahoo.fr wrote:

hello Muhammad and community

In our case we have 2 Server (one for DHIS and one for our Portal), and it’s also working when the user “view” is connected on the dhis2 instance. When the user “view” is disconnected to Dhis2 nothing appear on the portal.

Please could you help ?

Sincerely,

DHIS 2.21

=========================
EKANI Guy

Le Mercredi 23 décembre 2015 11h25, Lars Helge Øverland larshelge@gmail.com a écrit :

Hi Muhammad,

this looks great! Thanks for sharing.

You can expect improvements in the plugins in terms of improved load-time and extra features in 2.23.

best regards,

Lars

On Wed, Dec 23, 2015 at 11:07 AM, Pamod Amarakoon pamodm@gmail.com wrote:

Dear Munna,

Thank you very much for sharing.

On Wed, Dec 23, 2015 at 12:49 PM, Julhas Sujan julhaspustcse@gmail.com wrote:

Dear Munna Viyya,

It will be helpful for us. Thank you very much.
Best Regards
Julhas Sujan
Java Consultant
Management Science for Health(MSH)
USAID, Dhaka, Bangladesh
Cell: +8801989 442856
Skype: julhas08
Web: www.julhas.info

www.msh.org http://siapsprogram.org/wherewework/bangladesh/

On Wed, Dec 23, 2015 at 12:33 PM, Mohammad Ullah munnabcis@gmail.com wrote:

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,
    Inline image 3
  1. Its better to download the plugins and attach those from local folder.
  1. I have used the following version of the plugins,
<link rel="stylesheet" href="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" />
<script src="js/plugins/v21/v221_ext_ext-all.js"></script>
<script src="js/plugins/v17/v217_openlayers_OpenLayers.js"></script>
<script src="js/plugins/Carousel.js"></script>
<script src="js/plugins/v21/v221_plugin_chart.js"></script>
<script src="js/plugins/v21/v221_plugin_table.js"></script>
<script src="js/plugins/v17/v217_plugin_map.js"></script>
  1. 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 });
  1. 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)


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp


Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any attachments may be legally privileged and confidential. If you are not an intended recipient, you are hereby notified that any dissemination, distribution, or copying of this e-mail is strictly prohibited. If you have received this e-mail in error, please notify the sender and permanently delete the e-mail and any attachments immediately. You should not retain, copy or use this e-mail or any attachments for any purpose, nor disclose all or any part of the contents to any other person.


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp


Lars Helge Øverland

Lead developer, DHIS 2

University of Oslo

Skype: larshelgeoverland

http://www.dhis2.org


Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help : https://help.launchpad.net/ListHelp


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

Dear Ekani

It seems that you are using API not DHIS2 web plugins. Our portal is designed with plugins which is easy to use.

However if you want to use API you shod pass the authentication as well. First, try the API request with curl command from the terminal to sure that it is working and then incorporate in the scripts. Check for CORS issue and add requesting server with port in the ‘White list’ of your DHIS2 instance from where you requesting the data.

If your objectve is to show maps, chart, pivot table in the web portal then use plugins as described in the DHIS2 developers manual and Mohammad Ullah’s mail in this thread. Using plugin you can generate those items on the fly as well.

Regards

Hannan Khan

HISP Bangladesh

image

image

···

On Mon, Jan 25, 2016 at 10:50 PM, Guy Ekani constyekani@yahoo.fr wrote:

Thank u all,

Here is the chrome debug report :

Failed to load resource: the server responded with a status of 404 (Not Found)

portal.html:1 XMLHttpRequest cannot load http://www.dhis-instance.org/api/me/user-account.json. Response for preflight is invalid (redirect)

portal.html:1 XMLHttpRequest cannot load http://www.dhis-instance.org/api/organisationUnits.json?userOnly=true&fields=id,name,children[id,name]&paging=false. Response for preflight is invalid (redirect)

portal.html:1 XMLHttpRequest cannot load http://www.dhis-instance.org/api/dimensions.json?fields=id,name&paging=false. Response for preflight is invalid (redirect)

portal.html:1 XMLHttpRequest cannot load http://www.dhis-instance.org/api/me/user-account.json. Response for preflight is invalid (redirect)

portal.html:1 XMLHttpRequest cannot load http://www.dhis-instance.org/api/organisationUnits.json?userOnly=true&fields=id,name,children[id,name]&paging=false. Response for preflight is invalid (redirect)

portal.html:1 XMLHttpRequest cannot load http://www.dhis-instance.org/api/dimensions.json?fields=id,name&paging=false. Response for preflight is invalid (redirect)

portal.html:1 XMLHttpRequest cannot load http://www.dhis-instance.org/api/legendSets.json?fields=id,name,legends[id,name,startValue,endValue,color]&paging=false&_dc=1453740235773. Response for preflight is invalid (redirect)

http://www.web-site.cm/portal_sample/css/images/favicon.ico Failed to load resource: the server responded with a status of 404 (Not Found)

portal.html:1 Refused to execute script from ‘http://www.dhis-instance.org/api/systemSettings.jsonp?key=keyCalendar&key=keyDateFormat&callback=Ext.data.JsonP.callback1&_dc=1453740235766’ because its MIME type (‘text/html’) is not executable, and strict MIME type checking is enabled.

portal.html:1 Refused to execute script from ‘http://www.dhis-instance.org/api/dimensions.jsonp?links=false&paging=false&callback=Ext.data.JsonP.callback3&_dc=1453740235768’ because its MIME type (‘text/html’) is not executable, and strict MIME type checking is enabled.

portal.html:1 Refused to execute script from ‘http://www.dhis-instance.org/api/organisationUnits.jsonp?userOnly=true&f…[id,name]&paging=false&callback=Ext.data.JsonP.callback2&_dc=1453740235768’ because its MIME type (‘text/html’) is not executable, and strict MIME type checking is enabled.

http://maps.googleapis.com/maps/api/js/AuthenticationService.Authenticate?1…cm%2Fportal_sample%2Fportal.html&callback=xdc._673sju&token=124169 Failed to load resource: the server responded with a status of 403 (Forbidden)

http://www.web-site.cm/portal_sample/carousel-1.css Failed to load resource: the server responded with a status of 404 (Not Found)

Sincerely

EKANI Guy

=========================

Le Lundi 25 janvier 2016 17h29, Hannan Khan hannank@gmail.com a écrit :

Dear Ekani

Sorry for late reply.

I think the problem is authentication; did you pass user name inside get function? Like

DHIS.getChart({ crossDomain: true, username: ‘xxxxxx’, password: ‘*********’, uid: ‘yyyyyyyyyyy’, el: ‘chartName’, url: base });

CORS might be another issue. can you please check Chrome debug report and let me know the exact error.

Regards

Hannan Khan

HISP Bangladesh

On Sat, Jan 23, 2016 at 8:49 PM, Guy Ekani constyekani@yahoo.fr wrote:

hello Muhammad and community

In our case we have 2 Server (one for DHIS and one for our Portal), and it’s also working when the user “view” is connected on the dhis2 instance. When the user “view” is disconnected to Dhis2 nothing appear on the portal.

Please could you help ?

Sincerely,

DHIS 2.21

=========================
EKANI Guy

Le Mercredi 23 décembre 2015 11h25, Lars Helge Øverland larshelge@gmail.com a écrit :

Hi Muhammad,

this looks great! Thanks for sharing.

You can expect improvements in the plugins in terms of improved load-time and extra features in 2.23.

best regards,

Lars

On Wed, Dec 23, 2015 at 11:07 AM, Pamod Amarakoon pamodm@gmail.com wrote:

Dear Munna,

Thank you very much for sharing.

On Wed, Dec 23, 2015 at 12:49 PM, Julhas Sujan julhaspustcse@gmail.com wrote:

Dear Munna Viyya,

It will be helpful for us. Thank you very much.
Best Regards
Julhas Sujan
Java Consultant
Management Science for Health(MSH)
USAID, Dhaka, Bangladesh
Cell: +8801989 442856
Skype: julhas08
Web: www.julhas.info

www.msh.org http://siapsprogram.org/wherewework/bangladesh/

On Wed, Dec 23, 2015 at 12:33 PM, Mohammad Ullah munnabcis@gmail.com wrote:

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,
  1. Its better to download the plugins and attach those from local folder.
  1. I have used the following version of the plugins,
<link rel="stylesheet" href="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" />
<script src="js/plugins/v21/v221_ext_ext-all.js"></script>
<script src="js/plugins/v17/v217_openlayers_OpenLayers.js"></script>
<script src="js/plugins/Carousel.js"></script>
<script src="js/plugins/v21/v221_plugin_chart.js"></script>
<script src="js/plugins/v21/v221_plugin_table.js"></script>
<script src="js/plugins/v17/v217_plugin_map.js"></script>
  1. 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 });
  1. 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)


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp


Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any attachments may be legally privileged and confidential. If you are not an intended recipient, you are hereby notified that any dissemination, distribution, or copying of this e-mail is strictly prohibited. If you have received this e-mail in error, please notify the sender and permanently delete the e-mail and any attachments immediately. You should not retain, copy or use this e-mail or any attachments for any purpose, nor disclose all or any part of the contents to any other person.


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp


Lars Helge Øverland

Lead developer, DHIS 2

University of Oslo

Skype: larshelgeoverland

http://www.dhis2.org


Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help : https://help.launchpad.net/ListHelp


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp