Question3Replies235Views DariaShalom Member since 2019 8 posts Plekhanov Russian University of Economics Posted: 7 months agoLast activity: 7 months ago 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: 7 months agoMarcLasserre_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: 7 months agoUpdated: 7 months agokanap2 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: 7 months agoUpdated: 7 months agoDariaShalom Plekhanov Russian University of Economics replied to kanap2Thank you so much!