Question
1
Replies
43
Views
Posted: August 21, 2020
Last activity: August 23, 2020
Can a top level page be a page list?
If it can, how would I append to it using the java public api?
***Edited by Moderator Marissa to change type from General to Product, update Platform Capability tags****
A top-level page that you would like to act as a "Collection" of instances is typically achieved creating an instance of Code-Pega-List and populating the .pxResults page-list property with the items in your Collection.
Try as best you can stay in rules to append to your Page Lists.
Should you need to step into Java, my advice would be to configure something that appends to a Page List in a sample Data Transform or Activity in Dev Studio [e.g. using .pxResults(<APPEND>)], then use "View Java" from the Actions menu to review what Java code Pega generates, from where you will learn how to work with the ClipboardPage and ClipboardProperty objects to achieve what you need to.