• 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: ERModernDirectToWeb question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ERModernDirectToWeb question


  • Subject: Re: ERModernDirectToWeb question
  • From: David Holt <email@hidden>
  • Date: Tue, 22 Feb 2011 09:40:38 -0800

Hi Paul,

Please keep messages on the list so others can benefit too.

You set up the delegate class and made a rule for it?

Is the priority of your rule high enough that it is not being overridden? 

What is your qualifierFromSenderMethod?

d

On 2011-02-22, at 9:37 AM, Paul Halliday wrote:

THX

OAN I tried to get the datasource qualified using the wiki method from Ramsey -- but no love.

Paul
On 30-04-2010, at 12:35 PM, David Holt wrote:

WebObjects-Dev Mailing List List <email@hidden>


On 2011-02-22, at 9:34 AM, Paul Halliday wrote:

Thanks David 

This is my first post, in 6 years of using webobjects -- where should I be posting?

Paul
On 30-04-2010, at 12:32 PM, David Holt wrote:

Hi Paul,

I just realized you sent your question to a mailing list that is almost never used. I'll move this thread to the main WebObjects dev list.

David

On 2011-02-22, at 9:21 AM, David Holt wrote:

Hi Paul,

Yes. There are a couple of different ways to do that but I think that the easiest to keep track of is to use a ERDQueryDataSourceDelegateInterface. Ramsey has made extensive notes about that on the wiki: http://wiki.objectstyle.org/confluence/display/WO/D2W+Flow+Control

Here's a simple example I use to make sure that any documents returned by a query are qualified by the working group of the person who is logged in:

  private EOQualifier qualifierFromSender(ERD2WQueryPage sender) {
    WorkingGroup wg = WorkingGroup.wg();
    EOQualifier q = Document.WORKING_GROUP.eq(wg).and(sender.qualifier());
    return q;
  }

And the corresponding rule: 100 : (pageConfiguration = 'QueryEmbeddedDocument' or pageConfiguration = 'QueryNormalDocument') => queryDataSourceDelegate = "my.app.delegates.WorkingGroupDocumentsQueryDataSourceDelegate" [er.directtoweb.ERDDelayedObjectCreationAssignment]

David


On 2011-02-22, at 8:34 AM, Paul Halliday wrote:

Hi

I have a WOLips Project which is leveraging ERModernDirectToWeb. Can I prequalify a dataset for an entity query page? To clarify -- I want to use the power of the Query Page but only search against a predetermined fetch datasource.

Kind regards

Paul Halliday
_______________________________________________
WebObjects-dev mailing list
email@hidden
http://www.omnigroup.com/mailman/listinfo/webobjects-dev

_______________________________________________
WebObjects-dev mailing list
email@hidden
http://www.omnigroup.com/mailman/listinfo/webobjects-dev





 _______________________________________________
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: 
 >Re: ERModernDirectToWeb question (From: David Holt <email@hidden>)

  • Prev by Date: Re: ERModernDirectToWeb question
  • Next by Date: Linux deployment advice
  • Previous by thread: Re: ERModernDirectToWeb question
  • Next by thread: Re: ERModernDirectToWeb question
  • Index(es):
    • Date
    • Thread