web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

calculated flow field

(0) ShareShare
ReportReport
Posted on by 80

When we view our Purchase Order List, we need a custom po status field that used some code to figure out its value.  In x++ we were able to create something called display methods that were basically virtual fields that were coded to obtain a value - I see that I am able to use flow fields however it appears that flow fields must use some sort of aggregate lookup on other records.

is there a way to create a virtual field, and set its value in code - basically a lookup calc field that the code returns the value.

Thanks so much

--If I am not being clear, I want the ability to code something like

        field(50103; "POStatus"; Text[20])
        {
            CalcFormula = "Some Text String Or Code that I write";
            FieldClass = FlowField;
        }
I have the same question (0)
  • Suggested answer
    THE Italian Profile Picture
    on at

    I think that it would be better to use a global variable and set that on the page bounded to a column based on calculations that you do in the OnAfterGetRecord trigger. This would avoid creating a deadly table extension.  

    if you cannot make it this way, then you have to use 2 fields imho. One field is the flowfield that does the calculation and the other field is a global option value variable that display the text you want based on the flowfield. Remember to use calcfields in the record. 

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,238

#2
YUN ZHU Profile Picture

YUN ZHU 773 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 630

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans