• 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: Displaying attributes derived from relationships in D2W
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Displaying attributes derived from relationships in D2W


  • Subject: Re: Displaying attributes derived from relationships in D2W
  • From: Denis Stanton <email@hidden>
  • Date: Tue, 27 Jan 2004 16:19:36 +1300

On Tuesday, January 27, 2004, at 02:48 PM, Steve Sharman wrote:

I have two EO entities, Person and EmailAddress. I have a relationship:

Person <-->> EmailAddress

which in Person is called emailAddress. What I want to be able to do
is to modify the Person List page in D2W in order to display the email
addresses for the selected Persons in the list. When I start the
Assistant  to modify the Person List page, I select the "Properties"
tab, which appears as it is shown in the Apple documentation. I can
see the +emailAddress relationship in the left hand column. What I'm
expecting to be able to then do is click on that, and see the
attributes and relationships of the entity pointed to in the next
column along - and I don't see this. All I see is what looks like a
set of functions - +@avg, +@count, and so on. No attributes or
relationships - although if I click one of these,

Since there are potentially many email addresses for one person the emailAddress (if you look closely it might be the incorrectly assumed plural emailAddresss) the relationship cannot point to one record. It points instead to an array and you are seeing the functions that you can perform on that array, like count(). If you want to display ALL the emailAdrress(es) for a Person you need to connect the relationship to the List binding of a Repetition. Then you can display each individual emailAddress from the array.


I haven't used D2W for years so I'm sorry if I am not putting this into quite the right words.

Denis
_______________________________________________
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: Displaying attributes derived from relationships in D2W
      • From: Steve Sharman <email@hidden>
References: 
 >Fwd: Displaying attributes derived from relationships in D2W (From: Steve Sharman <email@hidden>)

  • Prev by Date: WOComponent template method
  • Next by Date: Re: 5.2.2 problems
  • Previous by thread: Fwd: Displaying attributes derived from relationships in D2W
  • Next by thread: Re: Displaying attributes derived from relationships in D2W
  • Index(es):
    • Date
    • Thread