• 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: NSDictionary and FetchSpecificationNamed usage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDictionary and FetchSpecificationNamed usage


  • Subject: Re: NSDictionary and FetchSpecificationNamed usage
  • From: Dev WO <email@hidden>
  • Date: Wed, 19 Oct 2005 23:09:03 +0200

Assuming you have an order, and a properly defined EOModel, your several steps are

    /* @TypeInfo OrderItem */
    NSMutableArray items = order.items();

Done, update your item counts and saveChanges.

I fact I'm starting from a provisioning for a specific product.
So I though about going all the way up from this product and create an array of item of this product which aren't fully provisioned order by the order date.
Then affect the stock and order quantity.
But I maybe I should go from the order and finds all the product of type "product" and then...
I'm not sure it makes that much different.
I still have some "vision" bugs in my head;) it gets better thought:)




I don't fully understand what you're doing. But if you have a path from your Provision object to your Item object you can write a fetchspec that acts something like

Provision.orders.items.quantity = 0

that will get all the Provisions that include unfulfilled items.

I've got this relationship.
I'll work a little more on that before asking further question if I can't find it. You already gave me good advice and sample:)
Thanks Arturo


Xavier

_______________________________________________
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: NSDictionary and FetchSpecificationNamed usage
      • From: Chuck Hill <email@hidden>
References: 
 >NSDictionary and FetchSpecificationNamed usage (From: Dev WO <email@hidden>)
 >Re: NSDictionary and FetchSpecificationNamed usage (From: Arturo Perez <email@hidden>)
 >Re: NSDictionary and FetchSpecificationNamed usage (From: Dev WO <email@hidden>)
 >Re: NSDictionary and FetchSpecificationNamed usage (From: Arturo Perez <email@hidden>)
 >Re: NSDictionary and FetchSpecificationNamed usage (From: Dev WO <email@hidden>)
 >Re: NSDictionary and FetchSpecificationNamed usage (From: Arturo Perez <email@hidden>)

  • Prev by Date: Re: Set String methods for Flattened Relationship Attributes
  • Next by Date: Re: Localizing time
  • Previous by thread: Re: NSDictionary and FetchSpecificationNamed usage
  • Next by thread: Re: NSDictionary and FetchSpecificationNamed usage
  • Index(es):
    • Date
    • Thread