• 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: Creating a Detail Interface for the To-Many Relationship
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating a Detail Interface for the To-Many Relationship


  • Subject: Re: Creating a Detail Interface for the To-Many Relationship
  • From: Bruce Smith <email@hidden>
  • Date: Fri, 16 Feb 2007 13:03:17 -0600

Thanks David, that is extremely helpful and thanks for all of your time. 

On Feb 16, 2007, at 11:24 AM, David Holt wrote:

Hi Bruce,

I don't have the time to continue exploring this with you today, but to answer your question, I have used detail data sources when passing an object from one component to the next. For example, you can select an object from a displayGroup on one page and set it as the master object of a master/detail displayGroup on the following page. If you don't have the detail data source, you don't see the binding for masterObject in WOBuilder. In truth, I expect that following the paths to the attribute you want to display as I showed in the example yesterday makes the Master/Detail configuration unnecessary. 

Having said that, my guess is that the tutorial would have worked fine with a normal to-many relationship. The example in the tutorial contains a model that is more complicated than I usually use because of the accessible attribute "roleName" in the join entity MovieRole (normally I would just have the two foreign keys in the join table and leave it as an artifact in the database). Having MovieRole as an object arbitrarily seems to change the Entity type of your WODisplayGroup as you select different Master and Detail entities. I haven't seen this behaviour before and it doesn't seem to be logical.

As an experiment, you could try and make a simple EOModel with Teacher and Class entities and see if the tutorial example works for that.

Teacher {id, firstName, lastName}
Class {id, subject, fk_teacher_id}
to-many Teacher to Classes

You could try dragging the classes relationship to the WOComponent in WOBuilder (which should create a classesDisplayGroup) and go from there...

David

On 16 Feb 2007, at 6:39 AM, Bruce Smith wrote:

what exactly is "Has detail data source" for?


The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material.  If the reader of this message is not the intended recipient,
you are hereby notified that your access is unauthorized, and any review,
dissemination, distribution or copying of this message including any
attachments is strictly prohibited.   If you are not the intended
recipient, please contact the sender and delete the material from any
computer.
 _______________________________________________
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

References: 
 >Creating a Detail Interface for the To-Many Relationship (From: Bruce Smith <email@hidden>)
 >Re: Creating a Detail Interface for the To-Many Relationship (From: David Holt <email@hidden>)
 >Re: Creating a Detail Interface for the To-Many Relationship (From: Bruce Smith <email@hidden>)
 >Re: Creating a Detail Interface for the To-Many Relationship (From: David Holt <email@hidden>)

  • Prev by Date: Re: WebObjects 5.3.3: Behavior change with WOComponent.synchronizesVariablesWithBindings()?
  • Next by Date: Re: WebObjects 5.3.3: Behavior change with WOComponent.synchronizesVariablesWithBindings()?
  • Previous by thread: Re: Creating a Detail Interface for the To-Many Relationship
  • Next by thread: WebObjects 5.3.3 released
  • Index(es):
    • Date
    • Thread