Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Suggested answer

Changing value for a specific No. in existing table

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

Categories:
  • Suggested answer
    DAnny3211 Profile Picture
    DAnny3211 9,217 Moderator 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 70,124 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

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,564 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,651 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans