Re: [Dhis2-users] New translation projects. Help needed

2016-04-12 Thread Jason Pickering
Hi Antonia,
I had to make a few more changes as the original commit missed a some of
the translations which you sent. Please be sure you use at least Revision
22702.
I cannot read Kurdish, but when I change the language, something happens,
so it seems to work I think. :)

Regards,
Jason



​

On Wed, Apr 13, 2016 at 7:10 AM, Jason Pickering <
jason.p.picker...@gmail.com> wrote:

> Hi Antonia,
> It looks like there are two files being created. One called "en-ku.po" and
> another one called "ku.po". I am not certain why this is, and need to
> figure it out.
>
> In the meantime, I have committed your changes (there were only three
> translations I think) to trunk in rev 22699 and enabled the Kurdish
> language locale. Could you try the latest dev version in about an hour once
> it is built and deployed and see if the translations appear.
>
> I will have a look at your other questions as well and try and get back to
> you later with some answers.
>
> Regards,
> Jason
>
>
> On Wed, Apr 13, 2016 at 5:52 AM, Antonia Bezenchek - INFORMApro <
> antonia.bezenc...@informa.pro> wrote:
>
>> Dear Jason,
>> we are working for the Kurdish translation.
>> 1. We initiate by translating the dhis-service-core
>> 
>> Today I try to upload the translated file *dhis-service-core/en-ku.po*
>> both as unzipped file "*en-ku.po"* or as a zip file
>> *dhis2-translations-ku-dhis-service-core.zip*,
>> where the en-ku.po is in the folder "dhis-service-core".
>> The upload finished without errors, but at the end of the upload, the
>> "Need Translation" remains the same number and the uploaded translations
>> are not visible on the Translate tab. when I make the translations manually
>> with the web interface, the counter changes and the translations are
>> visible immediately.
>> I do something wrong or your intervention is needed?
>> I also attach the file for your verification.
>>
>> If all is ok, could you submit the translation to the developer
>> repository? Could you inform me in which build version our translation will
>> be present?
>>
>> 2. Another question:
>> In our implementation will be used 3 main languages - *Arabic *(now
>> present with more translations), *Kurdish *and *English*
>> In the DHIS2 platform (we use v. 2.22, Build revision: 21973)
>> as Interface language is present: *Arabic (Iraq)* and *Arabic  *-
>> without locale.
>> I do not find the *Arabic (Iraq)* in the *translation server*. When I
>> select it in the DHIS2 it has much less translations than the *Arabic*.
>> If I can't change it with the translation server and it has few
>> translations, it is better that it is not present in the platform, because
>> the user can select it.
>>
>> 3. In the Arabic translation of the Dashboard are missing:
>> "Get as image" and "Resize"
>> I added it to the translation directly by the web interface and I see it
>> on the translation server.
>> Could you submit also the Arabic translation with the Kurdish one, in
>> order to have also this words/phrases translated?
>>
>> Thanks for your help.
>> Antonia
>>
>> 2016-01-18 6:57 GMT+01:00 Jason Pickering :
>>
>>> Hi Antonia,
>>> I have setup a project for the Kurdish translations here
>>> http://translate.dhis2.org/ku/dhis2-translations/
>>>
>>> Basically, we (the dev team) provide the translation server to help
>>> translators to perform the localization and can help to merge the
>>> translations back into the source code. Translators just need to create an
>>> account on the translation server.  So, once you and your partners complete
>>> the translation or get to a point where you would like us to commit the
>>> translations, let me know via email, and I will get sync the translation
>>> server with the DHIS2 source code repository.
>>>
>>> Hope that is clear? Let us know if you have any more questions.
>>>
>>> Regards,
>>> Jason
>>>
>>>
>>> On Mon, Jan 18, 2016 at 12:11 AM, Antonia Bezenchek - INFORMApro <
>>> antonia.bezenc...@informa.pro> wrote:
>>>
 Hi Jason,
 we are developing a dhis2 system for the Autonomous Region of Kurdistan
 - Iraq. Now we made the translations in arabic (Iraq), but we have to do it
 also in Kurdish.
 Is it possible to add the Kurdish language to the dhis2 translations?
 You can find a translator here (http://inkurdish.com/) and we (and our
 kurdish partners) can help for the translation if needed.

 Is it possible to add this language?
 The flag of Kurdistan is already present.

 Thanks
 Antonia


  www.informa.pro - *Seguici su *LinkedIn
  [image: In]
 
 INFORMApro S.r.l. - via Luigi Rava 43,  Roma 00149
 tel. +39 06 5758926, fax +39  06 62207168
 Skype: informa_antonia.bezenchek
 Eng. Antonia Bezenchek - ICT  Manager

 2016-01-14 14:47 GMT+01:00 Jason Pickering >>> >:

