• 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: Qualifier With Primary Key
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Qualifier With Primary Key


  • Subject: Re: Qualifier With Primary Key
  • From: Pascal Robert <email@hidden>
  • Date: Thu, 18 Aug 2011 09:43:24 -0400


Le 2011-08-18 à 09:35, Kevin Hinkson a écrit :

Hi,
Since the best practice is to not make primary keys class properties, how do I then create a qualifier that is based on the primary key of an EO?

Simple Eg: A blog site has nice, short bookmark-able URLs like http://website.com/blog?id=5 where 5 is the primary key. When the user hits that page then I would need to lookup the blog entry by the primary key.

I'm not answering your question, but your URL should be /blog/title-of-post instead of using primary keys, to have even nicer URLs and better rank on Google. Are you using DirectActions or ERRest's HTML routing?

I've looked at accessing primary keys via (http://wiki.objectstyle.org/confluence/display/WO/EOF-Using+EOF-Primary+Keys) but it only solves accessing the primary key for an EO you already have.

What's the best approach in this situation? 


— K.R.H.

PS: I encountered WO/ERXDisplayGroup and ERXFlickrBatchNavigation for the first time yesterday. I think I'm in love.
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
  • Follow-Ups:
    • Re: Qualifier With Primary Key
      • From: Kevin Hinkson <email@hidden>
References: 
 >Qualifier With Primary Key (From: Kevin Hinkson <email@hidden>)

  • Prev by Date: Re: Qualifier With Primary Key
  • Next by Date: Re: Qualifier With Primary Key
  • Previous by thread: Re: Qualifier With Primary Key
  • Next by thread: Re: Qualifier With Primary Key
  • Index(es):
    • Date
    • Thread