Hi Paul,

Please keep messages on the list so others can benefit too.

You set up the delegate class and made a rule for it?

Is the priority of your rule high enough that it is not being overridden? 

What is your qualifierFromSenderMethod?

d

On 2011-02-22, at 9:37 AM, Paul Halliday wrote:

> THX
> 
> OAN I tried to get the datasource qualified using the wiki method from Ramsey 
> -- but no love.
> 
> Paul
> On 30-04-2010, at 12:35 PM, David Holt wrote:
> 
>> WebObjects-Dev Mailing List List <[email protected]>
>> 
>> 
>> On 2011-02-22, at 9:34 AM, Paul Halliday wrote:
>> 
>>> Thanks David 
>>> 
>>> This is my first post, in 6 years of using webobjects -- where should I be 
>>> posting?
>>> 
>>> Paul
>>> On 30-04-2010, at 12:32 PM, David Holt wrote:
>>> 
>>>> Hi Paul,
>>>> 
>>>> I just realized you sent your question to a mailing list that is almost 
>>>> never used. I'll move this thread to the main WebObjects dev list.
>>>> 
>>>> David
>>>> 
>>>> On 2011-02-22, at 9:21 AM, David Holt wrote:
>>>> 
>>>>> Hi Paul,
>>>>> 
>>>>> Yes. There are a couple of different ways to do that but I think that the 
>>>>> easiest to keep track of is to use a ERDQueryDataSourceDelegateInterface. 
>>>>> Ramsey has made extensive notes about that on the wiki: 
>>>>> http://wiki.objectstyle.org/confluence/display/WO/D2W+Flow+Control
>>>>> 
>>>>> Here's a simple example I use to make sure that any documents returned by 
>>>>> a query are qualified by the working group of the person who is logged in:
>>>>> 
>>>>>   private EOQualifier qualifierFromSender(ERD2WQueryPage sender) {
>>>>>     WorkingGroup wg = WorkingGroup.wg();
>>>>>     EOQualifier q = Document.WORKING_GROUP.eq(wg).and(sender.qualifier());
>>>>>     return q;
>>>>>   }
>>>>> 
>>>>> And the corresponding rule: 100 : (pageConfiguration = 
>>>>> 'QueryEmbeddedDocument' or pageConfiguration = 'QueryNormalDocument') => 
>>>>> queryDataSourceDelegate = 
>>>>> "my.app.delegates.WorkingGroupDocumentsQueryDataSourceDelegate" 
>>>>> [er.directtoweb.ERDDelayedObjectCreationAssignment]
>>>>> 
>>>>> David
>>>>> 
>>>>> 
>>>>> On 2011-02-22, at 8:34 AM, Paul Halliday wrote:
>>>>> 
>>>>>> Hi
>>>>>> 
>>>>>> I have a WOLips Project which is leveraging ERModernDirectToWeb. Can I 
>>>>>> prequalify a dataset for an entity query page? To clarify -- I want to 
>>>>>> use the power of the Query Page but only search against a predetermined 
>>>>>> fetch datasource.
>>>>>> 
>>>>>> Kind regards
>>>>>> 
>>>>>> Paul Halliday
>>>>>> _______________________________________________
>>>>>> WebObjects-dev mailing list
>>>>>> [email protected]
>>>>>> http://www.omnigroup.com/mailman/listinfo/webobjects-dev
>>>>> 
>>>>> _______________________________________________
>>>>> WebObjects-dev mailing list
>>>>> [email protected]
>>>>> http://www.omnigroup.com/mailman/listinfo/webobjects-dev
>>>> 
>>> 
>> 
> 

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to