> Hi Everyone,

Re: [Dhis2-users] [Dhis2-devs] HOW TO DESIGN PROGRAM INDICATORS

2016-04-12 Thread Elmarie Claasen
Hi Stanley,

 

The DHIS2 manual give some direction on Program Indicators on this link 
http://dhis2.github.io/dhis2-docs/master/en/user/html/ch30.html . 

I also find the attached notes about the 2.22 release when it was first 
released helpful 

 

Regards,

 

Elmarie Claasen

Hisp logo

Project Manager

Health Information Systems Program

Tel:  041-367 1027

Cell: 082 374 2209

E-mail:   elma...@hisp.org

Skype:  elmarie.claasen52 

 

 

This message and any attachments are subject to a disclaimer published at  
 
http://www.hisp.org/policies.html#comms_disclaimer .   Please read the 
disclaimer before opening any attachment or taking any other action in terms of 
this electronic transmission. 
If you cannot access the disclaimer, kindly send an email to  
 disclai...@hisp.org and a copy will be provided to 
you. By replying to this e-mail or opening any attachment you agree to be bound 
by the provisions of the disclaimer. 

 

From: Dhis2-devs 
[mailto:dhis2-devs-bounces+elmarie=hisp@lists.launchpad.net] On Behalf Of 
Stanley Kalyati
Sent: 12 April 2016 03:11 PM
To: dhis2-users@lists.launchpad.net
Cc: dhis2-d...@lists.launchpad.net
Subject: [Dhis2-devs] HOW TO DESIGN PROGRAM INDICATORS

 

Kindly help me with how to create a program indicator and where can i access 
these indicators,in pivot tables/Visualizer or Events reports.

I have already created the program with all data elements.

https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif

Stanley


-- 


*This message and any attachments are subject to a disclaimer published at 
http://www.hisp.org/policies.html#comms_disclaimer 
.  Please read the 
disclaimer before opening any attachment or taking any other action in 
terms of this electronic transmission.  If you cannot access the 
disclaimer, kindly send an email to disclai...@hisp.org 
 and a copy will be provided to you. By replying to 
this e-mail or opening any attachment you agree to be bound by the 
provisions of the disclaimer.*
--- Begin Message ---
Great news, slick creatures indeed. Thanx dev team!

On Jan 16, 2016 1:02 AM, "Lars Helge Øverland"  wrote:


Hi all,

DHIS version 2.22 is out with a lot of great new features and improvements. 


Log in with admin/district on the   demo system.



Data elements and indicators app: A completely new app for data elements and 
indicators maintenance features a much slicker user experience, with on-the-fly 
search, “access” and “last updated” visible in the lists, a new group editor, 
and much better looks.


  Demo |  
 Screenshot 1 
|   2 |  
 3



Integrated tracker analytics: Tracker-type data elements, attributes and 
program indicators can now be included in aggregate indicators. This allows for 
creating integrated analysis through indicators where e.g. the numerator is 
being collected in a program while the numerator is collected in an aggregate 
form. This means that you can produce integrated analysis without caring about 
whether the data comes from routine forms, anonymous events or tracking.


  Demo 1 
|   2 |  
 
Screenshot 1 |   2



Multiple programs in favorites: Data elements and attributes from any number of 
programs can now be included in the same pivot table or chart favorite.


  Demo |  
 
Screenshot



File cloud storage in tracker: The tracker capture and event capture apps now 
support file storage for data elements of type file. This allows you to use 
tracker as a document repository, and to upload documentation and files related 
to events or people. Files can be stored either on the Web server or sent 
directly to   AWS S3 cloud storage.


  Screenshot 
1 |   2



Tracker data audit: Tracker capture and event capture now store the audit trail 
of changes to data and make it readily available by clicking on the audit icon 
next to each input field in the form. This is useful to view historical changes 
to information and a requirement in many settings where sensitive data is being 
stored.


 <

Re: [Dhis2-users] New translation projects. Help needed

2016-04-12 Thread Jason Pickering
Hi Antonia,
It looks like there are two files being created. One called "en-ku.po" and
another one called "ku.po". I am not certain why this is, and need to
figure it out.

