
I want to update Payment,balance,Net change fields by using Action Button on page.
I used below mentioned code. but its updating Name, adress and "No." Fields only.
trigger OnAction();
var
customer: Record Customer;
cust: Record CustTable;
begin
cust.Reset();
DeleteAll();
Customer.findset;
repeat
Cust."No." := customer."No.";
cust.Name := customer.Name;
cust.Address := customer.Address;
cust.Balance := customer.Balance;
cust.NetChange := customer."Net Change";
cust.Payments := customer.Payments;
cust."Balance Due" := customer."Balance Due";
cust.insert;
until customer.next = 0;
end;
