Option to trim trailing spaces from database character fields

I think it would be a useful feature to have an option to automatically trim trailing spaces from database data-source character fields. The option could be added to the data-source definition. I’m not too worried about the default but I suspect ‘yes’ would be the most useful.

Thank you, Mark.

Hello, please take a look at this thread post:
https://forums.smartclient.com/forum/wishlist/5108-form-item-trim?p=241094#post241094

Hi @claudiobosticco,

I did not know that a Validator can also easily manipulate the value, that’s good to know. Thanks.
For the OP I don’t think this will help, as the problem comes from this thread and there the DB will always fill the column with trailing spaces at ADD/UPDATE.

Best regards
Blama

Hi @Blama yes it’s a useful feature, I use several SimpleTypes to do trim, capitalize, uppercase, etc

Thank you all, I will keep this in mind. I guess if I were a purist, then I might say that validators shouldn’t really change the value of what they are validating :wink:

Mark,