• 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: limiting a fetch in a D2W list page
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: limiting a fetch in a D2W list page


  • Subject: Re: limiting a fetch in a D2W list page
  • From: Ramsey Gurley <email@hidden>
  • Date: Sat, 12 May 2012 09:25:40 -0700

On May 12, 2012, at 6:24 AM, Theodore Petrosky wrote:

> The documentation at D2W+Flow+Control seems to say that I can create a 'delegate' copying what is there and create a rule that ties my entity to it.
>
> as there is no additional qualifier in:
>
> private EOQualifier qualifierFromSender(ERD2WQueryPage sender) {
> 	EOQualifier q = sender.qualifier();
> 		// q = ... create your OR qualifier here
>
> 	NSLog.out.appendln("       *in the delegate     " + q );
>
> 	return q;
> }
>
> I only get the NSLog message when I enter the advanced search area. I assumed with a delegate assigned to the entity, that whenever I viewed the entity, the delegate would fire. It doesn't fire if I just click the "Find" button (so the delegate is not used). I have to stop assuming.

Interesting. I thought that worked. Try setting the auxiliaryQualifier instead of the qualifier on your database datasource. Does that help?

>
> also interesting 'ERDDelayedObjectCreationAssignment' doesn't exist as a class to choose in the RuleModeler.

Copy paste :)

>
> Lastly, how can I get the session method user() to compare to?

sender.session().valueForKey("user")?

>
> What am I missing?
>
> Ted
>
> --- On Fri, 5/11/12, Ramsey Gurley <email@hidden> wrote:
>
>> From: Ramsey Gurley <email@hidden>
>> Subject: Re: limiting a fetch in a D2W list page
>> To: "Theodore Petrosky" <email@hidden>
>> Cc: email@hidden
>> Date: Friday, May 11, 2012, 4:14 PM
>> http://wiki.wocommunity.org/display/WO/D2W+Flow+Control
>>
>> See ERDQueryDataSourceDelegateInterface for Query pages. I
>> don't think that works for the QueryAll page, but you could
>> possibly use an editing context delegate in that case.
>>
>> Ramsey
>>
>>
>> On May 11, 2012, at 1:00 PM, Theodore Petrosky wrote:
>>
>>> my d2w app has a session user. when a user selects a
>> tab, my MainNavigationController fires a method to create
>> the list page.
>>>
>>> the method creates an EODatabaseDataSource and then a
>> fetch spec that limits the result to rows that were created
>> by THIS user.
>>>
>>> ERXFetchSpecification<KickOffBrief> fs = new
>> ERXFetchSpecification<KickOffBrief>(KickOffBrief.ENTITY_NAME,
>> ERXQ.equals(KickOffBrief.IS_FILED_KEY,
>> false).and(KickOffBrief.PERSON.eq(session().user())),
>> null);
>>>
>>> How can I add the user qualification to the D2W created
>> search query? Or when I am on a QueryKickOffBrief page, how
>> do I add the and(KickOffBrief.PERSON.eq(session().user())
>> qualifier to the resultant page?
>>>
>>> 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


 _______________________________________________
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: limiting a fetch in a D2W list page
      • From: Theodore Petrosky <email@hidden>
References: 
 >Re: limiting a fetch in a D2W list page (From: Theodore Petrosky <email@hidden>)

  • Prev by Date: Re: limiting a fetch in a D2W list page
  • Next by Date: JQueryMobile Fall 2012
  • Previous by thread: Re: limiting a fetch in a D2W list page
  • Next by thread: Re: limiting a fetch in a D2W list page
  • Index(es):
    • Date
    • Thread