Removing the page list

While trying to delete a PageList using ‘Page-Remove’ method, I am facing ‘index out of Bound’ Exception. 1) How to delete the entire page list? 2) How do I delete a particular page list by iterating through the entire list? PageListProp - (How to delete the entire page list?) PageListProp(1) (Class Name) PageListProp(2) (Class Name) - (How do I delete a particular page list by iterating through the entire list?) PageListProp(3) (Class Name) PageListProp(4) (Class Name)

***Updated by Moderator: Marissa to close post***
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.


Keep up to date on this post and subscribe to comments

February 15, 2009 - 6:07am


Please go through the following PDN article


Thank you

February 15, 2009 - 9:15am

hi there,

If want to delete the particular page from pagelist,u can make use param.pyEachcount ,which holds the current index of the page.

For example:

In the activity step:

---> preconditon:

when param.pyForEachcount==2


page-remove method

----> transition step:

when stepstatusgood

exit activty

Hope this is clear....


February 15, 2009 - 6:30pm

1. Property-Remove would do the trick of removing the entire pagelist.

2. There are multiple way in which you can remove the page in a page list.
a. Param.pyForEachCount (not param.pyEachcount) holds the current iteration index. So you could use PageListName(Param.pyForEachCount) as pagename.
b. While iterating - PageListName(<Current>) can do the trick as well or
c. @getStepPageHandle(tools) as the pagename will also do.