Question7Replies5525Views ParisQ07 Member since 2017 20 posts NCS Group Posted: 2 years agoLast activity: 2 years 6 months ago 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 Data Integration ×Close popoverFacebookTwitterLinkedinEmail Copy Link Copied! Moderation Team has archived post 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: 2 years agoSreepriya 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: 2 years agoParisQ07 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: 2 years agoRajKumarV2452 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: 2 years agoParisQ07 NCS Group replied to RajKumarV2452Yes, problem solved, Thank you so much for your detailed explanation! Posted: 2 years agoArun_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: 2 years agoashokk09 Areteans Tech replied to ParisQ07Let us know , if this works Posted: 2 years agoMARRF 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?