• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: ERRest - problem with baseQualifier not being applied
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ERRest - problem with baseQualifier not being applied


  • Subject: Re: ERRest - problem with baseQualifier not being applied
  • From: Martin Samm <email@hidden>
  • Date: Sat, 23 Jul 2011 17:46:11 +0100

Do you need to escape the equals and quotes on the qualifier?

On 23 Jul 2011 17:18, "Elizabeth Lynch" <email@hidden> wrote:
> My ERREST application has progressed nicely, feeding an iPhone app, and I have a couple more very similar projects to work on over summer.
>
> However, I am experiencing a problem with my baseQualifier not being applied. Code sample:
>
> public class CategoryController extends ERXRouteController {
> ...
> public static EOQualifier baseQualifier() {
> return new EOKeyValueQualifier(Category.RUN_ID_KEY, EOQualifier.QualifierOperatorEqual, runId());
> }
> ...
> public WOActionResults indexAction() {
> NSLog.debug.appendln("indexAction reached " + baseQualifier());
>
> ERXRestFetchSpecification<Category> fetchSpec = new ERXRestFetchSpecification<Category>(Category.ENTITY_NAME, null, baseQualifier(), queryFilter(), null, 25);
> return response(fetchSpec, showFilter());
> }
>
> Query sent:
>
> /ra/category.json?qualifier=parent='1669'
>
> Output:
>
> 14004 [WorkerThread15] DEBUG NSLog - indexAction reached (runId = '20110723:11:50')
>
>
> queryFilter() has the line:
>
> filter.exclude(new ERXKey<String>("runId"));
>
> but removing that line has no effect.
>
>
> The values returned include all Category objects; however, I expected to see only those matching the baseQualifier AND the URL specified qualifier; is this correct? How do I achieve this result?
>
> Liz
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
>
> 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

References: 
 >ERRest - problem with baseQualifier not being applied (From: Elizabeth Lynch <email@hidden>)

  • Prev by Date: ERRest - problem with baseQualifier not being applied
  • Next by Date: Re: ERRest - problem with baseQualifier not being applied
  • Previous by thread: ERRest - problem with baseQualifier not being applied
  • Next by thread: Re: ERRest - problem with baseQualifier not being applied
  • Index(es):
    • Date
    • Thread