In the meantime, I have committed your changes (there were only three
translations I think) to trunk in rev 22699 and enabled the Kurdish
language locale. Could you try the latest dev version in about an hour once
it is built and deployed and see if the translations appear.

I will have a look at your other questions as well and try and get back to
you later with some answers.

Regards,
Jason


On Wed, Apr 13, 2016 at 5:52 AM, Antonia Bezenchek - INFORMApro <
antonia.bezenc...@informa.pro> wrote:

> Dear Jason,
> we are working for the Kurdish translation.
> 1. We initiate by translating the dhis-service-core
> 
> Today I try to upload the translated file *dhis-service-core/en-ku.po*
> both as unzipped file "*en-ku.po"* or as a zip file
> *dhis2-translations-ku-dhis-service-core.zip*,
> where the en-ku.po is in the folder "dhis-service-core".
> The upload finished without errors, but at the end of the upload, the
> "Need Translation" remains the same number and the uploaded translations
> are not visible on the Translate tab. when I make the translations manually
> with the web interface, the counter changes and the translations are
> visible immediately.
> I do something wrong or your intervention is needed?
> I also attach the file for your verification.
>
> If all is ok, could you submit the translation to the developer
> repository? Could you inform me in which build version our translation will
> be present?
>
> 2. Another question:
> In our implementation will be used 3 main languages - *Arabic *(now
> present with more translations), *Kurdish *and *English*
> In the DHIS2 platform (we use v. 2.22, Build revision: 21973)
> as Interface language is present: *Arabic (Iraq)* and *Arabic  *- without
> locale.
> I do not find the *Arabic (Iraq)* in the *translation server*. When I
> select it in the DHIS2 it has much less translations than the *Arabic*.
> If I can't change it with the translation server and it has few
> translations, it is better that it is not present in the platform, because
> the user can select it.
>
> 3. In the Arabic translation of the Dashboard are missing:
> "Get as image" and "Resize"
> I added it to the translation directly by the web interface and I see it
> on the translation server.
> Could you submit also the Arabic translation with the Kurdish one, in
> order to have also this words/phrases translated?
>
> Thanks for your help.
> Antonia
>
> 2016-01-18 6:57 GMT+01:00 Jason Pickering :
>
>> Hi Antonia,
>> I have setup a project for the Kurdish translations here
>> http://translate.dhis2.org/ku/dhis2-translations/
>>
>> Basically, we (the dev team) provide the translation server to help
>> translators to perform the localization and can help to merge the
>> translations back into the source code. Translators just need to create an
>> account on the translation server.  So, once you and your partners complete
>> the translation or get to a point where you would like us to commit the
>> translations, let me know via email, and I will get sync the translation
>> server with the DHIS2 source code repository.
>>
>> Hope that is clear? Let us know if you have any more questions.
>>
>> Regards,
>> Jason
>>
>>
>> On Mon, Jan 18, 2016 at 12:11 AM, Antonia Bezenchek - INFORMApro <
>> antonia.bezenc...@informa.pro> wrote:
>>
>>> Hi Jason,
>>> we are developing a dhis2 system for the Autonomous Region of Kurdistan
>>> - Iraq. Now we made the translations in arabic (Iraq), but we have to do it
>>> also in Kurdish.
>>> Is it possible to add the Kurdish language to the dhis2 translations?
>>> You can find a translator here (http://inkurdish.com/) and we (and our
>>> kurdish partners) can help for the translation if needed.
>>>
>>> Is it possible to add this language?
>>> The flag of Kurdistan is already present.
>>>
>>> Thanks
>>> Antonia
>>>
>>>
>>>  www.informa.pro - *Seguici su *LinkedIn
>>>  [image: In]
>>> 
>>> INFORMApro S.r.l. - via Luigi Rava 43,  Roma 00149
>>> tel. +39 06 5758926, fax +39  06 62207168
>>> Skype: informa_antonia.bezenchek
>>> Eng. Antonia Bezenchek - ICT  Manager
>>>
>>> 2016-01-14 14:47 GMT+01:00 Jason Pickering 
>>> :
>>>
 Hi Everyone,

 We have added three new translation projects to the translation server

 http://translate.dhis2.org/

 which are the Maintenance App, the Settings app and the App Management
 app.

 If you would like to see your language fully supported in the next
 release (2.22) and have some resources to help out with the translations,
 you should be able to get started right away.  There are quite a few
 outstanding and new fields which will need to be updated.

