← Back to team overview

dhis2-users team mailing list archive

Re: Web Portal with DHIS2

 

Thank You Lars,
I tried a example, Please let me give you my configuration :- DHIS Live 2.18 (18179) on Windows 7 - Database = PostGreSQL  9.3
- Remote acces - CORE White Liste     - http://localhost:8082/ ;   - https://localhost:8082/
    - http://127.0.0.1/
 - My script<!DOCTYPE html><html><head>  <link rel="stylesheet" type="text/css" href="http://dhis2-cdn.org/v215/ext/resources/css/ext-plugin-gray.css"; />  <script src="https://dhis2-cdn.org/v215/ext/ext-all.js";></script>  <script src="https://dhis2-cdn.org/v215/plugin/table.js";></script>
  <script>    var base = "http://localhost:8082";;
    // Login - if OK, call the setLinks function        Ext.onReady( function() {      Ext.Ajax.request({        url: base + "dhis-web-commons-security/login.action",        method: "POST",        params: { j_username: "ekani.guy", j_password: "xxxxx" },        success: setLinks      });    });
    function setLinks() {
      // Referring to an existing table through the id parameter, render to "table1" div            DHIS.getTable({ url: base, el: "table1", id: "fqk6tunwRLp" });         }  </script></head>
<body>  <div id="table1"></div></body></html>
- console error on web browser1.XMLHttpRequest cannot load http://localhost:8082/dhis-web-commons-security/login.action. The request was redirected to 'http://localhost:8082/dhis-web-commons/security/login.action;jsessionid=yvbsx7nvigeft54069fvllae?failed=true', which is disallowed for cross-origin requests that require preflight.

2.XMLHttpRequest cannot load http://localhost:8082/dhis-web-commons/security/login.action. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.

Sincerely,
========================= EKANI Guy 
 



  


     Le Jeudi 1 octobre 2015 19h11, Lars Helge Øverland <larshelge@xxxxxxxxx> a écrit :
   

 Hi Guy,
for starters I recommend that you start reading up on how to use the analytics plugins here:
https://www.dhis2.org/doc/snapshot/en/developer/html/ch01s23.html

Using these you can embed pivots, charts and maps in web portals with live data from DHIS 2.
You can also have a look at the Web portal demo here:
https://apps.dhis2.org/portal/index.html

https://apps.dhis2.org/portal/chart.html

regards,
Lars

On Mon, Sep 28, 2015 at 5:31 PM, Guy Ekani <constyekani@xxxxxxxx> wrote:

Hello Everyone,

Could someone can share tips on how to build a Web Portal with DHIS2 Data

Sincerely, ========================= EKANI Guy 




 
_______________________________________________
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





-- 
Lars Helge Øverland
Lead developer, DHIS 2University of OsloSkype: larshelgeoverland
http://www.dhis2.org


  

Follow ups

References