Convert character to upper case

Help is preferred to those who publish their work as Open Source and not as private branches rejecting collaboration. Such projects are not maintainable and shall be deleted.
Forum rules
This forum is personally pruned to avoid redundant posts. Related topics are grouped together. IF YOU HAVE REGISTERED, you need to send email to red1(a)red1.org with your username in the subject title to get me to activate you.

Convert character to upper case

Postby nmicoud » Fri Aug 31, 2012 2:55 pm

Hi,

I was asked to customize AD_User.Name field in order to only authorize uppercase characters.
Means that 'caps lock' is always on for this field.
If user write 'nicolas' on his keyboard, he should see 'NICOLAS' on the field.

So, i try to play with VFormat (on AD_Column), but didn't manage to get what i want.
If I put 'OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO', every character is automatically converted but cursor is not the same as others fields, backspace is not working...

Is there another way to do it ?
I think it should be handled when saving, but I don't like to modify what users wrote...

Any idea ?

Thanks,


Nicolas
nmicoud
Regular
 
Posts: 137
Joined: Fri Oct 07, 2011 6:19 pm

Re: Convert character to upper case

Postby globalqss » Wed Sep 05, 2012 12:30 pm

Nicolas, VFormat can solve it, but that is just for swing, not implemented on zk.

I would do that using a callout and/or beforeSave model validator.

Regards,

Carlos Ruiz
globalqss
Senior
 
Posts: 599
Joined: Thu Dec 29, 2005 4:15 am
Location: Bogotá, Colombia

Re: Convert character to upper case

Postby nmicoud » Wed Sep 05, 2012 5:25 pm

I have tested in swing mode.
Will use a callout and beforeSave.

Thanks,

Nicolas
nmicoud
Regular
 
Posts: 137
Joined: Fri Oct 07, 2011 6:19 pm


Return to HELP ME!!!

Who is online

Users browsing this forum: No registered users and 1 guest

cron