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

Re: Adding a filter to a D2W list page


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

Right. Ignore last post.

I simply check the "frame". D2W sets the pagewrapper to
"D2WEmptyWrapper" if frame=1. I can't see where frame is set to 1 (and
why its not a boolean) but presumably must be something clever within
embedded components.

Therefore, I use

*true* => templateNameForQueryPage = "RSDBQueryPage"  [0]
frame=1   =>  templateNameForQueryPage = "RSDBFilterPage"   [5]

To choose between the proper query page and a query page designed for
filtering a list as an embedded component.

However, I'm still unsure how to find out the pageConfiguration
outside of the embedded component....

Mark

2009/11/5 Mark Wardle <email@hidden>:
> 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
>



--
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: Ramsey Lee Gurley <email@hidden>
References: 
 >Adding a filter to a D2W list page (From: Mark Wardle <email@hidden>)

  • Prev by Date: Re: Deploying App built with Eclipse - where did the .CMD go?
  • Next by Date: Re: Frameworks and Subcomponents
  • Previous by thread: Adding a filter to a D2W list page
  • Next by thread: Re: Adding a filter to a D2W list page
  • Index(es):
    • Date
    • Thread