Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Filtering an array of EO objects in D2J (getting the data source)



JP, just for your information, I'm still working on this filtering thing. It is like the proverbial maze, where you go down one passage after another discovering that each one is a dead end - or leads you back to the start.

It is wearing me out, but I am still enjoying discovering all these little pieces of the puzzle.

At this stage I have discovered that you can only set an auxiliary qualifier on an EODatabaseDataSource (or EODistributedDataSource) but I now realise I am working with a EODetailDataSource.

I have also discovered the EODataSourceFactory, but its method to set the auxiliary qualifier also didn't work.

It's really weird - it's like there is no way to put an additional qualifier on a detail data source, yet if I add a qualifier statically to the EOModel it works just how I want it to. If I could only figure out how to do it programmatically. I am now looking at subclassing EODetailDataSource to see if I can do anything there.

Ray.

PS I also found that the data source appeared the next time I went into the relevant view. It was creating it at the stage of getting the data, and kept the same source for future objects. So I could probably just create my own as you mention, but this doesn't look like it will be of any help unless I can figure out this auxiliary qualifier in any case.


On 29/11/2003, at 23:16, Jean Pierre Malrieu wrote:

Ray,

If you can't solve your dataSource problem (but you probably will), you can build your editingContext and dataSource yourself.
Write a (or several) provider method in your controller class, and write a rule setting the provider method.


JP.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Filtering an array of EO objects in D2J (getting the data source) (From: Jean Pierre Malrieu <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.