Hi Luiz, One step closer might be to use a StringHelper class, so that you can define directly in your .wo the fields on which you want whitespace trimmed.
See <https://wiki.wocommunity.org/display/documentation/WOOGNL+Helper+Functions> for more info. Hope this helps! Mark On Aug 11, 2016, at 4:47 PM, Luiz Alfredo Carrara Bertusso <[email protected]<mailto:[email protected]>> wrote: Thank you for your answer, this solves if I manually use it, but is there a way to automatically remove the blank spaces? Em 11 de ago de 2016 09:52, "Fabian Peters" <[email protected]<mailto:[email protected]>> escreveu: Hi Luiz, Have a look at this method in ERXEOControlUtilities: /** * Trims all values from string attributes from the given EO unless the EO itself * or the string attribute is flagged as read-only. * * @param object the EO whose string attributes should be trimmed */ public static void trimSpaces(EOEnterpriseObject object) { Fabian > Am 11.08.2016 um 14:32 schrieb Luiz Alfredo Carrara Bertusso > <[email protected]<mailto:[email protected]>>: > > Hello, nowadays people can use mobile versions of websites and most of them > use the autocomplete function or the swipe one, the problem is both of them > add a blank space after the words that come from them. > The problem is blank spaces at the end of data is not a wished thing, is > there some property that can automatically remove blank spaces (somethink > lika a trim) before inserting/updating data in database? > Thanks > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list > ([email protected]<mailto:[email protected]>) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/webobjects-dev/lists.fabian%40e-lumo.com<https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.apple.com_mailman_options_webobjects-2Ddev_lists.fabian-2540e-2Dlumo.com&d=DQMFaQ&c=BNNF-YNv0CLLslhP2Bcx5Q&r=R0ZqsewJs3eSJk7vLCqZv0r5kJlLXQLnGTeg9t8MlqA&m=7V8CZ-kp0Ctztu_gcqOlPqAoKip2WYITeSeyJpM_B7w&s=Wk0628AUQv_DHZUj5DfPePCYvDWNz48u1pZXAuYxai8&e=> > > This email sent to [email protected]<mailto:[email protected]> _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]<mailto:[email protected]>) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/mark.morris%40experian.com This email sent to [email protected]
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
