• 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: How To Check Attribute's Width Programmatically?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How To Check Attribute's Width Programmatically?


  • Subject: Re: How To Check Attribute's Width Programmatically?
  • From: Kaj Hejer <email@hidden>
  • Date: Thu, 5 Feb 2004 23:59:55 +0100

At 17:07 -0500 05-02-04, email@hidden wrote:
I realize you can set and get attributes of an entity or table programmatically (using either takeValueForKey or valueForKey())




Hi!

We use the following method for doing this:

public static int attributeLength(String entityName, String attributeName) {
try {
return EOModelGroup
.defaultGroup()
.entityNamed(entityName)
.attributeNamed(attributeName)
.width();
} catch (Exception e) {
return 0;
}
}



-Kaj :) _______________________________________________ webobjects-dev mailing list | email@hidden Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • add java file in WOLips
      • From: "WebObjects EMail" <email@hidden>
References: 
 >How To Check Attribute's Width Programmatically? (From: email@hidden)

  • Prev by Date: Re: How To Check Attribute's Width Programmatically?
  • Next by Date: postings to this list delayed, time shifted and repeated
  • Previous by thread: Re: How To Check Attribute's Width Programmatically?
  • Next by thread: add java file in WOLips
  • Index(es):
    • Date
    • Thread