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***
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.
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
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
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