• 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: assigning relationship in willInsert()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: assigning relationship in willInsert()


  • Subject: Re: assigning relationship in willInsert()
  • From: Ramsey Gurley <email@hidden>
  • Date: Wed, 11 Feb 2015 15:21:33 -0700

I don’t see Person or EventBook in this model, but it’s mentioned in your code. Seems like you’re leaving out something important.

On Feb 11, 2015, at 2:15 PM, Theodore Petrosky <email@hidden> wrote:

what I am trying to accomplish is assign to the entity Event all the Books that are assigned to the show. 

so    Event toOne Show toMany Book

When I create a new Event, I assign the Show and a Date.

Person current() is a boolean and true means he gets assigned to a book? Can there be more than one Person who is current() for a show/event/book/the whole person table?? What is in EventBook? 

I think what’s happening here is D2W builds an app based on your model, but your model doesn’t properly reflect what you are trying to capture.

Perhaps you should have a schema like

Event
->Show
->>EventDetail
-Date

EventDetail
->Person
->Book
->Event

Then your report is just listing this detail table grouped by event date. When you create an event, that is the Master object and these are the details. So your D2W layout could look like

QueryEvent: D2WQuery so you can query by date ranges
SelectEvent: D2WSelect (D2WPick for multiple events) so you can choose which event(s) are reported
EventDetail: D2WGroupingList grouped by event.date

Or just query and list events grouped by date, then have a nested list for Person and/or Book in that table.

Or something else.

TL;DR, if you’re fighting D2W, your model probably stinks :-)


 _______________________________________________
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: 
 >assigning relationship in willInsert() (From: Theodore Petrosky <email@hidden>)
 >Re: assigning relationship in willInsert() (From: Theodore Petrosky <email@hidden>)
 >Re: assigning relationship in willInsert() (From: Chuck Hill <email@hidden>)
 >Re: assigning relationship in willInsert() (From: Theodore Petrosky <email@hidden>)
 >Re: assigning relationship in willInsert() (From: Chuck Hill <email@hidden>)
 >Re: assigning relationship in willInsert() (From: Timothy Worman <email@hidden>)
 >Re: assigning relationship in willInsert() (From: Theodore Petrosky <email@hidden>)
 >Re: assigning relationship in willInsert() (From: Chuck Hill <email@hidden>)
 >Re: assigning relationship in willInsert() (From: Ramsey Gurley <email@hidden>)
 >Re: assigning relationship in willInsert() (From: Theodore Petrosky <email@hidden>)

  • Prev by Date: Re: assigning relationship in willInsert()
  • Next by Date: EOModeler, search with Array
  • Previous by thread: Re: assigning relationship in willInsert()
  • Next by thread: Re: assigning relationship in willInsert()
  • Index(es):
    • Date
    • Thread