Re: [Dhis2-users] New translation projects. Help needed

2016-04-12 Thread Jason Pickering
Hi Antonia,
I will take a look at it today and let you know what I find.

Regards,
Jason


On Wed, Apr 13, 2016 at 5:52 AM, Antonia Bezenchek - INFORMApro <
antonia.bezenc...@informa.pro> wrote:

> Dear Jason,
> we are working for the Kurdish translation.
> 1. We initiate by translating the dhis-service-core
> 
> Today I try to upload the translated file *dhis-service-core/en-ku.po*
> both as unzipped file "*en-ku.po"* or as a zip file
> *dhis2-translations-ku-dhis-service-core.zip*,
> where the en-ku.po is in the folder "dhis-service-core".
> The upload finished without errors, but at the end of the upload, the
> "Need Translation" remains the same number and the uploaded translations
> are not visible on the Translate tab. when I make the translations manually
> with the web interface, the counter changes and the translations are
> visible immediately.
> I do something wrong or your intervention is needed?
> I also attach the file for your verification.
>
> If all is ok, could you submit the translation to the developer
> repository? Could you inform me in which build version our translation will
> be present?
>
> 2. Another question:
> In our implementation will be used 3 main languages - *Arabic *(now
> present with more translations), *Kurdish *and *English*
> In the DHIS2 platform (we use v. 2.22, Build revision: 21973)
> as Interface language is present: *Arabic (Iraq)* and *Arabic  *- without
> locale.
> I do not find the *Arabic (Iraq)* in the *translation server*. When I
> select it in the DHIS2 it has much less translations than the *Arabic*.
> If I can't change it with the translation server and it has few
> translations, it is better that it is not present in the platform, because
> the user can select it.
>
> 3. In the Arabic translation of the Dashboard are missing:
> "Get as image" and "Resize"
> I added it to the translation directly by the web interface and I see it
> on the translation server.
> Could you submit also the Arabic translation with the Kurdish one, in
> order to have also this words/phrases translated?
>
> Thanks for your help.
> Antonia
>
> 2016-01-18 6:57 GMT+01:00 Jason Pickering :
>
>> Hi Antonia,
>> I have setup a project for the Kurdish translations here
>> http://translate.dhis2.org/ku/dhis2-translations/
>>
>> Basically, we (the dev team) provide the translation server to help
>> translators to perform the localization and can help to merge the
>> translations back into the source code. Translators just need to create an
>> account on the translation server.  So, once you and your partners complete
>> the translation or get to a point where you would like us to commit the
>> translations, let me know via email, and I will get sync the translation
>> server with the DHIS2 source code repository.
>>
>> Hope that is clear? Let us know if you have any more questions.
>>
>> Regards,
>> Jason
>>
>>
>> On Mon, Jan 18, 2016 at 12:11 AM, Antonia Bezenchek - INFORMApro <
>> antonia.bezenc...@informa.pro> wrote:
>>
>>> Hi Jason,
>>> we are developing a dhis2 system for the Autonomous Region of Kurdistan
>>> - Iraq. Now we made the translations in arabic (Iraq), but we have to do it
>>> also in Kurdish.
>>> Is it possible to add the Kurdish language to the dhis2 translations?
>>> You can find a translator here (http://inkurdish.com/) and we (and our
>>> kurdish partners) can help for the translation if needed.
>>>
>>> Is it possible to add this language?
>>> The flag of Kurdistan is already present.
>>>
>>> Thanks
>>> Antonia
>>>
>>>
>>>  www.informa.pro - *Seguici su *LinkedIn
>>>  [image: In]
>>> 
>>> INFORMApro S.r.l. - via Luigi Rava 43,  Roma 00149
>>> tel. +39 06 5758926, fax +39  06 62207168
>>> Skype: informa_antonia.bezenchek
>>> Eng. Antonia Bezenchek - ICT  Manager
>>>
>>> 2016-01-14 14:47 GMT+01:00 Jason Pickering 
>>> :
>>>
 Hi Everyone,

 We have added three new translation projects to the translation server

 http://translate.dhis2.org/

 which are the Maintenance App, the Settings app and the App Management
 app.

 If you would like to see your language fully supported in the next
 release (2.22) and have some resources to help out with the translations,
 you should be able to get started right away.  There are quite a few
 outstanding and new fields which will need to be updated.

 We are still working on some of the automation aspects of the
 translation work flow, so for the meantime, please let me (or through the
 dev list) know once you have completed your work, and we will take care of
 getting it committed back into DHIS2.

 Best regards,
 Jason



 --
 Jason P. Pickering
 email: jason.p.picker...@gmail.com


 ___
 Mailing list: https:

