Question3Replies338Views×Close popoverDaria Mamaeva (DariaShalom) Plekhanov Russian University of Economics Plekhanov Russian University of Economics RU View Profile DariaShalom Member since 2019 9 posts Plekhanov Russian University of Economics Posted: February 24, 2020Last activity: February 26, 2020Posted: 24 Feb 2020 5:01 ESTLast activity: 26 Feb 2020 14:06 EST Solved How to calculate total price using declare expressionHello!I've tried to male it analogously to this casehttps://collaborate.pega.com/question/how-calculate-totalprice-based-subtotal-row-repeat-using-declare-expressionbut exception always pops out (The expression (right hand side)— Property @baseclass.TotalPrice is undefined.)PageList:ProductAnd 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 ×Close popoverFacebookTwitterLinkedinEmail Copy Link Copied! Posted: 11 months agoPosted: 24 Feb 2020 7:26 EST×Close popoverMarc Lasserre (MarcLasserre_GCS) PEGA Principal Software Solutions Engineer PEG FR View ProfileMarcLasserre_GCS PEGA replied to DariaShalomHello, Are you sure your pxResults is of Code-Pega-List class at runtime? It shouldn't be. Accepted Solution Posted: 11 months agoUpdated: 10 months agoPosted: 24 Feb 2020 8:15 ESTUpdated: 26 Feb 2020 10:12 EST×Close popoverPavan Kalyan Kanaparthi (kanap2) PEGA System Architect Pegasystems Inc. IN View Profilekanap2 PEGA replied to DariaShalomWhen 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: 10 months agoUpdated: 10 months agoPosted: 26 Feb 2020 10:09 ESTUpdated: 26 Feb 2020 14:06 EST×Close popoverDaria Mamaeva (DariaShalom) Plekhanov Russian University of Economics Plekhanov Russian University of Economics RU View ProfileDariaShalom Plekhanov Russian University of Economics replied to kanap2Thank you so much!