• 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: D2W: Pattern for complex object creation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: D2W: Pattern for complex object creation


  • Subject: Re: D2W: Pattern for complex object creation
  • From: Ramsey Gurley <email@hidden>
  • Date: Thu, 29 Mar 2012 17:00:33 -0700


On Mar 29, 2012, at 4:57 PM, Paul Hoadley wrote:

Hi guys,

David, I'll look at your solution shortly, but Ramsey's here was closer to what I was envisaging.

On 30/03/2012, at 9:57 AM, David Holt wrote:

On 2012-03-29, at 4:23 PM, Ramsey Gurley wrote:

More than one way to skin a cat here.  I'd probably just set up a wizard.

step 1, choose a practice with an ERD2WEditToOneRelationship that filters the list to only practices with billables that have no invoice.

I would move Step 3 into Step 1, only because I want the date to be part of the filter on Billables.  (I might be running a couple of days behind on the Invoice, and already have new Billables for the current month.  It really needs another "cutoff date" attribute, probably doesn't even need to be persisted, as opposed to the "date on the invoice".  But that's a detail I can work out.)

Yeah, if date makes sense first, then that's better. You can then filter your practice list by date, then your billables list by practice and date. Both toOne and toMany components look for a restrictedChoiceKey.


step 2, choose billables form a filtered list for that practice with an ERD2WEditToManyRelationship component.

Oh, OK, I was thinking about it incorrectly for some reason, figuring I had to populate the Billables relationship from within Invoice itself after date and practice had been set.

Can you use information entered in Step one to inform step two?

Presumably I've set Invoice.date and Invoice.practice in Step 1, and I can use those values in Step 2?  I'll try it and report back.


-- 
Paul Hoadley
http://logicsquad.net/




 _______________________________________________
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

  • Follow-Ups:
    • Re: D2W: Pattern for complex object creation
      • From: Paul Hoadley <email@hidden>
References: 
 >D2W: Pattern for complex object creation (From: Paul Hoadley <email@hidden>)
 >Re: D2W: Pattern for complex object creation (From: Ramsey Gurley <email@hidden>)
 >Re: D2W: Pattern for complex object creation (From: Paul Hoadley <email@hidden>)
 >Re: D2W: Pattern for complex object creation (From: Ramsey Gurley <email@hidden>)
 >Re: D2W: Pattern for complex object creation (From: David Holt <email@hidden>)
 >Re: D2W: Pattern for complex object creation (From: Paul Hoadley <email@hidden>)

  • Prev by Date: Re: D2W: Pattern for complex object creation
  • Next by Date: Re: D2W: Pattern for complex object creation
  • Previous by thread: Re: D2W: Pattern for complex object creation
  • Next by thread: Re: D2W: Pattern for complex object creation
  • Index(es):
    • Date
    • Thread