Re: [Dhis2-devs] [Dhis2-users] Web Portal with DHIS2

2015-11-04 Thread Guy Ekani
Hello everyone, I'm facing two porblems with portal in dhis 2.21 (20853), 1. i'm not able to retrieve table and chart when i'm not connected in dhis2    Error = Refused to execute script from 'http://localhost:8080/api/organisationUnits.jsonp?userOnly=true&…[id,name]&paging=false&callback=Ext.dat

Re: [Dhis2-devs] [Dhis2-users] Web Portal with DHIS2

2015-10-08 Thread Hannan Khan
Ok Jan. I will upgrade to 2.20 and check. Will get back to you all. Regards Hannan On Wed, Oct 7, 2015 at 5:29 PM, Jan Henrik Øverland < janhenrik.overl...@gmail.com> wrote: > Hi Hannan, > > You need to use version 2.20. > > On Mon, Oct 5, 2015 at 1:43 PM, Hannan Khan wrote: > >> I am facing

Re: [Dhis2-devs] [Dhis2-users] Web Portal with DHIS2

2015-10-07 Thread Jan Henrik Øverland
Hi Hannan, You need to use version 2.20. On Mon, Oct 5, 2015 at 1:43 PM, Hannan Khan wrote: > I am facing the same problem: One script following the manual is: > > > > > http://dhis2-cdn.org/v219/ext/resources/css/ext-plugin-gray.css"; /> > http://dhis2-cdn.org/v219/ext/ext-all.js";>

Re: [Dhis2-devs] [Dhis2-users] Web Portal with DHIS2

2015-10-05 Thread Hannan Khan
I am facing the same problem: One script following the manual is: http://dhis2-cdn.org/v219/ext/resources/css/ext-plugin-gray.css"; /> http://dhis2-cdn.org/v219/ext/ext-all.js";> http://dhis2-cdn.org/v219/plugin/chart.js";> var base = "Re: [Dhis2-devs] [Dhis2-users] Web Portal with DHIS2
Thank's Jan ! It's working with https://dhis2-cdn.org/v217/plugin/table.js on Google Chrome, But not Displaying in Mozilla Firefox ! May God Bless you all = EKANI Guy  Le Vendredi 2 octobre 2015 15h08, Jan Henrik Øverland a écrit : You need to add exac

Re: [Dhis2-devs] [Dhis2-users] Web Portal with DHIS2

You need to add exactly http://localhost:8082 (without the final /) to the CORS whitelist. On Fri, Oct 2, 2015 at 4:50 PM, Guy Ekani wrote: > Now I have the following errors in DHIS-Live 2.20(19682)/PosgreSQL : > > Table.html:1 XMLHttpRequest cannot load > http://localhost:8082/api/me/user-acc

Re: [Dhis2-devs] [Dhis2-users] Web Portal with DHIS2

Hey Guy, You need to let DHIS2 know that the url the request is coming from is allowed to make requests. Therefore you need to add the portal url to the CORS whitelist. You can do this in Apps -> Settings -> Access Settings. [image: Inline image 1] Regards, Mark On Fri, Oct 2, 2015 at 3:50 PM

Re: [Dhis2-devs] [Dhis2-users] Web Portal with DHIS2

Now I have the following errors in DHIS-Live 2.20(19682)/PosgreSQL :  Table.html:1 XMLHttpRequest cannot load http://localhost:8082/api/me/user-account.json. The request was redirected to 'http://localhost:8082/dhis-web-commons/security/login.action;jsessionid=pz57xiqk2xlcc1jy8sjv8pm7', which is

Re: [Dhis2-devs] [Dhis2-users] Web Portal with DHIS2

Hi Guy, The 2.20 plugin does the authentication for you (as long as you provide the crossDomain, username and password) so you can remove the login code. This will work (replace password): http://dhis2-cdn.org/v220/ext/resources/css/ext-plugin-gray.css"/> https://dhis2-cdn.org/v220/ext/ex

Re: [Dhis2-devs] [Dhis2-users] Web Portal with DHIS2

Thanks Jan,  I migrated to DHIS-Live 2.20(19682), But I'm always getting the error :  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=irhqgxqywe5v1kb27d

Re: [Dhis2-devs] [Dhis2-users] Web Portal with DHIS2

Hi Henri, The main point of the portal solution is that you are free to add any such additional functionality. But I guess you are asking whether the core DHIS2 model could be extended to associate a comment with each chart? I suppose that is already there to some extent through the Interpretation

Re: [Dhis2-devs] [Dhis2-users] Web Portal with DHIS2

Hi Guy, A fix is needed both in the Ext version we are (still) using and in the plugins to make this work. Unfortunately I have only had the time to update trunk and 2.20 so far. If it is OK for you to upgrade to 2.20 it will work right away if you add the following to your plugin configuration:

Re: [Dhis2-devs] [Dhis2-users] Web Portal with DHIS2

Hi Lars,I have seen the link. Isn't there a way to kindly present text comment besides charts and pivot tables? Thank you. Henri    Le Jeudi 1 octobre 2015 19h11, Lars Helge Øverland a écrit : Hi Guy, for starters I recommend that you start reading up on how to use the analytics p

Re: [Dhis2-devs] [Dhis2-users] 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  http://dhis2-cdn.org/v21

Re: [Dhis2-devs] [Dhis2-users] Web Portal with DHIS2

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