Home > Contents > Index > 
RENAMELIST
Removes a list object from the hash list and replaces it under the new name.
Syntax
<RENAMELIST LIST="NewList" FROM="SomeList"/>Parameters
LIST (required)- The new list name.
FROM (required)- The current list name. (The name you want to change.)
Description
The
RENAMELISTtag removes a list object from the hash list and replaces it under the new name. Does not reset any internal list state (for example, the row number).The column values of the current row of a list can be obtained using the syntax,
List.colnamewhereListis the name of the list andcolnameis the name of the column in the list.
Note
In the case of StringLists, the values can be obtained by using List.Item.
You can use the following attributes to return information about the list using the syntax,
List.attname, whereattnamecan be one of the following attributes:
#numRows#curRow#moreRowstrue/false) to indicate whether there are more rows following the current row.#numCols@<colname>For example,
MyList.#numRowsreturns the number of rows in the listMyList.MyList.@urlheaderretrieves the contents of the file specified by the column urlheader.The value of a list is maintained during the processing of a page request. If the list contains a resultset, the resultset is maintained independently of a list that uses it.
Error Numbers
The possible values of
errnoinclude:
Example
The following example generates a list named
PortalArticlesand then changes the list's name fromPortalArticlestoArticles:<SELECTTO FROM="NewPortalArticle" WHAT="*" LIST="PortalArticles" /> <SETVAR NAME="errno" VALUE="0" /> <RENAMELIST LIST="Articles" FROM="PortalArticles" /> <IF COND="IsError.Variables.errno=true"> <THEN> <!--Handle error--> </THEN> </IF>
Home > Contents > Index > 
Oracle XML Tag Reference
Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.