Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

Changing value for a specific No. in existing table

(0) ShareShare
ReportReport
Posted on by 382

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

pastedimage1669810465579v1.png

pastedimage1669810555673v2.png

pastedimage1669810808652v4.png

  • Suggested answer
    DAnny3211 Profile Picture
    DAnny3211 9,272 Super User 2024 Season 1 on at
    RE: Changing value for a specific No. in existing table

    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

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 74,036 Super User 2024 Season 2 on at
    RE: Changing value for a specific No. in existing table

    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.

    pastedimage1669941219497v1.png

    More details about flowfield: https://yzhums.com/5802/

    So I suggest you add another field to display your value.

    Hope this helps.

    Thanks.
    ZHU

  • Suggested answer
    Andy Sather Profile Picture
    Andy Sather on at
    RE: Changing value for a specific No. in existing table

    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.

    www.yammer.com/dynamicsnavdev

    I will open this up to the community in case they have something to add.

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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans