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

Re: DistinctRows


  • Subject: Re: DistinctRows
  • From: "Jonathan Fleming" <email@hidden>
  • Date: Tue, 04 Mar 2003 02:31:51 +0000

now I've confused myself...
Yeah, there might be several rows in the database with the same navPageName, one of which might be named "Home" with unique content in the navPageContent attribute and a status of 03 and visibility set to "on"
another might be also be named "Home" with unique content in the navPageContent attribute and a status of 04 and visibility set to "on"
and again, there might be yet another row with the navPageName of "Home" with unique content in the navPageContent attribute and a status of 04 and visibility set to "off"



But having though about this, maybe I have the database setup wrong, as I said TbNavPage is a stand alone table/entity. should I realistically be setting up a oneToMany senario here by creating another table related to TbNavePage? I didn't think I had to but it's looking like I might need to...
What do you think now Art?


Jonathan





From: Art Isbell <email@hidden>
To: email@hidden
Subject: Re: DistinctRows
Date: Mon, 3 Mar 2003 15:07:21 -1000

On Monday, March 3, 2003, at 02:54  PM, Jonathan Fleming wrote:

But if that's the case, you wouldn't normally want to eliminate some of the objects from the popup button list. Something's missing from this picture. Jonathan?

I don't know what... give me an idea

What is this popup button supposed to be selecting? Its list is apparently an array of TBNavPages fetched from the DB with no qualifier - i.e., all TBNavPages. Yet more than one TBNavPage can have the same navPageName value. This is difficult to understand. But assuming there's a good reason for this, the popup button selection will be a TBNavPage yet you want to eliminate from the popup button TBNavPages with the same navPageName. By so doing, you're eliminating certain TBNavPages from being potentially selected. How can that be the right thing to do?


If the popup button is supposed to select a navPageName, not a TBNavPage, then make its list an array of unique navPageNames (NSSet can do this for you).

Art
http://homepage.mac.com/aisbell/
_______________________________________________
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.


_________________________________________________________________
Stay in touch with absent friends - get MSN Messenger http://messenger.msn.co.uk
_______________________________________________
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: DistinctRows
      • From: Arturo PĂ©rez <email@hidden>
  • Prev by Date: Re: [webobjects-newbies] WOPopUpButton Used For A Search
  • Next by Date: Re: DistinctRows
  • Previous by thread: Re: DistinctRows
  • Next by thread: Re: DistinctRows
  • Index(es):
    • Date
    • Thread