Question7Replies5965Views×Close popoverParis Qian Sen (ParisQ07) NCS Group NCS Group SG View ProfileSend Message ParisQ07 Member since 2017 20 posts NCS Group Posted: February 5, 2018Last activity: March 19, 2018Posted: 5 Feb 2018 22:38 ESTLast activity: 19 Mar 2018 9:26 EDT Closed Solved How to retrieve the first element of Data Page inside a Data transformHow to retrieve the ".Code" property of the first instance of a Data Page(List). I tried following expressions, it doesn't seems to work.D_ABCList.pxResults(1).Code D_ABCList(1).Code @getProperty????illustration in Java//Assuming ArrayList ABC; return abc.get(0).Code;***Moderator Edit: Vidyaranjan | Updated Categories*** Data Integration Java and Activities ×Close popoverFacebookTwitterLinkedinEmail Copy Link Copied! Moderation Team has archived post, learn more×Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question. Posted: 3 years agoPosted: 6 Feb 2018 0:35 EST×Close popoverSreepriya Rao Gona (Sreepriya) PEGA Senior Technical Solutions Engineer Pegasystems Inc. IN View ProfileSend MessageSreepriya PEGA replied to ParisQ07Hi, Try D_ABCList.pxResults(1).Code Make sure to include the class of datapage in pages and classes tab of data transform. Alternative: You can copy the all results from datapage into a pagelist property using a datatransform and get the first result from that pagelist. eg: TestPageList(1).code This should work. Thanks. Posted: 3 years agoPosted: 6 Feb 2018 2:19 EST×Close popoverParis Qian Sen (ParisQ07) NCS Group NCS Group SG View ProfileSend MessageParisQ07 NCS Group replied to SreepriyaHi, thanks for reply, I have tried "D_ABCList.pxResults(1).Code" and put "D_ABCList: Data-ABC" in the Page & Classes tab Then It returns "Source—Property @baseclass.Code is undefined." Error. Do you have any clue why it happen? Accepted Solution Posted: 3 years agoPosted: 6 Feb 2018 2:34 EST×Close popoverRaj Kumar Vigrahala (RajKumarV2452) LTI LTI IN View ProfileSend MessageRajKumarV2452 LTI replied to ParisQ07Hi, In Pages and Classes , we can put page name as 'D_ABCList.pxResults' and Class should be Data page's Object type 'Data-ABC'. Then rule is saved. We can access first element by D_ABCList.pxResults(1).Code, if data page doesn't have any parameters. Thanks. Posted: 3 years agoPosted: 6 Feb 2018 2:47 EST×Close popoverParis Qian Sen (ParisQ07) NCS Group NCS Group SG View ProfileSend MessageParisQ07 NCS Group replied to RajKumarV2452Yes, problem solved, Thank you so much for your detailed explanation! Posted: 3 years agoPosted: 6 Feb 2018 1:59 EST×Close popoverArun Kumar Mahanty (Arun_Mahanty) PEGA Principal Technical Solutions Engineer Pegasystems Inc. IN View ProfileSend MessageArun_Mahanty PEGA replied to ParisQ07Hello , You can access the page list with pxresults and then access the property something like this below pagelist.pxResults(count).code . Thanks, Arun Posted: 3 years agoPosted: 6 Feb 2018 2:17 EST×Close popoverAshok Kumaresan (ashokk09) Areteans Tech Areteans Tech IN View ProfileSend Messageashokk09 Areteans Tech replied to ParisQ07Let us know , if this works Posted: 2 years agoPosted: 19 Mar 2018 9:26 EDT×Close popoverFrank Marra (MARRF) PEGA Sr. Industry Architect, Public Sector Pegasystems Inc. US View ProfileSend MessageMARRF PEGA replied to ParisQ07What if the Data Page does have parameters? jsp tags like <pega:reference/> or <pega:withPage/>, etc., don't seem to like the D_DataPageName[ParameterName:"value"] syntax ... how can one access parameter-ized data pages from jsp tags?