[Zope] How to set an 'index' in batch display?
dvl
dvl <dvl@wanadoo.nl>
Tue, 19 Mar 2002 13:01:06 +0100
Hello Dieter, thanks for responding.
> You bind the query result to a name and search through it for your
> image.
a method name?
> It's better to do this in a Python Script than in DTML.
I was afraid of that
> In DTML, you would use "REQUEST.set('index', index+1)" to count
> while moving through your sequence.
Yes, thanks
> > How can i set that index in the lines
> > <dtml-in expr="Query(date=(_.str(date)))" size=1 start=qs>
> > <dtml-in expr="Query(date=(_.str(date)))" next size=1 start=qs>
> > Things like 'start=im' etc don't seem to work here.
> That should work.
Are you sure? 'im' is a string like 'n6c121'. The 'index' from above
works though.
To redirect to another method with appropriate parameters for date
and start=index seems to work, more or less.
cheers, Dirk