Re: D2W restrictingFetchSpecification Question
Re: D2W restrictingFetchSpecification Question
- Subject: Re: D2W restrictingFetchSpecification Question
- From: Tim Worman <email@hidden>
- Date: Sat, 04 May 2013 11:39:58 -0700
Hey Johnny:
You probably have more D2W experience than me. But I thought the query source delegate worked any time the entity in question was requested. Depending on what package your query delegate is in it seems a session object could be passed to the delegate - or via ERXThreadStorage?
Tim
On May 3, 2013, at 9:34 PM, Johnny Miller <email@hidden> wrote:
> Hi Tim,
>
> Do you think it's possible to use the query source delegate with a list page?
>
> I don't see how you can use a delegate with the list page - do you know how?
>
> I'm thinking I might have to override the setupPhase method in my subclass of ERD2WListPage and create something similar to the extraRestrictingQualifier key.
>
> Thanks,
>
> Johnny
>
>
>
> On May 3, 2013, at 5:19 PM, Tim Worman <email@hidden> wrote:
>
>> Hi Johnny:
>>
>> I haven't used the restrictingFetchSpecification before. But I have used a query data source delegate that implements ERDQueryDataSourceDelegateInterface. There's an example on the wiki on the wiki in the D2W flow control article. You may already know about that option - but throwing it out just in case.
>>
>> http://wiki.wocommunity.org/display/documentation/D2W+Flow+Control
>>
>> Tim
>>
>> On May 3, 2013, at 8:12 PM, Johnny Miller <email@hidden> wrote:
>>
>>> Hi,
>>>
>>> I want to add an automatic qualifier binding to a number of my list pages.
>>>
>>> And I'm just not quite getting how to use the restrictingFetchSpecification key.
>>>
>>> If I want my qualifier to be based upon an object in my session how do I create the qualifier? I see that I can put a variable in the qualifier that gets created in the EOModel but how do I tell D2W to substitute the variable with my session object at runtime?
>>>
>>> Thanks in advance,
>>>
>>> Aloha,
>>> Mr. Johnny Miller
>>> Web Development Manager
>>> Kahalawai Media Company
>>> Lahaina, HI 96761
>>> tel: (808) 661-7962 | mobile: (808) 283-0791
>>> website | e-mail
>>>
>>> _______________________________________________
>>> 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
>>
>
_______________________________________________
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