Model wierdness

"Yury Peskin" <[email protected]>
Newsgroups gmane.comp.web.webobjects.devel
Message-ID <[email protected]>
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

_______________________________________________
WebObjects-dev mailing list
[email protected]
http://www.omnigroup.com/mailman/listinfo/webobjects-dev
model.pdf (application/pdf, 61.1 KB) - not displayed
projectDisplayGroup.pdf (application/pdf, 24 KB) - not displayed
dataproject.pdf (application/pdf, 16.4 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.