• 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
Fetching through snapshot
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fetching through snapshot


  • Subject: Fetching through snapshot
  • From: Markus Ruggiero <email@hidden>
  • Date: Tue, 15 Sep 2015 17:47:42 +0200

I am running into a problem with fetching. As I am away from my desk and all the books for the next couple days I kindly ask here for help:

I fetch data from the database with the standard fetchAll...() method. This properly generates SQL queries delivering the requested data. Now the user manipulates the data and creates new EOs. Basically the user has a list of EOs on the left of the screen and an initially empty list on the right side. So the user picks an entry from the left, clicks a button and the action method creates an EO into the right side list and removes the clicked object (not available any more). Mind you the user does not yet activate save changes. I was under the impression that the call to fetchAll...() takes the created objects into consideration, resulting in the comibination of the db objects and the not yet db objects. But it doesn't work. Any idea how to handle such a case? I need to let the user pick more than one element from one list and remove elements from the other list several times until the user is satisfied with the assignments. Only then will he activate saveChanges(). Do I need to maintain my own in-memory structures that parallel the ec's content?

This is part of a propertyLevel component in an D2W Edit page.

Thanks for suggestions.

---markus---
 _______________________________________________
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: Fetching through snapshot
      • From: Hugi Thordarson <email@hidden>
  • Prev by Date: Re: ERDistribution
  • Next by Date: Re: Fetching through snapshot
  • Previous by thread: Re: ERDistribution
  • Next by thread: Re: Fetching through snapshot
  • Index(es):
    • Date
    • Thread