Quantcast
Channel: DHIS2 Community - Latest topics
Viewing all articles
Browse latest Browse all 1912

Update one or two datavalues of an event program without affecting other dataValues

$
0
0

Hello,

I tried to update a dataValue in an event program using this code in a JSON file.

{
  "events": [
    {
      "event": "ZwwuwNp6gVd",
      "dataValues": [
        {
          "dataElement": "bx6fsa0t90x",
          "value": "true"
        }
      ],      
      "orgUnit": "y77LiPqLMoq",
      "program": "IpHINAT79UW",
      "programStage": "A03MvHHogjR",
      "status": "ACTIVE"
    }
  ]
}

Yes the dataValue is updated but the other dataValues are erased. How can i update the value of just two or three data elements without affecting the other values?
NB: I am importing the data manually from a JSON file.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 1912

Trending Articles