[ic] item-alternate - how does it work ????

Ron Phipps interchange-users@interchange.redhat.com
Thu Apr 4 00:49:00 2002


> From: interchange-users-admin@interchange.redhat.com
[mailto:interchange-
> users-admin@interchange.redhat.com] On Behalf Of Alma Nuker
> 
> Thanks Paul.
> 
> No it is not loop or item-list.
> 
> It is simply report table where I am creating some reports using
querly
> list to display some results ie.
> 
> [query type=list more=1 ml=10 sql="select (my select statment here)"]
> 
> [list]
> 
> [/list]
> 
> 
> Etc.........
> 
> 
> I was just trying for clarity of my report to display one row on white
> color one in gray color.
> 
> That is all.
> 
> I tried what Joaxhim suggested:
> 
> [tmp color][/tmp]
> [loop search="
> ...
> "]
> [loop-alternate 2][tmp color] bgcolor="#eeeeee"[/tmp][else][tmp
> backcolor][/tmp][/else][/loop-alternate]
> <tr>
> <td[scratch color]><a href="[loop-code]">[loop-code]</a></TD>
> </tr>
> [/loop]
> 
> But it did not work as I wanted.
> 
> Anyway it is not big deal but I would like to work it out how to do
this
> so I can make it work in future.
> 

Try use the following tags: [sql-alternate 2] [sql-code]
[/sql-alternate], etc since you are using a query 'loop' may not be a
valid prefix for the tag.  'sql' is the default prefix for a query list.

Good luck,
-Ron