[Dhis2-devs] Recent JQUERY API change caused multiple bugs throughout DHIS2

2017-08-07 Thread Calle Hedberg
Hi, During the last few weeks, several of us detected that a range of key functionalities were no longer working in 2.25, 2.26, 2.27 etc, and wrote up JIRA issues. According to Viet - who has fixed most of them - this was caused by a recent JQUERY API change: "Before we were using the method *att

Re: [Dhis2-devs] DHIS 2

2017-08-07 Thread Calle Hedberg
Omer, Jason explains about UIDs, but you are actually asking about internal dataelementid numbers? Then note that all internal id numbers (e.g. dataelementid, organisationunitid, periodid, etc) are generated sequentially from a hibernate sequence. if you look at any of your postgresql databases i

[Dhis2-devs] DHIS 2

2017-08-07 Thread Omer Butt
Aoa sir, Is there a way to select an organization unit from drop down List. Or we provide a filter to search organization easily from organization list. Kindly help me out. ___ Mailing list: https://launchpad.net/~dhis2-devs Post to : dhis2-devs@list

[Dhis2-devs] 'Ask user to create new event...' no longer respects hiding of program stages

2017-08-07 Thread Sam Johnson
Hi Devs, I’ve reported this as DHIS2-2012. Basically, when users are prompted to create a new event booking, they are now offered the next available program stage – even if it’s supposed to be hidden. This used to work correctly (ie hidden program sta

[Dhis2-devs] DHIS 2

2017-08-07 Thread Omer Butt
Aoa Sir, Can i save a data elements values to DB by using Your DHIS 2 API.?? ___ Mailing list: https://launchpad.net/~dhis2-devs Post to : dhis2-devs@lists.launchpad.net Unsubscribe : https://launchpad.net/~dhis2-devs More help : https://help.launch

Re: [Dhis2-devs] DHIS 2

2017-08-07 Thread Jason Pickering
Have a look here: Organisation unit API: https://docs.dhis2.org/master/en/developer/html/webapi_metadata_object_filter.html You would need to implement some custom drop down yourself. Saving data values: https://docs.dhis2.org/master/en/developer/html/webapi_data_values.html#webapi_sending_dat

Re: [Dhis2-devs] CSV Event upload failed: "latitude" not a valid Double value

2017-08-07 Thread Jesus Solano-Roman
Hi Morten.I have updated to the lastest version available in Docker:Version:2.27Build revision:068f643Build date:2017-08-05 11:20Unfortunately this has made things worse apparently. Trying to upload -any- rows in CSV is now not working. For instance, when trying to upload this csv:tHF7qDZVeoT,ACTIV

Re: [Dhis2-devs] Defining Compulsory Data Element Unsuccessfull

2017-08-07 Thread Barnabas Akumba
Hello Raminosoa, The issue is because the Data Element has already been used for data entry and changing the property of the DE at this time will bring about some violations. The solution is to create another DE with the compulsory attribute and remove the previous one from the Dataset. But you m

[Dhis2-devs] Retrieving validation rules for a dataSet fails in >=2.26

2017-08-07 Thread Jasper Timm
Hi all, It looks like a request to the /validationRules endpoint where you specify the dataSet you're interested in is now failing in versions 2.26 and above. See the following request on the play instance: https://play.dhis2.org/demo/api/validationRules?dataSet=lyLU2wR22tC Response: { "htt

Re: [Dhis2-devs] Defining Compulsory Data Element Unsuccessfull

2017-08-07 Thread Raminosoa Rabemanantsoa, Tantely
Hi Barnabas, Thank you for this straightforward workaround. Would it then possible via SQL view (or another way?) to transfer the existing data of the old DE to the new one? By doing so, we can also set the empty value to an hypothetic one, so that the new DE won't contain any null value. Regards

Re: [Dhis2-devs] Defining Compulsory Data Element Unsuccessfull

2017-08-07 Thread Barnabas Akumba
Yes. That should be possible if you have access to the DB and you know the element ID, categoryoptioncombo and attributeoptioncombo of both the old and new DEs. The easiest work around for me would be to export the data to CSV and import into the new DE. Regards On Aug 7, 2017 7:03 PM, "Raminosoa

Re: [Dhis2-devs] Defining Compulsory Data Element Unsuccessfull

2017-08-07 Thread Raminosoa Rabemanantsoa, Tantely
You're right! This is the quickest way. Thank you Barnabas. I could work with this method. Regards! Tantely. On Mon, Aug 7, 2017 at 9:11 PM, Barnabas Akumba wrote: > Yes. That should be possible if you have access to the DB and you know the > element ID, categoryoptioncombo and attributeopt

Re: [Dhis2-devs] [Dhis2-users] Entering data using Mobile (Smartphone) module

2017-08-07 Thread Em Le Hong
Hi, I think it's just assigning setup. On Android and Web browser on smartphone (Smartphone app), you have assign a user to specific orgUnit which also has dataSet assigned to. For example: Your dataSet is assign to level 3, then you also need to assign the user to level 3. On web version, if you