• 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
restrictingFetchSpecification questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

restrictingFetchSpecification questions


  • Subject: restrictingFetchSpecification questions
  • From: Theodore Petrosky <email@hidden>
  • Date: Wed, 13 Feb 2013 09:44:47 -0800 (PST)

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

  • Follow-Ups:
    • Re: restrictingFetchSpecification questions
      • From: David Holt <email@hidden>
  • Prev by Date: Re: Any interest in WOWODC recordings on DVDs?
  • Next by Date: Re: restrictingFetchSpecification questions
  • Previous by thread: Re: wiki.wocommunity.org server down ?
  • Next by thread: Re: restrictingFetchSpecification questions
  • Index(es):
    • Date
    • Thread