[ic] another loop question

Tim Böckers interchange-users@interchange.redhat.com
Thu Apr 25 18:06:00 2002


On Thursday 25 April 2002  5:12 pm, you wrote:
> > This seems so simple, but here I am 2 hours later and still cant get it
> > to work..
> >
> > [loop
> >           random=1
> >           search="
> >                   fi=testimonials
> >                   st=db
> >                   ra=yes
> >                   ml=1000
> >           "]
> >
> > I thought the way to call out the value of the field was:
> > [value FIELDNAME]
> >
> > But then I also found in the docs:
> > [loop-field FIELDNAME]
> >
> > [/loop]
> >
> > I cant get either to work.  Where am I going wrong?
> >
> >   _
>
> [loop-field foo] should work. Is testimonials a table with the "info"
> inside of it? Also, did you define the table in dbconf/. and restart?
>
> Paul
>
and comes the "doh" moment...
you'd need to specify your returnfields, don't you?

ie.
[loop
	random=1
	search="
		fi=testimonials
		st=db
		ra=yes
		rf=foo,code
"]

tim