• 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
Adding a filter to a D2W list page
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Adding a filter to a D2W list page


  • Subject: Adding a filter to a D2W list page
  • From: Mark Wardle <email@hidden>
  • Date: Thu, 5 Nov 2009 09:32:25 +0000

Hi all,

Leading on from previous posts, I'm adding a query component to a list page.

I have embedded a ERD2WQuery component into the page like this:

Query: ERD2WQuery {
	entityName = d2wContext.entity.name;
	displayKeys = d2wContext.queryAttributes;
	queryDataSource = displayGroup.dataSource;
	action = displayGroup.fetch;
}

And it works perfectly.

I was surprised to see that this embedded component was magically
using my custom querypage. I don't understand how it does this,
despite tracking all the rules in use. I've gone rather cross-eyed
thinking about it quite frankly...  How on earth does it strip out the
pagewrapper etc. to do this? I had assumed that ERD2WQuery would
itself switch between different embedded components but somehow it
uses page-level components?

I wish to customise the component to use. I've tried setting
pageConfiguration like "List*" but it seems D2W must set the
pageConfiguration to "QueryXXXX" for this embedded component. Which
rules can I use to determine whether we are an embedded component and
what kind of page we're embedded in?

Thanks,

Mark



--
Dr. Mark Wardle
Specialist registrar, Neurology
Cardiff, UK
 _______________________________________________
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: Adding a filter to a D2W list page
      • From: Mark Wardle <email@hidden>
  • Prev by Date: problem with build ant file
  • Next by Date: Re: Deploying App built with Eclipse - where did the .CMD go?
  • Previous by thread: Re: problem with build ant file
  • Next by thread: Re: Adding a filter to a D2W list page
  • Index(es):
    • Date
    • Thread