Re: [Dhis2-users] Data approval workflow for programs

2016-04-12 Thread David Siang Fong Oh
Hi Jim,

We are in the process of migrating to v2.22 (and the data approval
workflows) and are trying to understand the implications for the approvals
API:

   - In v2.22 calls to the data approvals API will still be specified using
   an orgUnit, a period, and *a dataset*. The response will reflect
   however, the state of the approval for the orgUnit, period and associated
   *workflow,* not dataset. Similarly any POST calls will modify the
   approval for the workflow, not the dataset.
   - In v2.23 (or later) the data approvals API will be changed so that you
   specify a workflow directly. Referencing the dataset will be removed.

Is the above correct?

Cheers,

-doh

On Thu, Feb 11, 2016 at 6:26 PM, Jim Grace  wrote:

> Hi Eric,
>
> We're sorry, it didn't make it into 2.22. But it should be there in 2.23.
> What did make it into 2.22 is the "workflow" object, upon which we will
> base approvals for programs, see
> https://blueprints.launchpad.net/dhis2/+spec/approval-workflows. In 2.22,
> rather than approving a dataset (for a given period, organization unit,
> etc.), approvals operate on a higher level object called a "workflow". This
> has three advantages: (1) multiple datasets can reference the same workflow
> and be approved together if desired (or each dataset can have its own
> workflow), (2) each workflow can reference a subset of approval levels, if
> not all types of approvals should use all approval levels, and (3) in the
> future, we will use the workflows for approving programs as well. In fact,
> a single workflow will be able to approve a single program, or multiple
> programs, or a mix of programs and datasets, etc.
>
> Something we are still working on is understanding best how, or even
> whether, to lock out program event entry for periods that have been
> approved. Event entry uses a date picker, and it doesn't easily lend itself
> to locking out various approved periods. Date pickers generally can be
> constrained only to a single valid date range from a start date to an end
> date. Alternatives include that we could set start and/or end dates in the
> date picker according to what range of time has not been approved, and/or
> we could have some javascript validation logic to check against approved
> periods after the user has entered the date. We're still discussing what
> would be best.
>
> It would be helpful if you could share with us any anticipated use case
> you have for program data approval. Is it important to you that users not
> be able to enter event data for periods that have been approved? Is it
> important that event data be hidden from higher level users until approved?
> Do you expect past periods will be approved up until a point in time and
> future periods beyond that point will be unapproved -- or might there
> sometimes be alternating periods that are approved and unapproved?
>
> If you -- and anyone else -- can tell us about your anticipated use cases
> for program data approvals, it will increase the chance that we will finish
> this feature in a way that will work well for you. :)
>
> Cheers,
> Jim
>
> On Thu, Feb 11, 2016 at 6:51 AM, eric mourin 
> wrote:
>
>> Hi everyone,
>>
>> I was wondering if the data approval workflow for programs has been
>> implemented yet, I've seen in a past email (
>> https://www.mail-archive.com/dhis2-users@lists.launchpad.net/msg08144.html)
>> that it was planned to be released for the current version (2.22) but it
>> does not seem to work yet.
>>
>> Thanks in advance!
>>
>> ___
>> 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
>>
>>
>
>
> --
> Jim Grace
> Core developer, DHIS 2
> HISP US Inc.
> 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


Re: [Dhis2-users] Dear Everyone

2016-04-12 Thread Lars Helge Øverland
Dear Dr Gayan,

at the moment, no you cannot show enrollment date in event reports.

That said, remember that this is a public list - please do not share
information that can be confidential in any way.

best regards,

Lars


>
>
> Hi
> I am new to DHIS2
> I want to create a Event report in tracker  using enrollment days.
> as shown in my screen print can i change event date to enrollment date ?
>
>
> --
> Dr Gayan Yasantha Piyasena (MBBS, MSC)
> Anti-Leprosy Campaign
> Ministry Of Health
> Sri Lanak
>
>
>
> ___
> 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


[Dhis2-users] HOW TO DESIGN PROGRAM INDICATORS

2016-04-12 Thread Stanley Kalyati
Kindly help me with how to create a program indicator and where can i
access these indicators,in pivot tables/Visualizer or Events reports.

