[Issue] - Saving an attribute with option set

Hi,

We are using DHIS 2.25 versions. Every option set has a value type and it is a mandatory field. When we create an attribute and assign an option set to it (without setting any value type for the attribute), the value type of option set is considered as the value type of the attribute. Also, looks like updating the value type of the attribute is not possible as it’s greyed out once we assign an option set. when we try to save this attribute, we get an error saying - “Missing Required property - ValueType”. Please find the screenshot below depicting the issue.

However, what works is - we first assign a value type to the attribute (which is the same as the value type of option set), then assign the option set to the attribute. Then we’re able to save the attribute.

Is this the expected behaviour? If not, could you please help fix it.

image

Cheers,

···

Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks

Hi,

Could you please provide any updates on this issue?

Cheers,

image

···

On Wed, Oct 26, 2016 at 11:19 AM, Archana Chillala archanac@thoughtworks.com wrote:

Hi,

We are using DHIS 2.25 versions. Every option set has a value type and it is a mandatory field. When we create an attribute and assign an option set to it (without setting any value type for the attribute), the value type of option set is considered as the value type of the attribute. Also, looks like updating the value type of the attribute is not possible as it’s greyed out once we assign an option set. when we try to save this attribute, we get an error saying - “Missing Required property - ValueType”. Please find the screenshot below depicting the issue.

However, what works is - we first assign a value type to the attribute (which is the same as the value type of option set), then assign the option set to the attribute. Then we’re able to save the attribute.

Is this the expected behaviour? If not, could you please help fix it.

Cheers,

Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks

Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks

Hey Archana,

This is not expected behaviour, will look into the issue.

image

···

On Tue, Nov 8, 2016 at 12:03 PM, Archana Chillala archanac@thoughtworks.com wrote:

Hi,

Could you please provide any updates on this issue?

Cheers,


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

Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks

On Wed, Oct 26, 2016 at 11:19 AM, Archana Chillala archanac@thoughtworks.com wrote:

Hi,

We are using DHIS 2.25 versions. Every option set has a value type and it is a mandatory field. When we create an attribute and assign an option set to it (without setting any value type for the attribute), the value type of option set is considered as the value type of the attribute. Also, looks like updating the value type of the attribute is not possible as it’s greyed out once we assign an option set. when we try to save this attribute, we get an error saying - “Missing Required property - ValueType”. Please find the screenshot below depicting the issue.

However, what works is - we first assign a value type to the attribute (which is the same as the value type of option set), then assign the option set to the attribute. Then we’re able to save the attribute.

Is this the expected behaviour? If not, could you please help fix it.

Cheers,

Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks

Regards,

Mark Polak

Software developer, DHIS 2

University of Oslo

http://www.dhis2.org

mark@dhis2.org

Hey Archana,

This should be adjusted in the latest 2.25 version of the maintenance app.

image

···

On Tue, Nov 8, 2016 at 5:09 PM, Mark Polak mark@dhis2.org wrote:

Hey Archana,

This is not expected behaviour, will look into the issue.

On Tue, Nov 8, 2016 at 12:03 PM, Archana Chillala archanac@thoughtworks.com wrote:

Hi,

Could you please provide any updates on this issue?

Cheers,


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

Regards,

Mark Polak

Software developer, DHIS 2

University of Oslo

http://www.dhis2.org

mark@dhis2.org

Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks

On Wed, Oct 26, 2016 at 11:19 AM, Archana Chillala archanac@thoughtworks.com wrote:

Hi,

We are using DHIS 2.25 versions. Every option set has a value type and it is a mandatory field. When we create an attribute and assign an option set to it (without setting any value type for the attribute), the value type of option set is considered as the value type of the attribute. Also, looks like updating the value type of the attribute is not possible as it’s greyed out once we assign an option set. when we try to save this attribute, we get an error saying - “Missing Required property - ValueType”. Please find the screenshot below depicting the issue.

However, what works is - we first assign a value type to the attribute (which is the same as the value type of option set), then assign the option set to the attribute. Then we’re able to save the attribute.

Is this the expected behaviour? If not, could you please help fix it.

Cheers,

Archana Chillala
Application Developer
Email
archanac@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks

Regards,

Mark Polak

Software developer, DHIS 2

University of Oslo

http://www.dhis2.org

mark@dhis2.org