Announcements
Hey everyone, I want to update a column "Net change" in "Chart of Accounts" page only when the No. = 24250 otherwise it should remain as it is for the remaining No. Figure 1 shows where I want the changes. The sum of the values highlighted in the 2nd figure must be updated in the above discussed "Net Change" column where No.=24250. The code for adding the "WHT Amount" values is done but it is not appending the "Net change" column. In the 3rd figure, code is displayed. The code was not working. so i took a dummy variable to check whether the sum is getting stored in "Net change" or not. So I found that value is storing in "Net change" but not displaying in the "Chart of Account" page's "Net change" when No. =24250. Kindly help
CIao
it is not possible to edit a flowfield,
it is a calculated field that is derived from the sum on another related table, in your case the G/L Entry, so you can do very little with it.
create another field to do this
DAniele
Hi, The main problem with this code is that the Net Change field is a Flowfield, you cannot modify its value. Because Flowfield is not a real field, it is calculated when the page is opened or the Record.CalcFields(Any [, Any,...]) method is run.
More details about flowfield: https://yzhums.com/5802/
So I suggest you add another field to display your value.
Hope this helps.
Thanks.
ZHU
Hello - We currently do not have dedicated Dev support via the Dynamics 365 Business Central forums, but I wanted to provide you some additional resources to assist. If you need assistance with debugging or coding I would recommend discussing this on one of our communities.
I will open this up to the community in case they have something to add.
André Arnaud de Cal... 291,359 Super User 2024 Season 2
Martin Dráb 230,370 Most Valuable Professional
nmaenpaa 101,156