• 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: EOModel: retrieving tableattributes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: EOModel: retrieving tableattributes
      • From: jacques couzteau <email@hidden>
References: 
 >EOModel: retrieving tableattributes (From: jacques couzteau <email@hidden>)

  • Prev by Date: Re: ready made message board
  • Next by Date: Re: upload file transfer speed?
  • Previous by thread: EOModel: retrieving tableattributes
  • Next by thread: Re: EOModel: retrieving tableattributes
  • Index(es):
    • Date
    • Thread