• 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
FW: Model wierdness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FW: Model wierdness


  • Subject: FW: Model wierdness
  • From: "Yury Peskin" <email@hidden>
  • Date: Wed, 26 Mar 2008 17:13:57 -0500

List,

I have a weird model issue.

When I load the database in my application some entities show up double.

For example, I load a projectDisplayGroup and I only want to see projects that are not complete.

In my (oh so appropriately named) viewProjects class constructor, I do the following:

 

Integer status = new Integer(2);

NSMutableArray args = new NSMutableArray();

args.addObject(status);

EOEditingContext ec= session().defaultEditingContext();

EOQualifier qual = EOQualifier.qualifierWithQualifierFormat(“status != %@”, args);

EOFetchSpecification spec = new EOFetchSpecification(“Project”, qual, null);

spec.setRefreshesRefetchedObjects(true);

EODatabaseDataSource ds = (EODatabaseDataSource)projectDisplayGroup.dataSource();

ds.setFetchSpecification(spec);

projectDisplayGroup.fetch();

 

My database does not have any duplicates in it, but my viewProjects page shows a duplicate entries as can be seen by the screen shots I’ve attached.

Anybody have any ideas on what could be causing the problem?

Thank you in advance,

Yury Peskin

 

Attachment: model.pdf
Description: Adobe PDF document

Attachment: projectDisplayGroup.pdf
Description: Adobe PDF document

Attachment: dataproject.pdf
Description: Adobe PDF document

 _______________________________________________
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: FW: Model wierdness
      • From: Stefan Klein <email@hidden>
  • Prev by Date: [ANN] JBND Update
  • Next by Date: Multiple EOModels
  • Previous by thread: [ANN] JBND Update
  • Next by thread: Re: FW: Model wierdness
  • Index(es):
    • Date
    • Thread