Obj-Browse to fetch multiple rows from Data Table and assign the response to a PageList


I have a requirement where i need to use Obj-Browse to fetch multiple rows from Data Table and assign the response to a PageList under Work Class, so that i can populate the response in a Grid having the Source as PageList.

I Created an Activity, where i configured Pages & Classes as: newCustomer .....-Data-Customer

I have a property of type PageList, having name as CustomerDetails, i need to set the response of Obj-Browse into this, i am unable to figure it out.

Please someone help me how to achieve this.

Attaching the Screenshot of Activity Step Configuration

***Edited by Moderator, Maryrita: Moved to Product Support from Applications***

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.


Keep up to date on this post and subscribe to comments

January 30, 2017 - 1:24am

Hi Alok,

Get the details from the data table to the pagelist page and use the page copy to copy the details by putting the loop and using the current context.

Thank you.

February 3, 2017 - 7:17am
Response to Dileep Kumar Balaga

If you don't mind, could you share a sample screen of the configuration of Activity in order to achieve this

February 3, 2017 - 9:50am
Response to AlokS107


Here's the pertinent part of a quick activity I whipped up to demonstrate. The missing piece is that the page MockWorkPage would be the work object and the property ListOfResults is the page list property defined in the same class. In my case the obj-browse lists all the properties defined in my application.

I hope that helps,



February 14, 2017 - 11:18am
Response to MikeTownsend_GCS

Hi Mike,

  Thanks for you reply, but i am sorry to say, when i use work.CustomerList (here work is the work Object where there is a PageList property named as CustomerList), it's raising an error.


Attaching the configuration of my Activity

Please help me, not able to figure out, where i am missing something.



February 14, 2017 - 12:05pm
Response to AlokS107

if you have still issue..Please check sample code

February 19, 2017 - 1:52am
Response to YBKonda@10

Hi YellaiahB,

     Thanks for your very helpful response. I followed the same instruction mention by you in above document, and worked quite good till Obj-Browse but while going for Page-Copy again it's throwing error, not to forget i need to set the response in a Work class i.e. Work-CircumstanceDemo which holds a property named as CustomerList of type PageList. 


Attaching the complete configuration along with my Activity, Data Type &Work Class Structure under App explorer as screenshot, unable to figure out what is the issue.


If somehow i am able to set the response to this PageList property then i can populate the data in a Section using this PageList

February 21, 2017 - 10:12am
Response to AlokS107

Select Loop in Page-Copy method.

February 25, 2017 - 9:18am
Response to YBKonda@10

HI YellaiahB, Thanks for your suggestion, Now the activity is getting save properly, but i would like to know, how this looped values will be save into Work class PageList property. 

Let's say my class is work-MyDemo which contains a PageList property named as CustomerList , currently CustomerList.pxResults refers to Data class. so that i can form a section for this PageList property and can populate in a Section

February 25, 2017 - 10:32am
Response to AlokS107

Hi Alok, 
I had gone through your activity document. What I understood from that is, you have your data in data class and want to save that in work class page-list property. 
1) you have done an obj-browse method on data class and stored all the results in datatablepage.pxResults.

2) In pages and classes for CustomerList give class as code-pega-list.

3) and for CustomerList.pxResults give your work class name.

4) In page copy method loop over those pages giving step page as datatablepage.pxResults

5) give copy from as datatablepage.pxResults(<CURRENT>)

6) give copy into as CustomerList.pxResults(<APPEND>).

7) now u will have all the data on CustomerList.pxResults page in clipboard and can use this as a source.

February 26, 2017 - 2:20am
Response to NAVAKANTHM

Hi Navakantham, Thanks for your reply.

I tried your suggetions, Activity saved well as earlier, but the response is not getting into Work class PageList property. Also when i replaced <CURRENT> with datatablepage.pxResults(<CURRENT>) for CopyFrom the i found that many blank rows got Appended for DataTable.pxResults, so i replaced it back to <CURRENT>, also i have a doubt, as you mention CustomerList.pxResults referring to Work Class, but if i have more than one PageList property under this Work Class then using "copy into as CustomerList.pxResults(<APPEND>)" will copy the value into which pageList. However the DataTable.pxResults holds all the rows but not getting coping into pyWorkPage i mean Work Class (Work-MyDemo having a Property CustomerList). Thanks