Re: Adding a filter to a D2W list page
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 13:54:58 +0000
Ah! That is much simpler and robust!
Thank you,
mark
On Thursday, November 5, 2009, Ramsey Lee Gurley <email@hidden> wrote:
>
>
> 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:
>
> This email sent to email@hidden
>
>
>
--
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