Importing large lists of optionvalues v2.21

Hi all - this is hopefully an easy one.
I’m trying to import bunch of items (500 or so) into an optionSet. Was hoping to use the Import-Export UI with a CSV as per the developer guide but this doesn’t work (keeps trying to import them as dataelements)

I must be doing something silly …

I can’t find an API endpoint for this either.

Any ideas?

Thansk

···

Pierre Dane

Jembi Health Systems

Software Development Manager

tel: +27 (0)21 701 0939

cel: +27 (0)83 680 8274

email: pierre@jembi.org

web: www.jembi.org

Hi Pierre,
Are you sure you selected the right type of object to import?

Regards,

Jason

image

···

On Thu, Mar 17, 2016 at 3:10 PM, Pierre Dane pierre@jembi.org wrote:

Hi all - this is hopefully an easy one.
I’m trying to import bunch of items (500 or so) into an optionSet. Was hoping to use the Import-Export UI with a CSV as per the developer guide but this doesn’t work (keeps trying to import them as dataelements)

I must be doing something silly …

I can’t find an API endpoint for this either.

Any ideas?

Pierre Dane

Jembi Health Systems

Software Development Manager

tel: +27 (0)21 701 0939

cel: +27 (0)83 680 8274

email: pierre@jembi.org

web: www.jembi.org

Thansk


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

Jason P. Pickering
email: jason.p.pickering@gmail.com
tel:+46764147049

Thanks Jason.

I’m not seeing that option in v2.21 or below …

Is it new in 2.22?

Pierre

image

···

On Thu, Mar 17, 2016 at 4:13 PM, Jason Pickering jason.p.pickering@gmail.com wrote:

Hi Pierre,
Are you sure you selected the right type of object to import?

Regards,

Jason

On Thu, Mar 17, 2016 at 3:10 PM, Pierre Dane pierre@jembi.org wrote:

Hi all - this is hopefully an easy one.
I’m trying to import bunch of items (500 or so) into an optionSet. Was hoping to use the Import-Export UI with a CSV as per the developer guide but this doesn’t work (keeps trying to import them as dataelements)

I must be doing something silly …

I can’t find an API endpoint for this either.

Any ideas?

Pierre Dane

Jembi Health Systems

Software Development Manager

tel: +27 (0)21 701 0939

cel: +27 (0)83 680 8274

email: pierre@jembi.org

web: www.jembi.org

Thansk


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

Jason P. Pickering
email: jason.p.pickering@gmail.com
tel:+46764147049

Pierre Dane

Jembi Health Systems

Software Development Manager

tel: +27 (0)21 701 0939

cel: +27 (0)83 680 8274

email: pierre@jembi.org

web: www.jembi.org

That could be the case. You should be able to able to import then through the normal Metadata importer, but you will need to transform your CSV to either JSON or XML.

image

···

On Thu, Mar 17, 2016 at 4:13 PM, Jason Pickering jason.p.pickering@gmail.com wrote:

Hi Pierre,
Are you sure you selected the right type of object to import?

Regards,

Jason


Pierre Dane

Jembi Health Systems

Software Development Manager

tel: +27 (0)21 701 0939

cel: +27 (0)83 680 8274

email: pierre@jembi.org

web: www.jembi.org

On Thu, Mar 17, 2016 at 3:10 PM, Pierre Dane pierre@jembi.org wrote:

Hi all - this is hopefully an easy one.
I’m trying to import bunch of items (500 or so) into an optionSet. Was hoping to use the Import-Export UI with a CSV as per the developer guide but this doesn’t work (keeps trying to import them as dataelements)

I must be doing something silly …

I can’t find an API endpoint for this either.

Any ideas?

Pierre Dane

Jembi Health Systems

Software Development Manager

tel: +27 (0)21 701 0939

cel: +27 (0)83 680 8274

email: pierre@jembi.org

web: www.jembi.org

Thansk


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

Jason P. Pickering
email: jason.p.pickering@gmail.com
tel:+46764147049