dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #35941
Re: Editing the code in the option sets
Hi Jose,
we actually don't plan to allow this.
As you said, earlier we use name both as the saved value in the database
and the display property. This did not work out so well, since people
wanted to have multiple names pointing to the same database value (code),
translation of names, be able to change the name after you had captured
data and so on. So we introduced a code. The only viable automatic upgrade
path was to set code = name.
The reason for not allowing edits to codes is that data which is already
captured using that code will the "disappear".
Now the way to do this is through SQL directly against the database. First
you change the code, then you change existing data values in the database
to match the new code. This requires some care not to mess things up;) I am
sure we can help you with this.
regards,
Lars
References