Hello,

Instead of writing a custom DataType, you could use an ULCRegularExpressionDataType("AS|DR", "(A|D|S|R)*")) to perform the client side validation.

Regards Marcel

Daniel Grob wrote:
Hi Nishant,


Could you please help me how to write a code implement  all these with
ULCtextfield.
You have three options:
1. use a combo box instead of a text field, the combo box just contains 'AS', 'DR' (and '' if necessary)
2. write a custom data type
=> see http://lists.canoo.com/mailman/private/ulc-premium-support/2008-May/001189.html as an example on how to write a custom data type
3. check on the server-side
  => register a value changed listener and check there for valid input

Option 1 is the simplest and provides the best usability.
Option 2 forces client-side coding and provides medium usability as the user has no hint on what is allowed for valid input. Option 3 is simple but provides the worst usability as the user has feedback on focus lost only.


Regards Dany


On 14.05.2008, at 14:32, Nishant Srivastava wrote:

Hi,


I am writing a program in which I  have to do following validation on a
ULCtextfield

1) ULCTextField should accept a string with length not more than two in
UPPERCASE.
2) The valid values allowed in that ULCtextfield are AS and DR.If user
enters values other than 'AS' and 'DR' alert message should pop up.

Could you please help me how to write a code implement  all these with
ULCtextfield.

Regards
Nishant



Disclaimer: This email (including any attachments) is intended for the sole
use of the recipient/s and may contain material that is CONFIDENTIAL. Any
unauthorized disclosure / copying / distribution or forwarding of this message or part is STRICTLY PROHIBITED. If you have erroneously received this message, please delete it immediately and notify the sender. No liability is assumed for any errors and/or omissions in the contents of this message. Information in this message that does not relate to the official business of this Company shall be understood as neither given nor endorsed by it. If verification is
required please request a hard-copy version.

To know more about Kale Consultants, visit www.kaleconsultants.com

-=-=-=-=-=-=-=-=-=-


_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer

_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer

_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer

Reply via email to