web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

How to Update field in other table based on the first field ?!

(0) ShareShare
ReportReport
Posted on by 10

Hello Experts

I have a problem concerning the update method as i have made a new customized form and im trying to show the sum of the Credit and Debit in my form

first i made a new fields in my table and i put them in my form 

All i need is to update the credit and debit in my form based on the posted sum of GL Lines credit & debit  

here is the code that im using after the super in the update method in the LedgerJournalTrans update

select sum(AmountCurDebit), sum(AmountCurCredit) from _LedgerJournalTrans where this.LoanNo == _Sega_BankLoan.LoanNo && this.VoucherPosted == 1;
_Sega_BankLoan.Credit = this.AmountCurCredit;
_Sega_BankLoan.Debit = this.AmountCurDebit;
// _Sega_BankLoan.update();
}

please advise me if the logic of where to put my code and how to reach the right solution 

the fields in my table is not getting updated 

pastedimage1655362759058v2.png

and i tried select forupdate but i cant get the sum in so i went backward to this select statment 

I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 451 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 428 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans