dhis2-users team mailing list archive
-
dhis2-users team
-
Mailing list archive
-
Message #09128
Re: [Dhis2-devs] Bangladesh web portal using dhis2 plugins
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@xxxxxxxxx> 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 KhanHISP Bangladesh
On Sat, Jan 23, 2016 at 8:49 PM, Guy Ekani <constyekani@xxxxxxxx> 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@xxxxxxxxx> 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@xxxxxxxxx> wrote:
Dear Munna,
Thank you very much for sharing.
On Wed, Dec 23, 2015 at 12:49 PM, Julhas Sujan <julhaspustcse@xxxxxxxxx> 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@xxxxxxxxx> 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,
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" />
<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>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)
_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp
_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@xxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp
--
Lars Helge Øverland
Lead developer, DHIS 2University of OsloSkype: larshelgeoverland
http://www.dhis2.org
_______________________________________________
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~dhis2-users
More help : https://help.launchpad.net/ListHelp
_______________________________________________
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~dhis2-users
More help : https://help.launchpad.net/ListHelp
Follow ups
References