Home > Contents > 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.Error Numbers
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 > ![]()
Oracle JSP Tag Reference
Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.