Question
HCLTech
HCLTech
IN
HCLTech
Posted: Apr 27, 2021
Last activity: Apr 27, 2021
Last activity: 27 Apr 2021 8:24 EDT
Closed
How to create pagelist using activity?
How to create a pagelist using activity and data transform?
***Edited by Moderator: Pooja Gadige to move from Pega Academy to Product, add product details tag, add platform capability tag***
To see attachments, please log in.
@RamKumarBalla
1. You can create the page list through a java step on keeping the step page as the page-list (PageListPage) which refers to the Code-Pega-List.
PF configuration in the pages and classes.
MobilePageListPage--->Code-Pega-List
MobilePageListPage.pxResults--->Org-Data-Mobile
ClipboardProperty MobilePageListPage_pxResults = tools.getProperty(".pxResults"); // Create a property
String todo_tasks[] = {"Mobile1:Nokia","Mobile2:Motorola"}; // For our testing purpose we had the data in the form of String array.
for(int i=0;i<todo_tasks.length;i++)
{
String[] taskParams = todo_tasks[i].split(":");
ClipboardPage mobile_page = tools.createPage("Org-Data-Mobile","Mobile");
mobile_page .putString("MobileType",taskParams[0]);
mobile_page .putString("MobileName",taskParams[1]);
MobilePageListPage_pxResults .add(mobile_page );
}
// Looping over the String array and form the page property and add that into page list
@RamKumarBalla
1. You can create the page list through a java step on keeping the step page as the page-list (PageListPage) which refers to the Code-Pega-List.
PF configuration in the pages and classes.
MobilePageListPage--->Code-Pega-List
MobilePageListPage.pxResults--->Org-Data-Mobile
ClipboardProperty MobilePageListPage_pxResults = tools.getProperty(".pxResults"); // Create a property
String todo_tasks[] = {"Mobile1:Nokia","Mobile2:Motorola"}; // For our testing purpose we had the data in the form of String array.
for(int i=0;i<todo_tasks.length;i++)
{
String[] taskParams = todo_tasks[i].split(":");
ClipboardPage mobile_page = tools.createPage("Org-Data-Mobile","Mobile");
mobile_page .putString("MobileType",taskParams[0]);
mobile_page .putString("MobileName",taskParams[1]);
MobilePageListPage_pxResults .add(mobile_page );
}
// Looping over the String array and form the page property and add that into page list