You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Alexander Gabriel <al...@barbalex.ch> on 2011/08/24 21:02:59 UTC

filtering a list

Hi

This must be a very dumb question.
The definitive guide says, lists filter like views.
For views it gives this
example: /blog/_design/docs/_view/by_date?key="2009/01/30 18:04:11"
Why does this list not filter by User?: window.open(path +
'_list/BeobExport/BeobListe?User="' + User + '"');

Thanks for help

Alex

Re: filtering a list

Posted by Alexander Gabriel <al...@barbalex.ch>.
Hi Dennis

That did it. I hadn't known that you can only sort and filter by key.

Thanks a lot!



2011/8/24 Dennis Clark <db...@gmail.com>

> A list is a function that transforms view output (into, say, xml or csv or
> something). Parameters are either used by your list function or processed
> by
> the view, which you can only sort by key. So if BeobExport had user as its
> key, you'd say ?key="<user>".
>
> On Wed, Aug 24, 2011 at 3:02 PM, Alexander Gabriel <al...@barbalex.ch>
> wrote:
>
> > Hi
> >
> > This must be a very dumb question.
> > The definitive guide says, lists filter like views.
> > For views it gives this
> > example: /blog/_design/docs/_view/by_date?key="2009/01/30 18:04:11"
> > Why does this list not filter by User?: window.open(path +
> > '_list/BeobExport/BeobListe?User="' + User + '"');
> >
> > Thanks for help
> >
> > Alex
> >
>

Re: filtering a list

Posted by Dennis Clark <db...@gmail.com>.
A list is a function that transforms view output (into, say, xml or csv or
something). Parameters are either used by your list function or processed by
the view, which you can only sort by key. So if BeobExport had user as its
key, you'd say ?key="<user>".

On Wed, Aug 24, 2011 at 3:02 PM, Alexander Gabriel <al...@barbalex.ch> wrote:

> Hi
>
> This must be a very dumb question.
> The definitive guide says, lists filter like views.
> For views it gives this
> example: /blog/_design/docs/_view/by_date?key="2009/01/30 18:04:11"
> Why does this list not filter by User?: window.open(path +
> '_list/BeobExport/BeobListe?User="' + User + '"');
>
> Thanks for help
>
> Alex
>