Re: [Dhis2-devs] API - Assign DataElements to ProgramStage

2015-06-01 Thread Lars Helge Øverland
Sounds good. On Mon, Jun 1, 2015 at 5:21 PM, Alan Hill ah...@2paths.com wrote: Hi Lars Thanks for the message.I was just about to send an update to this one. Yes - it is now working. Thanks for your help Morten. Kind regards Alan On Mon, Jun 1, 2015 at 7:56 AM, Lars Helge

Re: [Dhis2-devs] API - Assign DataElements to ProgramStage

2015-06-01 Thread Alan Hill
Hi Lars Thanks for the message.I was just about to send an update to this one. Yes - it is now working. Thanks for your help Morten. Kind regards Alan On Mon, Jun 1, 2015 at 7:56 AM, Lars Helge Øverland larshe...@gmail.com wrote: Hi Alan, did this work out? Let us know if you still

Re: [Dhis2-devs] API - Assign DataElements to ProgramStage

2015-06-01 Thread Lars Helge Øverland
Hi Alan, did this work out? Let us know if you still need help. regards, Lars On Fri, May 22, 2015 at 10:18 PM, Alan Hill ah...@2paths.com wrote: Hi Morten I think I tried this at some stage but will give it another go. Many thanks for your reply. Alan On Fri, May 22, 2015 at 4:00

Re: [Dhis2-devs] API - Assign DataElements to ProgramStage

2015-05-22 Thread Alan Hill
Hi Morten I think I tried this at some stage but will give it another go. Many thanks for your reply. Alan On Fri, May 22, 2015 at 4:00 AM, Morten Olav Hansen morte...@gmail.com wrote: Hi again This doesn't work, programStageDataElements and dataElements are not the same. You need to

Re: [Dhis2-devs] API - Assign DataElements to ProgramStage

2015-05-22 Thread Morten Olav Hansen
Hi again This doesn't work, programStageDataElements and dataElements are not the same. You need to first create a programStageDataElement with the proper dataElement, then connect it to the programStage. Have a look at /api/programStageDataElements -- Morten On Fri, May 22, 2015 at 12:25 PM,

Re: [Dhis2-devs] API - Assign DataElements to ProgramStage

2015-05-21 Thread Morten Olav Hansen
Hi The ID you are using, is it data element ID? -- Morten On Tue, May 19, 2015 at 11:22 PM, Lorill Crees lcr...@2paths.com wrote: We have also tried a POST to this to add each one individually: /api/programStages/ID/programStageDataElements/ID to add but get this error: Collection

Re: [Dhis2-devs] API - Assign DataElements to ProgramStage

2015-05-21 Thread Lorill Crees
Hi Morten, Yes it is: /api/programStages/Program Stage ID/programStageDataElements/Data Element ID to add Thanks, Lorill On Thu, May 21, 2015 at 9:51 PM, Morten Olav Hansen morte...@gmail.com wrote: Hi The ID you are using, is it data element ID? -- Morten On Tue, May 19, 2015 at

Re: [Dhis2-devs] API - Assign DataElements to ProgramStage

2015-05-19 Thread Lorill Crees
We have also tried a POST to this to add each one individually: /api/programStages/ID/programStageDataElements/ID to add but get this error: Collection programStageDataElements does not have an item with ID: xxx From the example below it would be:

[Dhis2-devs] API - Assign DataElements to ProgramStage

2015-05-12 Thread Alan Hill
Is there any way to assign DataElements to ProgramStages through the API as per the UI? I've tried PUTing to /api/programStage/ID with programStageDataElements set to a list of dataElement ids but without joy e.g. { id: Ge9BWs3Bin2, created: 2015-05-12T21:54:21.303+, name: NAME,