[Dhis2-users] complex category combo for Datasets doesn't show outputs

2016-09-29 Thread Dipali Sahu
Hi DHIS2 Community I am wondering if assigning complex category combinations to a DATASET will work. I have a use case where the activities are supported by 2 donors and hence data is accounted in 2 different projects. I created a dataset shown as below. Although on in(or even any 2 categories lik

[Dhis2-users] Fwd: user access to create program indicators

2016-09-29 Thread Dipali Sahu
Hi,, any hints will be helpful :) -- Forwarded message -- From: Dipali Sahu Date: Wed, Sep 28, 2016 at 2:48 PM Subject: user access to create program indicators To: DHIS 2 Users list Hi Is there a user access right to allow users to create/edit Program indicators. I have arou

Re: [Dhis2-users] [Dhis2-devs] Fwd: user access to create program indicators

2016-09-29 Thread Elmarie Claasen
Diphali, I have not tried it but if you give the relevant program permissions and share the one program and all the dependencies like Attributes, Data elements, optionsets etc with a group that user belongs to to "view and edit" the user shohmd only be able to create program indicaors for that pro

Re: [Dhis2-users] [Dhis2-devs] UID generation

2016-09-29 Thread Morten Olav Hansen
A third alternative is to just get it from DHIS2 itself, https://play.dhis2.org/dev/api/system/id.json?limit=1000 https://play.dhis2.org/dev/api/system/id.xml?limit=1000 https://play.dhis2.org/dev/api/system/id.csv?limit=1000 -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http:

Re: [Dhis2-users] [Dhis2-devs] UID generation

2016-09-29 Thread Arun Paul
Thanks Lars, Jason for the quick response ! That solution worked for me. ​Regards , - Arun Paul On Thu, Sep 29, 2016 at 2:55 PM, Jason Pickering < jason.p.picker...@gmail.com> wrote: > If you are using Postgres to inject the data directly, you can use this > > https://github.com/dhis2/dhis2-util

[Dhis2-users] UID generation

2016-09-29 Thread Arun Paul
Hello everyone, I am trying to import legacy data into a new DHIS2 installation using custom code. While adding new entries into a database table, I need to assign new UID values. What is the algorithm I should use to generated these IDs ? I tried using a postgresql extension called uuid-ossp and

Re: [Dhis2-users] UID generation

2016-09-29 Thread Lars Helge Øverland
In fact, generateCode(); will do. Lars On Thu, Sep 29, 2016 at 11:23 AM, Lars Helge Øverland wrote: > Hi Arun, > > if you are using the DHIS 2 Java service layers there is no need to > manually generate and set UIDs. They will be automatically set before the > object is saved. > > To generate

Re: [Dhis2-users] [Dhis2-devs] UID generation

2016-09-29 Thread Jason Pickering
If you are using Postgres to inject the data directly, you can use this https://github.com/dhis2/dhis2-utils/blob/master/resources/sql/uid.sql Regards, Jason On Thu, Sep 29, 2016 at 11:23 AM, Lars Helge Øverland wrote: > In fact, generateCode(); will do. > > Lars > > > On Thu, Sep 29, 2016 at

Re: [Dhis2-users] UID generation

2016-09-29 Thread Lars Helge Øverland
Hi Arun, if you are using the DHIS 2 Java service layers there is no need to manually generate and set UIDs. They will be automatically set before the object is saved. To generate UIDs you should use this class: org.hisp.dhis.commonCodeGenerator -> generateCode( 11 ); Javadoc: http://ci.dhis2.o

[Dhis2-users] How to define data element with multiple input type ?

2016-09-29 Thread Brajesh Murari
Hello Devs, I have a data element "Child Care Institutions (CCIs) that have submitted quarterly report" with three different input type 1. Boolean ( Yes/No ) 2. Number 3. Percentage How should i define above data element that i can use it for capturing data for above all the three different inpu