Hello,
After I use () to add a page into a page list in a data transform, e.g.
set MyPageList().Name to “ABC”
how could I get the index of the page just added?
Guess something look like
MyPageList.xxx
Hello,
After I use () to add a page into a page list in a data transform, e.g.
set MyPageList().Name to “ABC”
how could I get the index of the page just added?
Guess something look like
MyPageList.xxx
() ->Keyword will add a new page to list, it will be always last index.
You can use (MyPageList().Name) keyword to access information from page inside page list which got added last by using keyword.
If you want index of the page which got added, then for that no Pega OOTB way is avail.
Alternatively, you could try this approach after keyword step got executed, place the @LengthOfPageList(MyPageList.pxResults) function it will give the overall length of pagelist, the return value of this function is the index of the page which got added at last by using keyword.
Attached screenshot for reference.
well noted, many thanks!
@Gunasekaran Baskaran
great ,thank you