I have already created the program with all data elements.

Stanley
___
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


Re: [Dhis2-users] [Dhis2-devs] Pop up warning when Editing Event Detail and Screen rendering issues in Tracker/Event Capture

2016-04-12 Thread Abyot Asalefew Gizaw
Hi Laura,

The popup is related to a program rule definition you have in your system.

I suspect this is related to meta-data change. Either data element or
attribute is removed after a program rule is defined. When meta-data is
changed, it is important to clear cache and things should proceed normal.
This shouldn't affect the loading of orgunit tree and other parts of the
apps. Do you have any browser log to share ?

--
Abyot A. Gizaw.
Senior Engineer, DHIS2
University of Oslo
http://www.dhis2.org

On Thu, Apr 7, 2016 at 11:57 PM, Laura E. Lincks <
laura.lin...@icap.columbia.edu> wrote:

> Version:2.22Build revision:21973
>
>
> The following pop up displays every time we attempt to edit an Event Detail
>
>
>
> We're also often having difficulty viewing data in Event Capture and
> Tracker Capture... Org Unit trees don't display in their entirety...
> Programs don't appear in the pulldown... existing data is invisible within
> the data grid... we have to refresh the screen multiple times and/or
> perform a true Clear Cache (Chrome) for all the text to render on the
> screen.
>
> This has been happening to us in 2 instances of 2.22 for Event Capture as
> well as Tracker Capture.
>
> ​
>
> *Laura E. Lincks*
> Database Manager/Developer
> ICAP - Columbia University
> Mailman School of Public Health
> 60 Haven Ave, Floor B1
> New York, NY 10032
> Tel: 212 304 7132
>
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-d...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> 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


Re: [Dhis2-users] Unsupported grant_type error

2016-04-12 Thread Morten Olav Hansen
Hi

What version of DHIS 2 are you on? also did you configure your oauth2
clients?

Did you test with password based oauth2, is that working fine?

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org

On Mon, Apr 11, 2016 at 3:54 AM, eric mourin  wrote:

> Hi everyone,
>
> I've been working with the API and while the password grant type worked
> correctly I'm getting an error message when using the "authorized_code"
> grant type. Here is my request:
>
> curl -X POST -u $CLIENT:$SECRET -H "Accept: application/json"
> $SERVER/uaa/oauth/token -d grant_type=authorized_code -d code=$CODE
>
> And I get the following error:
>
> {"error":"unsupported_grant_type","error_description":"Unsupported grant
> type: authorized_code"}
>
> I've also tried the $SERVER/token url describe on the documentation but it
> seems to be incorrect, and i get:
>
> HTTP Status 401 - LDAP authentication is not configured
>
>  I've been able to retrieve correctly the code but I can't figure out what
> am I doing wrong with the request.
>
> Thanks for your time
>
> Eric
>
> ___
> 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


Re: [Dhis2-users] Event Visualiser Status: Conflict, User: xyw not allowed...

2016-04-12 Thread Lars Helge Øverland
Hi David,

could it be that this user is in fact not allowed to view that org unit?
The "data view organisation unit" of the user is determining whether she
has access to the org unit, including its sub-hierarchy.

regards,

Lars

On Wed, Mar 16, 2016 at 1:40 PM, David Hagan 
wrote:

> This issue just ‘popped’ in the last 12 hours for a pilot system for event
> capture. Some form changes were made and pushed out … and while this error
> seems to point to a permissions issue …. it doesn’t make any logical sense.
> Here goes,
>
> 3 event charts worked last night.
> This morning, those same 3 charts throw an error:
>
> Code: 409
> Status: Conflict
> User_ xyz is not allowed to view org unit: abc
>
> The silly thing is, I’m not logged in as that user, but as Admin, with
> full access to all orgs.
>
> If I look at the request URL (similar to below) …
>
>
> /api/analytics/events/aggregate/wVzYQk6jW5q.json?stage=iPDH75AgmNv&dimension=kbaD30LqqjQ&dimension=ou:abc;tMQcwX60LSi;I3BIS1WKwpD&filter=pe:LAST_4_WEEKS;THIS_WEEK&outputType=EVENT&displayProperty=NAME
>
> which generates the error, and remove the offending org id from the query
> string …. it brings back a result-set rather than the error message.
>
> Any clues anyone?
>
> Version info is: 2.21
> Build revision: 20971Build date: 2015-12-18 12:01
>
> David
>
> ___
> 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
>
>


-- 
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