Home > Contents > Index >
Template Tags TOC | Alpha TOC | Tag Family TOC | Purpose TOC | Annotated TOC | Index
ics:copylist
Creates a copy of the specified list.
Syntax
<ics:copylist to="new list" from="list"/>Parameters
to (required)
- Name of the list created as a result of the copy.
from
- Source list.
Description
The
ics:copylist
tag creates a copy of the specified list. The column values for the current row can be retrieved by using theics:listget
tag.You can use the following attributes as the
fieldname
parameter of theics:listget
tag to return information about the list:
#curRow
Retrieves the current row number.#numCols
Retrieves the number of columns in the list.#numRow
Retrieves the number of rows in the list.errno
The possible values of
errno
include:
Value Description -505 List copy error.Example
The following example selects all rows from the NewPortalArticle table and stores them in PortalArticles. PortalArticles is copied to Articles and headline from each row in Articles is displayed.
<ics:selectto from="NewPortalArticle" what="*" list="PortalArticles"/> <ics:clearerrno/> <ics:copylist to = "Articles" from = "PortalArticles" /> <ics:if condition=í<%=ics.GetErrno()=0%>í> <ics:then> <ics:looplist list="Articles"> <ics:listget listname="Article" fieldname="headline"/ ><br> </ics:looplist> </ics:then> </ics:if>See Also
Home > Contents > Index > ![]()
FatWire JSP Tag Reference
Copyright 2005 by FatWire Software
All rights reserved.