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
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
Yes, I didn't know how t refer to the table field.
Thank you @Martin Dráb for the help, problem solved.
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;
No, I haven't got a fix yet,
I will be glad if anyone can help out.
Thanks in advance.
Does it mean that you've already solved the problem by yourself?
If not, please tell us what problem you have with the implementation.
Thank You for the Help
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.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,269 Super User 2024 Season 2
Martin Dráb 230,198 Most Valuable Professional
nmaenpaa 101,156