Re: [Dhis2-devs] SQL View : ERROR: column "uid" specified more than once.

2016-08-07 Thread Harsh Atal
Oh yes! Thank you Knut. Regards harsh On 8 August 2016 at 12:07, Knut Staring wrote: > Hi Harsh, you should give each uid a unique alias, eg uid1, uid2 etc > > On 8 Aug 2016 08:21, "Harsh Atal" wrote: > >> Dear Devs >> >> I am trying to make a sql view for getting the uid and name of all th

Re: [Dhis2-devs] SQL View : ERROR: column "uid" specified more than once.

2016-08-07 Thread Knut Staring
Hi Harsh, you should give each uid a unique alias, eg uid1, uid2 etc On 8 Aug 2016 08:21, "Harsh Atal" wrote: > Dear Devs > > I am trying to make a sql view for getting the uid and name of all the org > unit hierarchy . Have used following query : - > > select >> >> ou1.uid,max(ou1.name), >> ou

[Dhis2-devs] SQL View : ERROR: column "uid" specified more than once.

2016-08-07 Thread Harsh Atal
Dear Devs I am trying to make a sql view for getting the uid and name of all the org unit hierarchy . Have used following query : - select > > ou1.uid,max(ou1.name), > ou2.uid,max(ou2.name), > ou3.uid,max(ou3.name), > ou4.uid,max(ou4.name), > ou5.uid,max(ou5.name), > ou6.uid,max(ou6.name), > ou7.

[Dhis2-devs] [Bug 1609022] Re: Hp Printer Support Number 1 888 883 1066 Hp Printer Phone Number

2016-08-07 Thread William Grant
** Project changed: dhis2 => null-and-void ** Information type changed from Public to Private -- You received this bug notification because you are a member of DHIS 2 developers, which is subscribed to DHIS. https://bugs.launchpad.net/bugs/1609022 Title: Hp Printer Support Number 1 888 883 10

Re: [Dhis2-devs] DHIS2 based App http.post and put (403 error)

2016-08-07 Thread Michael Mwebaze
Hi Mark, thanks I finally figured out what the issue was. I do have a variable called baseURL = 'http://localhost/api' which I to the service and I had forgotten to include. i.e the rest call should have been $http.put(baseURL+'dataStore/rbcdashboard/HIV', data, {headers : {'Content-Type' : 'appl

[Dhis2-devs] scheduling in DHIS

2016-08-07 Thread Aamer Mohammed
Hi Lars/Morten, The scheduling page in DHIS 2.24 has ability to run tasks immediately in below sections. - Metadata Synchronization - Using 'Sync Now' button - SMS Scheduler - Using 'Run Now' button When the user clicks 'Sync Now' button, an asynchronous task is triggered in the backend fo

[Dhis2-devs] Analytics crashed in DHIS2 Live - how do I drop H2 tables?

2016-08-07 Thread Sam Johnson
Hi all, I’m trying to whip up a quick 2.24 prototype using (first time for me) DHIS2 Live. However, after setting up all program metadata and entering 2 events, the second time I ran the analytics, it crashed, with an error message that includes “Table _ORGUNITSTRUCTURE_TEMP already exists”.

Re: [Dhis2-devs] Assigment of legendset to Indicator pulling into GIS but not Pivot table

2016-08-07 Thread Elmarie Claasen
Thanks Jan will do so Elmarie On 07 Aug 2016 22:36, "Jan Henrik Øverland" wrote: > Hi Elmarie, > > Currently not possible, but I agree that it would be useful. > > Feel free to create a new Github issue here: https://github.com/ > dhis2/dhis2-pivot > > Jan > > On 5 August 2016 at 13:13, Elmarie

Re: [Dhis2-devs] signing up for google earth engine for dhis

2016-08-07 Thread Lars Helge Øverland
I have updated the tutorial now. Lars On Sun, Aug 7, 2016 at 1:59 PM, Bjørn Sandvik wrote: > Hi Calle, > > Yes, you need to attach the service account to a project - we will update > the documentation about this. > > If you already have a Google account, click on this link: > https://console.de

Re: [Dhis2-devs] DHIS2 based App http.post and put (403 error)

2016-08-07 Thread Michael Mwebaze
Hi Mark, It says 'Access to the specified resource has been forbidden' thanks On 7 August 2016 at 11:54, Mark Polak wrote: > What does the network tab tell you about the response for that request? > Generally the response will have a body that tells you why it's returning > forbidden. > > It l

Re: [Dhis2-devs] DHIS2 based App http.post and put (403 error)

2016-08-07 Thread Mark Polak
What does the network tab tell you about the response for that request? Generally the response will have a body that tells you why it's returning forbidden. It looks like the $http code seems fine. On Sun, Aug 7, 2016 at 5:20 PM, Knut Staring wrote: > Hi, > > I think this is a good example of a

Re: [Dhis2-devs] DHIS2 based App http.post and put (403 error)

2016-08-07 Thread Knut Staring
Hi, I think this is a good example of a thread that could be limited to just the developer list. Knut On Sun, Aug 7, 2016 at 5:14 PM, Michael Mwebaze wrote: > Hi Mark, > > The app I am developing is running with-in a DHIS2 context. Below is the > error from the console. I have also included th

Re: [Dhis2-devs] DHIS2 based App http.post and put (403 error)

2016-08-07 Thread Michael Mwebaze
Hi Mark, The app I am developing is running with-in a DHIS2 context. Below is the error from the console. I have also included the code fragment causing the error. [image: Inline images 1] var data = { "dashlets" : dashlets }

Re: [Dhis2-devs] DHIS2 based App http.post and put (403 error)

2016-08-07 Thread Mark Polak
Hey Michael, Are you developing the app using CORS? If you're doing CORS requests you will need to include the header yes. If your app is running from within the dhis2 context (as in you installed it) you won't need to do so. Generally when the Authorization header is not send the API would 302 y

Re: [Dhis2-devs] signing up for google earth engine for dhis

2016-08-07 Thread Bjørn Sandvik
Hi Calle, Yes, you need to attach the service account to a project - we will update the documentation about this. If you already have a Google account, click on this link: https://console.developers.google.com/iam-admin/projects Click on "Create project" and name the project. When the project i

Re: [Dhis2-devs] signing up for google earth engine for dhis

2016-08-07 Thread Calle Hedberg
Lars, Your step-by-step description don't fit what I get for Step 3 onwards - I see not "Create account' etc, just "Create project" and then it deviates completely from there. Regards calle On 6 August 2016 at 19:32, Lars Helge Øverland wrote: > Hi all, > > in DHIS 2.24 we introduced GIS layer

[Dhis2-devs] DHIS2 based App http.post and put (403 error)

2016-08-07 Thread Michael Mwebaze
Hi, I am developing a DHIS2 based app using AngularJS. The $http.get is successful but I am getting 403 (Forbidden) with the POST and PUT when I try to add a new item to the dataStore. Am I supposed to include Authorization: Basic base64encode(username:password) in the header as well? Is there an

Re: [Dhis2-devs] Login issue

2016-08-07 Thread Pramil Liyanage
Hi I also experience the same issue in 2.24. Is this fixed in the latest builds? Regards Pramil On 5 Aug 2016 10:13, "Em Le Hong" wrote: > I saw the response of the same bug. > > Thanks, > > On Fri, Aug 5, 2016 at 11:22 AM, Em Le Hong > wrote: > >> Hi dev, >> >> I'm using DHIS2 2.23 R.23045 >>