Hi Mansi, Names for DataElementCategoryOptionCombo are not persisted, but rather generated on the fly. Please have a look at DataElementCategoryOptionCombo.getName.
I don't know exactly why this is, I will let Lars add to it. -- Morten On Wed, Jul 16, 2014 at 3:41 PM, Mansi Singhal <[email protected]> wrote: > Hi, > > We are creating category option combos by posting the following JSON to > /api/metadata. > > { > "categoryOptionCombos": [{ > "id": "cdf922cc47b", > "categoryCombo": { > "name": "A and B", > "id": "abe84f2cf8e" > }, > "name": "(abc, def)", > "categoryOptions": [{ > "id": "z2ab39bcfd7", > "name": "abc" > }, { > "id": "c78bd47f6af", > "name": "def" > }] > }] > } > > When we are trying to GET the category option combos using > /api/categoryOptionCombos, the name we get is inconsistent with every call. > We are getting (abc, def) for some times and (def, abc) some other times. > > Is this the intended behavior? Shouldn't the name retrieved be the same as > the name POSTed as is the case for every other metadata? > > > -- > Regards, > Mansi Singhal > > >
_______________________________________________ Mailing list: https://launchpad.net/~dhis2-devs Post to : [email protected] Unsubscribe : https://launchpad.net/~dhis2-devs More help : https://help.launchpad.net/ListHelp

