• 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: Ramsey Lee Gurley <email@hidden>
  • Date: Thu, 05 Nov 2009 07:29:35 -0500


On Nov 5, 2009, at 4:44 AM, Mark Wardle wrote:

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

Interesting. I didn't know about frame=1. As for knowing which pageConfiguration frames you, I'm not sure how or even if that's a good idea. I just tell the embedded query what config it is with the pageConfiguration binding.


ERD2WQuery {
...
pageConfiguration = d2wContext.embeddedFilterConfiguration;
}

or somesuch.

Ramsey


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:
@mac.com


This email sent to email@hidden

Attachment: smime.p7s
Description: S/MIME cryptographic signature

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

  • Prev by Date: Re: EOModels occasionally loading too slowly?
  • Next by Date: Re: problem with build ant file
  • Previous by thread: Re: Adding a filter to a D2W list page
  • Next by thread: Re: Adding a filter to a D2W list page
  • Index(es):
    • Date
    • Thread