Re: restrictingFetchSpecification questions
Re: restrictingFetchSpecification questions
- Subject: Re: restrictingFetchSpecification questions
- From: David Holt <email@hidden>
- Date: Wed, 13 Feb 2013 09:50:16 -0800
The restrictingFetchSpecification is applied to your query. Any clients returned should be in that set.
Try a full search and see if you get what you're expecting.
On 2013-02-13, at 9:44 AM, Theodore Petrosky <email@hidden> wrote:
> thanks Ramsey for the point in the right thinking direction. so I am starting to experiment.
>
> I created a fetchSpec on my Entity 'currentClients' and in the Qualifier section added 'isActive = true' (also tried 'isActive = 1')
>
> saved it and I see in the _Client.java the added methods:
>
> public static NSArray<com.as.Model.Client> fetchCurrentClients(EOEditingContext editingContext, NSDictionary<String, Object> bindings) {
> EOFetchSpecification fetchSpec = EOFetchSpecification.fetchSpecificationNamed("currentClients", _Client.ENTITY_NAME);
> fetchSpec = fetchSpec.fetchSpecificationWithQualifierBindings(bindings);
> return (NSArray<com.as.Model.Client>)editingContext.objectsWithFetchSpecification(fetchSpec);
> }
>
> I added a rule:
>
> 102 : (pageConfiguration like 'Query*' and propertyKey = 'client') => restrictingFetchSpecification = "currentClients" [com.webobjects.directtoweb.Assignment]
>
> I found when I examined the cheat sheet for the component that the key was restrictingFetchSpecification
>
> i was hoping for it either working or if not at least a warning about unknown keys or such. Obviously, there is something missing as there is no error generated.
>
> How about a clue?
>
> Ted
>
>
> _______________________________________________
> 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