dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #25940
Re: [Bug 1247890] Re: New field type required to ensure the format of the data
Hi Knut and Sharada
This is still the case in 2.13 and good to see someone else is seeing a
need for this!
Although what Sharada is requesting for is a bit different I think than the
blueprint you mentioned, but nonetheless related. I think the case here is
that a dynamic data type, which is user definable in a sense, needs to be
created. Right now, these are hardcoded as integer, negative integer,
positive integer, etc. And all of these different types basically use a
regular expression to validate their type, since in the database,
everything is stored as text. Seems to be a useful feature, but having a
server side mechanism to do the validation is the first step in my mind.
Regards,
Jason
On Mon, Nov 4, 2013 at 10:50 PM, Knut Staring <knutst@xxxxxxxxx> wrote:
> https://blueprints.launchpad.net/dhis2/+spec/regex-validation
>
> ** Changed in: dhis2
> Status: New => Invalid
>
> --
> You received this bug notification because you are a member of DHIS 2
> developers, which is subscribed to DHIS.
> https://bugs.launchpad.net/bugs/1247890
>
> Title:
> New field type required to ensure the format of the data
>
> Status in DHIS 2:
> Invalid
>
> Bug description:
> There doesn’t seem to be a way to check the structure of each field
> beyond field type (number, text, date). For example, ensuring ANC
> number is formatted as ###/##/## or is a particular length. Validation
> rule does not allow users to create an expression which checks if the
> input is well-formed or has a particular format-type.
>
> DHIS Live Version: 2.11
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/dhis2/+bug/1247890/+subscriptions
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help : https://help.launchpad.net/ListHelp
>
Follow ups
References