Closed
Solved
How to retrieve the first element of Data Page inside a Data transform
How 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***
Hi,
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.