Question
Zensar Technologies Ltd
IN
Last activity: 11 Jan 2023 0:42 EST
What is pxResults?
Hi
Can anyone please explain me, what is this pxResults? Where we use this? Its importance in pega.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Updated: 29 Dec 2022 7:00 EST
Capgemini
IN
Firstly, Page List and ValueList is property types such as for example Page, Single Property, Page Group, etc. You can create property any type applies to any class, for example @baseclass.
Code-Pega-List is class. Class consist of several properties any types (Page, Page List, etc.). You can open class Code-Pega-List in application explorer and see it.
pxResults is a Page List type property of Code-Pega-List class.
Code-Pega-List is a core class for Pega Platform. Many rules used it, such as methods in activity rule (Obj-Browse), report definition rule, etc. This class contains standard logic, for example count of elements in page-list contain in property .pxResults. I think that my answer help you understand.
and coming to your question: Where we use this? Its importance in pega.
There are a number of functions, activity-methods (obj-browse being a popular one!) and functions that return Code-Pega-Lists. Here is what is useful to know about them:
1) The actual elements in the list are within the .pxResults list within the page whose class is Code-Pega-List.
2) Often (but not always!), the number of elements available in .pxResults is stored in another property called .pxResultCount.
Empower Retirement
IN
Hi @AbhishekC1725, Please find the below URL which gives an explanation about pxResults property.
Accepted Solution
Updated: 29 Dec 2022 7:00 EST
Capgemini
IN
Firstly, Page List and ValueList is property types such as for example Page, Single Property, Page Group, etc. You can create property any type applies to any class, for example @baseclass.
Code-Pega-List is class. Class consist of several properties any types (Page, Page List, etc.). You can open class Code-Pega-List in application explorer and see it.
pxResults is a Page List type property of Code-Pega-List class.
Code-Pega-List is a core class for Pega Platform. Many rules used it, such as methods in activity rule (Obj-Browse), report definition rule, etc. This class contains standard logic, for example count of elements in page-list contain in property .pxResults. I think that my answer help you understand.
and coming to your question: Where we use this? Its importance in pega.
There are a number of functions, activity-methods (obj-browse being a popular one!) and functions that return Code-Pega-Lists. Here is what is useful to know about them:
1) The actual elements in the list are within the .pxResults list within the page whose class is Code-Pega-List.
2) Often (but not always!), the number of elements available in .pxResults is stored in another property called .pxResultCount.
-
Abhishek Choubey Sandeep Valluri Vinesh Tatineni
Zensar Technologies Ltd
IN
@Bharath.Suntigikar Thanks for explanation.
IQZ Systems
US
@AbhishekC1725 In brief, it represents array (infinite) of records.
For eg: we want to get list of employees who completed 5 years in an organization for sending an mail.
We could use a temp page FifthAnnEmployees to be used by the report definition which fetches employees who joined 5 years from now. Report definition would run the query & put SQL results to FifthAnnEmployees.pxResults list
-
Abhishek Choubey Sivani Pappu venu Gopal regalla Vinesh Tatineni
Zensar Technologies Ltd
IN
@Byshu_Ayyappaswamy Thanks for explanation.
Updated: 6 Jul 2022 9:53 EDT
Oriental Bank & Trust Inc
PR
@Byshu_Ayyappaswamy in addition to this correct explanation, please, make sure you define the top level page in the pages and classes as well as the pxResults class. I learned to make it like this:
PageName | Class |
MyTopLevelPage | Code-Pega-List |
MyTopLevelPage.pxResults | MY-Class-Structure |
hope this is correct. Please let me know if/why not in case of. This also helps putting the information in context so that you can access it from the clipboard. Regards,
-
Abhishek Choubey
krishnakanth
IN
@AbhishekC1725 what is pxResults
Oriental Bank & Trust Inc
PR
@krishnakanthc16599540 it is the out of the box property used for storing the list's results. Why we need to define it in the pages and clases? Because we start of in Code-Pega-List (that tells the PRPC that this is going to be a page list) then each result that you store within the .pxResults property needs to have the context where you are working on. So that if you iterate through the pxResults you can find the rules that you have defined for the logic in the context of your application.
-
Abhishek Choubey
Bits In Glass
CA
In Pega We Have One Class Name i,e (Code-Pega-List) This Class Contains many Properties and its types, Go To Application Explorer and See It. There We have .pxResults is a page list type property of Code-Pega-list Class and it is a core class for Pega Platform. In pega many rule use it Ex: Activity Rule, Report Defination Rule.......
-
Abhishek Choubey
Bits In Glass
CA
In Pega We Have One Class Name i,e (Code-Pega-List) This Class Contains many Properties and its types, Go To Application Explorer and See It. There We have .pxResults is a page list type property of Code-Pega-list Class and it is a core class for Pega Platform. In pega many rule use it Ex: Activity Rule, Report Defination Rule.......
-
Abhishek Choubey Kevin Kwan