• 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: trimming text before save???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: trimming text before save???


  • Subject: Re: trimming text before save???
  • From: Musall Maik <email@hidden>
  • Date: Sun, 07 Jul 2013 09:21:54 +0200

Am 07.07.2013 um 09:13 schrieb Theodore Petrosky <email@hidden>:

> Where do you put this logic?

Use the "String (RTRIM)" Data Type in the EOModel?

Trim it in the setter method of the component?

> I want to trim() text before it is saved to the backend. In the past I would put an accessor method on my EO that returned the associated text trimmed. But I thought I would ask.
>
> Do you trim before you save or handle it after the fact? I have cases that after a text area has been edited 100 times over  months/years, there may be quite a few extra cr/lfs at the end of the text. This makes formatting pdfs in Jasper Reports unhappy.

In any case I would trim it before save. Less stuff to store, less processor cycles to spend overall.

Maik


 _______________________________________________
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: 
 >trimming text before save??? (From: Theodore Petrosky <email@hidden>)

  • Prev by Date: trimming text before save???
  • Next by Date: Re: trimming text before save???
  • Previous by thread: trimming text before save???
  • Next by thread: Re: trimming text before save???
  • Index(es):
    • Date
    • Thread