Question
![](https://accounts.pega.com/sites/default/files/pega-user-image/472/REG-472149.png?source=PUMINIT)
![](https://accounts.pega.com/sites/default/files/pega-user-image/472/REG-472149.png?source=PUMINIT)
Health First
US
Last activity: 13 Aug 2018 5:16 EDT
Can I use IsInPageList function to compare a value to a data page?
The data page refers to a data type that holds a couple of records. What I want to do is compare a value against this data type and see if there's a match.
Thanks in advance!
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
CollabPartnerz
IN
Hi Saml,
you can use D_DataPageTest.
@IsInPageList(Your Property value,"Your Property",D_DataPageTest).
This should resove your issue.
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
CollabPartnerz
IN
If your DataPage is of type list then you can use this function.
![](https://accounts.pega.com/sites/default/files/pega-user-image/472/REG-472149.png?source=PUMINIT)
![](https://accounts.pega.com/sites/default/files/pega-user-image/472/REG-472149.png?source=PUMINIT)
Health First
US
Hello Gayatri,
So when I use the datapage as the clipboard property, would this be the correct syntax to pass it: D_DataPageTest.pxResults ?
Accepted Solution
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
CollabPartnerz
IN
Hi Saml,
you can use D_DataPageTest.
@IsInPageList(Your Property value,"Your Property",D_DataPageTest).
This should resove your issue.
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Pegasystems Inc.
IN
Yes,you can use this function as gayathri said if your DataPage is of type list.
![](https://accounts.pega.com/sites/default/files/pega-user-image/472/REG-472149.png?source=PUMINIT)
![](https://accounts.pega.com/sites/default/files/pega-user-image/472/REG-472149.png?source=PUMINIT)
Health First
US
Hi Vinay,
Okay so say the property 'DataPageProperty' to compare that's in the data page 'D_DataPageTestList' should the parameters be like this: @.IsInPageList("lookForThis", DataPageProperty, D_DataPageTestList) ?
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Pegasystems Inc.
IN
Hi,
Yes its correct.
@.IsInPageList("lookForThis", DataPageProperty, D_DataPageTestList)
lookForThis-- the value you are looking for
DataPageProperty--look at (Should be under pagelist definition class)
D_DataPageTestList-- Page List Ex:D_DataPageTestList.pxResults
Regards,
Vinay Reddy