Hello, thank you for your answer. I have solved it. In the Item Ledger Entry Page Create 2 variables. Name |DataType| Subtype sum |Decimal| Cust2 |Record| Item Ledger Entry Create 1 function I have name it SETSUM. In the setsum function i wrote: BEGIN Cust2.COPY(Rec); ----------- This filter copies the current filter on the page to the Cust2 record variable. Cust2.CALCSUMS(Cust2.Quantity); -------- This calculates sum of the Quantity collumn. sum :=Cust2.Quantity ; ---------- Sets the variable "sum" as total of the Quantity collumn acording to the page filter. END; After that I call the function the onaftergetrecord: setsum(); Final steps was to set the sum variable in the sourceexpr field. Everytime the filter is changed the total Quantity changes. I have tried the same for FlowFields (Cost Amount for example) but it's not working. Any ideas? best regards, Thomas Barbut
↧