Re: EOModel: retrieving tableattributes
Re: EOModel: retrieving tableattributes
- Subject: Re: EOModel: retrieving tableattributes
- From: Kaj Hejer <email@hidden>
- Date: Mon, 15 Sep 2003 23:35:45 +0200
At 22:42 +0200 15-09-2003, jacques couzteau wrote:
hello,
i want to display a table of variable width that represents the
contents of a databasetable. the user should be able to choose which
coloums of the table he wants to see. There fore i want to retrieve
the attributes of my table instead of hardcoding them.
How can i retrieve the names of the attributes of EOmodel? What's
the name of the Object that represents my databasetable? I suppose
it is an NSDictionary and i can use the properties() method to
retrueve an NSArray of attributes.
Hi!
It seems that EOEntity has a method named attributes that returns the
attributes for that entity.
F.x.
EOModelGroup.defaultGroup().entityNamed("MyTable).attributes()
-Kaj :)
--
____________________________________________________________________________
Center for Information Technology Services, University of Oslo, Norway
e-mail: email@hidden
WWW: http://folk.uio.no/kajh/
_______________________________________________
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.