how to Append a Page in a page list of specific index in Data Transform

Hi All,

I have requirement where i will have pagelist in the following way.

ABC(Page list)

ABC(1) contains .Name=PQR, .Address=XYZ

ABC(2) contains .Number=RTY, .Mobile=IOP.

I need to append the new page DEF(Page) which contains .office=DFG, .Landmark=XCV

in ABC(1) without overriding the existing properties in ABC(1) in data transform. If i use APPEND and MAPTO data is getting overidden.

Please let me how do i do this.

Thanks in advance for the help!

You can use the symbolic indexes

Append - at the last

Prepend - at the first

Insert - at required index

for insert if you need to find out the index where you to add it.

@PandiyanK6809

Pega supports below mnemonic’s while working with pagelist items -

  • APPEND
  • CURRENT
  • PREPAND
  • INSERT
  • LAST

For your requirement you need to use INSERT with below syntax

PageList.pxResults(3).PropertyName