Question 3 Replies 429 Views × Close popover Daria Mamaeva (DariaShalom) Plekhanov Russian University of Economics Plekhanov Russian University of Economics RU View Profile Send Message DariaShalom Member since 2019 11 posts Plekhanov Russian University of Economics Posted: February 24, 2020 Last activity: February 26, 2020 Posted: 24 Feb 2020 5:01 EST Last activity: 26 Feb 2020 14:06 EST Closed Solved How to calculate total price using declare expression Hello! I've tried to male it analogously to this case https://collaborate.pega.com/question/how-calculate-totalprice-based-subtotal-row-repeat-using-declare-expression but exception always pops out (The expression (right hand side)— Property @baseclass.TotalPrice is undefined.) PageList:Product And a second, related challenge is value of property TotalPrice. To calculate it, I'vet also used declare expression. All properties (ProductPrice, ProductQuantity and TotalPrice are integer values). Thanks in advance! Case Management Share × Close popover Facebook Twitter Linkedin Email 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: 1 year ago Posted: 24 Feb 2020 7:26 EST × Close popover Marc Lasserre (MarcLasserre_GCS) PEGA Principal Software Solutions Engineer Pegasystems Inc. FR View Profile Send Message MarcLasserre_GCS PEGA replied to DariaShalom Hello, Are you sure your pxResults is of Code-Pega-List class at runtime? It shouldn't be. Accepted Solution Posted: 1 year ago Updated: 1 year ago Posted: 24 Feb 2020 8:15 EST Updated: 26 Feb 2020 10:12 EST × Close popover Pavan Kalyan Kanaparthi (kanap2) PEGA System Architect Pegasystems Inc. IN View Profile Send Message kanap2 PEGA replied to DariaShalom When you are using Pagelist as Product, the results will be stored as Product(1), Product(2), etc. In the above scenario, you can use directly Product().TotalPrice in declare expression rule. Posted: 1 year ago Updated: 1 year ago Posted: 26 Feb 2020 10:09 EST Updated: 26 Feb 2020 14:06 EST × Close popover Daria Mamaeva (DariaShalom) Plekhanov Russian University of Economics Plekhanov Russian University of Economics RU View Profile Send Message DariaShalom Plekhanov Russian University of Economics replied to kanap2 Thank you so much!