← Back to team overview

dhis2-devs team mailing list archive

Re: [Bug 612866] [NEW] Can't name dael, dael-group, dataset, ind in Vietnamese characters

 

NOTE >>OK, just as a test, I changed it to this..

I did this just as a test. My point is that I do not really understand
why we cannot have certain characters in data element names. I assume
there is some logic, behind it, but I am not sure what.


My point is that it DOES make sense to me to forbid certain
characters, namely double and trailing spaces. However, if people want
numbers, then they should be able to have them.

This really gets back to my blueprint about flexible field-level
validation. Implementers should be able to decide (within the
capabilities of the system) what a given field should look like. Some
people might want more specific name for data element, or a numeric
code to be  there. These things could be encoded in a user-defined
regular expression, and then validated by the system.


Hope this helps to clarify my point.

Regards,
Jason


On Tue, Aug 3, 2010 at 4:12 PM, Knut Staring <knutst@xxxxxxxxx> wrote:
> Why not numbers?
>
> On Aug 3, 2010 12:05 PM, "jason.p.pickering" <612866@xxxxxxxxxxxxxxxxxx>
> wrote:
>
> OK, just as a test, I changed it to this..
>
> return this.optional(element) || !(/[\d+!#&]$/i.test(value));
>
> So, i do NOT want anything with numbers, pluses, exclamation marks,
> hashes or amperstands. Forgot to add double spaces..anyway. I guess
> there are probably more characters to be excluded.
>
> I was able to store the data element name sans problem.
>
> Might be a work around. That JavaScript library might have license
> issues (MIT).
>
> Maybe try server side validation and see where you get.
>
> Regards,
> Jason
>
>
> On Tue, Aug 3, 2010 at 2:39 PM, Jason Pickering
>
> <jason.p.pickering@xxxxxxxxx> wrote:
>> Another option would be perhaps to try exclude what we do NOT...
>
> --
> Can't name dael, dael-group, dataset, ind in Vietnamese characters
> https://bugs.launchpad.net/bugs/612866
> You received this bug notification because you are a member of DHIS 2
> India Developers, which is subscribed to DHIS.
>
> Status in DHIS 2 - District Health Information Software: New
>
> Bug description:
> based on the latest DHIS2 source-code on Aug 3rd 2010
> It's impossible to name a dael, dael-group, dataset, ind... with Unicode characters
> (currently can use/borrow TRANSLATE function of dael, dael-group, dataset,... to name them in Unicode characters instead)
>
>
>


-- 
Jason P. Pickering
email: jason.p.pickering@xxxxxxxxx
tel:+17069260025

-- 
Can't name dael, dael-group, dataset, ind in Vietnamese characters
https://bugs.launchpad.net/bugs/612866
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.

Status in DHIS 2 - District Health Information Software: New

Bug description:
based on the latest DHIS2 source-code on Aug 3rd 2010
It's impossible to name a dael, dael-group, dataset, ind... with Unicode characters
(currently can use/borrow TRANSLATE function of dael, dael-group, dataset,... to name them in Unicode characters instead)





References