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:copylisttag creates a copy of the specified list. The column values for the current row can be retrieved by using theics:listgettag.You can use the following attributes as the
fieldnameparameter of theics:listgettag to return information about the list:
#curRow#numCols#numRowError Numbers
The possible values of
errnoinclude:
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, 2016, Oracle and/or its affiliates. All rights reserved.