Posted: 7 Oct 2016 0:39 EDT Last activity: 18 Oct 2016 10:18 EDT
How do I PREPEND a page into Pagelist from a data transform?
I have a page list and another page in different classes, and therefore, I was able to append the new page to the pagelist via Append and Map to with the keyword LAST in destination properties. This does append the new page at the end of each page? However, I would like to APPEND the new page at the top of one after another. When I use append, only one property goes to the top page and other properties are not gone into the same with LAST keyword. Can you please guide?
You can use <PREPEND> for adding a page first in the list, as you use <APPEND> for adding new page at last. Please refer below provied help link for having idea about all indexes we can use for accessing PageList records.
I agree but please note that I am using data transform not the activity, I am able to PREPEND or INSERT only one of the property by Append and Map to action in data transform. However, the issue is for other properties, what key word would do keep in the same index that I prepend or insert. I used LAST, did not work. I used PREPEND and INSERT for others, that also did not work.
As suggested above, you can set value for first property in pagelist with suffix of 'PREPEND' and for next properties you can set with suffix of 'FIRST'. or we can hardcode it as '1'. Please find sample from screenshot attached.