Notifications
Announcements
No record found.
I have
field (Gross Pay)
field (Percentage)
field (Amount)
I want to calculate the percentage in c= a*b/100
store value in the field Amount
All right, and what's the problem?
By the way, I've moved your question from Dynamics AX Forum to Dynamics 365 Finance Forum and changed the category from Administration and Setup to Development / Customization / SDK. Please pay more attention to it next time.
Thank You for the Help
Does it mean that you've already solved the problem by yourself?
If not, please tell us what problem you have with the implementation.
No, I haven't got a fix yet,
I will be glad if anyone can help out.
Thanks in advance.
Fine, but what's the problem? It's difficult to address your problem if you don't tell us what it is.
The mathematical operators in X are exactly the same as in your example, therefore c= a*b/100 is actually valid X code.
Does it mean that you don't know how to refer to a table field? It's simple - you need a variable containing a table buffer, then a dot ('.') and then a field name. For example:
this.Amount = this.GrossPay * this.Percentage / 100;
Yes, I didn't know how t refer to the table field.
Thank you @Martin Dráb for the help, problem solved.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 451 Most Valuable Professional
André Arnaud de Cal... 428 Super User 2025 Season 2
BillurSamdancioglu 239 Most Valuable Professional