Hi Would you mind creating an issue in your JIRA instance? jira.dhis2.org
-- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Tue, Jun 6, 2017 at 12:24 AM, George Gelaga-King < george.gelaga-k...@sl.ehealthafrica.org> wrote: > Hi all, > > Following up on this email > > Post with the default category option combo id included: > > { > "completeDate": "2017-05-29T00:00:00.000+0000", > "dataSet": "XXXXXX", > "orgUnit": "XXXXXXX", > "period": "2017W22", > "dataValues": [ > { > "categoryOptionCombo": "default_id", > "dataElement": "XXXXXXX", > "value": "false" > } > ]} > > This is the response from DHIS2 > > { > > "responseType": "ImportSummary", > "status": "SUCCESS", > "description": "Import process completed successfully", > "importCount": { > "imported": 0, > "updated": 0, > "ignored": 1, > "deleted": 0 > }, > "conflicts": [ > { > "object": “default_category_option_combo_id", > "value": "Category option combo not found or not accessible" > } > ], > "dataSetComplete": "2017-05-29” > > } > > { > "responseType": "ImportSummary", > "status": "SUCCESS", > "description": "Import process completed successfully", > "importCount": { > "imported": 0, > "updated": 1, > "ignored": 0, > "deleted": 0 > }, > "dataSetComplete": "2017-05-29” > > } > > Thanks, > George > > Post without the default category option combo id (blank): > > { > "completeDate": "2017-05-17T00:00:00.000+0000", > "dataSet": "XXXXXX", > "orgUnit": "XXXXXX", > "period": "2017W22", > "dataValues": [ > { > "categoryOptionCombo": "", > "dataElement": "XXXXXX", > "value": "false" > } > ]} > > This is the response: > > On 29 May 2017, 16:15 +0000, George Gelaga-King <george.gelaga-king@sl. > ehealthafrica.org>, wrote: > > Hello Everyone, > > I want to use the default category option combo when submitting data value > sets for some data values. I’ve noticed that if the user thats submitting > these values does not have the “ALL” permission specified in their user > roles they get the error message "Category option combo not found or not > accessible” and the data values with the default category option combos > aren’t updated/created. Previously we left the category option combos blank > for the data values that used default but we don’t want this to be the case > anymore as we’ve had issues when the default category option combo was > changed. > > *In short:* > How do you use the default category option combo when submitting data > values without giving the user role the “ALL” authority? > > Thanks, > George. > > > _______________________________________________ > Mailing list: https://launchpad.net/~dhis2-devs > Post to : dhis2-devs@lists.launchpad.net > Unsubscribe : https://launchpad.net/~dhis2-devs > More help : https://help.launchpad.net/ListHelp > >
_______________________________________________ Mailing list: https://launchpad.net/~dhis2-devs Post to : dhis2-devs@lists.launchpad.net Unsubscribe : https://launchpad.net/~dhis2-devs More help : https://help.launchpad.net/ListHelp