Sending Data Values

Hello

I am running 2.14 version build 13793.

My challenge is when I send data values, I can not view the data values through the data Entry Form. This is because ‘attributeoptioncomboid’ value is not correct. Where the attributeoptioncomboid value come from? I know the correct value, what modification do I need to make in the xml file to send the correct value? The lastupdated value is also Null, how can I send lastupdated data value?

Attached please find a sample xml file and data table. The rows stored by ‘zalongwa’ were imported through XML file. Hence the problematic ones.

  <dataValueSet xmlns="http://dhis2.org/schema/dxf/2.0" dataSet="pBOMPrpg1QX"
completeDate="2012-02-03" period="201201" orgUnit="DiszpKrYNg8">
<dataValue dataElement="f7n9E0hX8qk" value="12"/>
</dataValueSet>

Actions
dataelementid
periodid
sourceid
categoryoptioncomboid
attributeoptioncomboid
value
storedby
lastupdated
comment
followup
Edit
Delete

2602

7418

1028

2144

15

1
3029804P
2013-11-07 00:00:00
NULL
FALSE

Edit
Delete

2602

7418

1028

2145

15

0
3029804P
2013-11-07 00:00:00
NULL
FALSE

Edit
Delete

2602

7418

1028

2146

15

6
3029804P
2013-11-07 00:00:00
NULL
FALSE

Edit
Delete

2602

7418

1028

2147

15

5
3029804P
2013-11-07 00:00:00
NULL
FALSE

Edit
Delete

2602

7418

449

2144

15

2
zalongwa
NULL
NULL
FALSE

Edit
Delete

2602

7418

449

2145

15

4
zalongwa
NULL
NULL
FALSE

Edit
Delete

2602

7418

449

2146

15

1
zalongwa
NULL
NULL
FALSE

Edit
Delete

2602

7418

449

2147

15

1
zalongwa
NULL
NULL
FALSE

Edit
Delete

2602

7418

1036

2144

15

5
6001267Q
2013-11-19 00:00:00
NULL
FALSE

Edit
Delete

2602

7418

1036

2145

15

8
6001267Q
2013-11-19 00:00:00
NULL
FALSE

Edit
Delete

2602

7418

1036

2146

15

2
6001267Q
2013-11-19 00:00:00
NULL
FALSE


You can add categoryOptionCombo="ID" to this element.. You can find the IDs
on server/api/categoryOptionCombos, that will add the correct
categoryOptionCombo.. and not use the default one (which will not show up
in forms)

···

On Sun, Mar 2, 2014 at 11:34 AM, Juma Lungo <jlungo@yahoo.com> wrote:

<dataValue dataElement="f7n9E0hX8qk" value="12"/>

--
Morten

Great!

You saved my day.

Lungo

···

On Sunday, March 2, 2014 7:46 AM, Morten Olav Hansen mortenoh@gmail.com wrote:

On Sun, Mar 2, 2014 at 11:34 AM, Juma Lungo jlungo@yahoo.com wrote:

You can add categoryOptionCombo=“ID” to this element… You can find the IDs on server/api/categoryOptionCombos, that will add the correct categoryOptionCombo… and not use the default one (which will not show up in forms)


Morten