Re: D2W restrictingFetchSpecification Question
Re: D2W restrictingFetchSpecification Question
- Subject: Re: D2W restrictingFetchSpecification Question
- From: Johnny Miller <email@hidden>
- Date: Sat, 04 May 2013 08:22:10 -1000
Yeah, I'm wondering if there is a way to do a restrictingfetchspecification where I pass in an object at runtime i.e. a session object. I'm going to try to subclass erd2wlistpage and use eoutilities.objectswithfetchspecificationandbindings and create a key in the d2wcontext that I can use for the bindings.
Do you know how to create a nsdictionary from a rule?
Thanks,
Johnny
Sent from my iPad
On May 4, 2013, at 12:32 AM, Theodore Petrosky <email@hidden> wrote:
> Johnny,
>
> So in my Entity Modeler I have a fetchSpecifiction called 'activeUsers' on my Users entity, then in my rules I have:
>
> 110 : (pageConfiguration like '*Embedded*' and propertyKey = 'user') => restrictingFetchSpecification = "activeUsers" [com.webobjects.directtoweb.Assignment]
>
> my popup contains only the list from the fethchSpecification.
>
> does that help?
>
> Ted
>
>
> --- On Fri, 5/3/13, Tim Worman <email@hidden> wrote:
>
>> From: Tim Worman <email@hidden>
>> Subject: Re: D2W restrictingFetchSpecification Question
>> To: "Johnny Miller" <email@hidden>
>> Cc: "WebObjects-Dev Apple" <email@hidden>
>> Date: Friday, May 3, 2013, 11:19 PM
>> 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
>>
_______________________________________________
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