• 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: Get the external width of an EO attribute
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Get the external width of an EO attribute


  • Subject: Re: Get the external width of an EO attribute
  • From: Dov Rosenberg <email@hidden>
  • Date: Mon, 23 Mar 2009 09:20:50 -0400
  • Thread-topic: Get the external width of an EO attribute

Title: Re: Get the external width of an EO attribute
We aware of double byte character strings. If you do HTML validation on the front end make sure to check the number of bytes in the string.

Dov


On 3/23/09 4:52 AM, "Amiel Montecillo" <email@hidden> wrote:

Thanks Hugi, this works too. :)

Cheers,
Amiel

On Mon, Mar 23, 2009 at 4:50 PM, Hugi Thordarson <email@hidden> wrote:
int width = EOUtilities.entityNamed( ec, "Person" ).attributeNamed( "name" ).width();

:)

- hugi

// Hugi Thordarson
// http://hugi.karlmenn.is/




On 23.3.2009, at 08:38, Amiel Montecillo wrote:

Hi List,

I have an EO called Person with an attribute name that has an external width of 64.

How do I get the external wdith (64) for this property in validateName(String name) method?

I noticed from the docs that EOAttribute has a width() method but I can't seem to connect the dots how I can acquire this.

Any help is grreatly appreciated.

Thanks,
Amiel
 _______________________________________________
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: 
 >Re: Get the external width of an EO attribute (From: Amiel Montecillo <email@hidden>)

  • Prev by Date: Re: Downgrading WebObjects from 54 to 52
  • Next by Date: Re: Downgrading WebObjects from 54 to 52
  • Previous by thread: Re: Get the external width of an EO attribute
  • Next by thread: WebObjects, Java and CalDAV
  • Index(es):
    • Date
    • Thread