XML Data import

Dear programmers;

I am trying to use XML data import to import data in my DHIS2 database but i do not know which variable to use in my XML file so as to track record creation date and lastupdate date. As the system does when using Dataset (the image below shows the difference of the two approaches).

Anyone with solution to this will be much appreciated.

image

Regards

Charles

Hi Charles,

You don’t have to include any values for those two fields - they will be filled automatically.

Knut

image

···

On Sat, Jan 24, 2015 at 2:00 PM, Charles Bundu rwige1@gmail.com wrote:

Dear programmers;

I am trying to use XML data import to import data in my DHIS2 database but i do not know which variable to use in my XML file so as to track record creation date and lastupdate date. As the system does when using Dataset (the image below shows the difference of the two approaches).

Anyone with solution to this will be much appreciated.

Regards

Charles


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

Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

Dear Knut

That is the approach I used in my XML file and still I don’t get values for the field.

How can I trigger the automation in XML?

Regards

Charles

image

···

On Sat, Jan 24, 2015 at 2:00 PM, Charles Bundu rwige1@gmail.com wrote:

Dear programmers;

I am trying to use XML data import to import data in my DHIS2 database but i do not know which variable to use in my XML file so as to track record creation date and lastupdate date. As the system does when using Dataset (the image below shows the difference of the two approaches).

Anyone with solution to this will be much appreciated.

Regards

Charles


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


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

Hi Charles,

In general, it should work to just mimick an export. Below is what I got from the demo:

<?xml version="1.0" encoding="UTF-8"?>

-

image

···

On Sat, Jan 24, 2015 at 2:40 PM, Charles Bundu rwige1@gmail.com wrote:

Dear Knut

That is the approach I used in my XML file and still I don’t get values for the field.

How can I trigger the automation in XML?

Regards

Charles

On 24 Jan 2015 16:32, “Knut Staring” knutst@gmail.com wrote:

Hi Charles,

You don’t have to include any values for those two fields - they will be filled automatically.

Knut


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

On Sat, Jan 24, 2015 at 2:00 PM, Charles Bundu rwige1@gmail.com wrote:

Dear programmers;

I am trying to use XML data import to import data in my DHIS2 database but i do not know which variable to use in my XML file so as to track record creation date and lastupdate date. As the system does when using Dataset (the image below shows the difference of the two approaches).

Anyone with solution to this will be much appreciated.

Regards

Charles


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


Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

Hi Charles,

what version of dhis are you on?

Lars

Hello Lars

I am using Version 2.16

I have not tested Knut’s suggestion (of including lastUpdate) yet because i am a bit far from my laptop.

Regards

Charles

···

On Sat, Jan 24, 2015 at 8:02 PM, Lars Helge Øverland larshelge@gmail.com wrote:

Hi Charles,

what version of dhis are you on?

Lars