Re: How To Check Attribute's Width Programmatically?
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.