• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Remove blank space at the end of all insert/update
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Remove blank space at the end of all insert/update


  • Subject: Re: Remove blank space at the end of all insert/update
  • From: "Morris, Mark" <email@hidden>
  • Date: Thu, 11 Aug 2016 22:45:47 +0000
  • Thread-topic: Remove blank space at the end of all insert/update

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@hidden> 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@hidden> 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@hidden>:
>
> 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@hidden.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/email@hidden
>
> This email sent to email@hidden

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Remove blank space at the end of all insert/update (From: Luiz Alfredo Carrara Bertusso <email@hidden>)
 >Re: Remove blank space at the end of all insert/update (From: Fabian Peters <email@hidden>)
 >Re: Remove blank space at the end of all insert/update (From: Luiz Alfredo Carrara Bertusso <email@hidden>)

  • Prev by Date: Re: ERXKey class
  • Next by Date: Re: Remove blank space at the end of all insert/update
  • Previous by thread: Re: Remove blank space at the end of all insert/update
  • Next by thread: Re: Remove blank space at the end of all insert/update
  • Index(es):
    • Date
    • Thread