Skip to main content
Open

Fields by default should Trim leading and trailing empty spaces when user tries to save a record

Related products:Software FactoryUniversal GUI
Dennis van Leeuwen
Rafal Zaluski
mperrott
+7
  • Dennis van Leeuwen
    Dennis van Leeuwen
  • Frank Junger
  • Rafal Zaluski
    Rafal Zaluski
  • mperrott
    mperrott
  • antonn_a
  • dcharalampous
  • phpetrou
  • FrankS
    FrankS
  • Shawn Adrian Diño
  • Jason Philip A Mortera
  • Spyros.Neofytou
  • Mark_Plaggenborg

Fields by default should Trim leading and trailing empty spaces when user tries to save a record.

 

Did this topic help you find an answer to your question?

4 replies

Mark Jongeling
Administrator
Forum|alt.badge.img+23

Automatic trimming is maybe not always desired, although I would like to have auto-trim at all times. It could be something that we can give as option/setting in the Software Factory.

Creating Default procedure code for the column that have been specified to be 'Auto-trim’=1 for example.


Trimming leading and trailing empty spaces is actually the normal and default thing to do. I’ve never noticed an application allow the user to add fields with leading and/or trailing empty spaces. For example when someone tries to create a new email address or a new username or even adding a name (e.g. if i accidentally write ‘  Spyros’) or even creating a new filename or folder in Windows. In the very rare occasion I want to allow a user to add Leading or Trailing empty spaces then i could set that up manually, but the default would be to trim the empty Leading and Trailing spaces.

Please note that i initially added this as a bug (ticket 1611).


Mark Jongeling
Administrator
Forum|alt.badge.img+23
Updated idea status NewOpen

I do like the idea that the GUI could already take care of some TRIM functionality, but would also in addition have it prevent resulting in an empty string instead of NULL.

Even better if this would count as a mandatory field not being filled as well, so the user is already blocked by the GUI instead of having to apply certain logic to prevent such data.

As mentioned it might need to be an option one can disable on specific fields.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings