• 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: first attempt at many to many
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: first attempt at many to many


  • Subject: Re: first attempt at many to many
  • From: Jesse Tayler <email@hidden>
  • Date: Mon, 15 Apr 2013 10:30:19 -0400

seems like adding user's to a relationship is a fine way to add them to the email recipients because it's easy to fetch them from the Project when you need to send email.

I would bet there is a handy component someone has created already, but the method behind your checkbox component is simply going to add or remove the selected User (from your repetition) from the Project that I'd guess is the selected object of that page.

sounds like you would not want to use any correlation table (union?), that's more like many-to-many e.g. Users and Groups might have a Membership table in between, etc.

I'm also guessing that someone (Ramsey?) might have already created such a component and handily added this to WOnder and I'm unaware of it.

I'd look at the to-many relationship components to find whatever is there and I'd bet you'll find one.




On Apr 15, 2013, at 10:15 AM, Theodore Petrosky <email@hidden> wrote:

> Are there any examples of working with a many to many relationship in a D2W app? I need to figure this out.
>
> I have and entity Project and an entity User. My client has asked that I add a function to allow them to choose which User(s) will get an email if the Project gets changed. Of course now it is on a project by project basis!!!
>
> So I thought I would create a many to many relationship, then each project would be populated with the users that could get an email. The each user list had a 'isSelecteToReceiveEmail' check box. but I dont understand where this value is stored?
>
> Is it in the ProjectUser 'union' table? I was under the impression that I don't touch this table.
>
> of course I could just make a textarea and have them type in a comma separated list of email addresses.
> _______________________________________________
> 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


 _______________________________________________
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: 
 >first attempt at many to many (From: Theodore Petrosky <email@hidden>)

  • Prev by Date: first attempt at many to many
  • Next by Date: Re: first attempt at many to many
  • Previous by thread: first attempt at many to many
  • Next by thread: Re: first attempt at many to many
  • Index(es):
    • Date
    • Thread