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...
Answered

Flowfield on line table to pull header data

(0) ShareShare
ReportReport
Posted on by 1,165

Hi All,

I'm trying display purchase receipt header information on Get Receipt Lines (purchase receipt lines list page), function on item charge so user can see additional information.  Created a table extension with flowfield and page extension but no data is shown on the new field.  Not sure if there is a better way to do this without a table extension and only a page extension

Sample code for table extension and page ext:

tableextension 50136 PurchaseReceiptLine extends "Purch. Rcpt. Line"
{
    fields
    {
        field(50133; "My Order No."; Text[50])

        {
            FieldClass = FlowField;
            CalcFormula = lookup("Purch. Rcpt. Header"."Order No." where("No." = field("No.")));
        }
    }

}
pageextension 50145 PurchaseReceiptLineList extends "Purch. Receipt Lines"
{
    layout
    {
        addafter("No.")
        {
            field("My Order No."; "My Order No.")
            {
                ApplicationArea = Basic, Suite;
            }
        }

    }
I have the same question (0)
  • Suggested answer
    JAngle Profile Picture
    133 on at

    If the table extension is for the line table isn't the "No." field the reference to what is being receipted? Should it not be the "Order No."?

  • Anita75 Profile Picture
    1,165 on at

    Changed to "Document No." and works now. Related question is - Is creating flowfield is the best way to solve this problem or is there a better way such as a page variable using OnAftergetRecord? One of things I noticed is when the list page is loaded you cannot search this new column values (using serach box on top left).  

  • JAngle Profile Picture
    133 on at

    Flowfields are fine in general. Look at the item table for example. It has a lot of flowfields and it’s a table that will potentially have a lot of data. This resource is good for getting comfortable with flowfields: 

    https://www.hougaard.com/flowfields-bcs-superpower/

    The other method is ok but only if you don’t want to use it for filtering and only ever want it on the page only. At least with flowfields you could use them in supplementary reports or queries. The search presumably only works with data that is actually present in the table. Flowfield data is calculated so not written into the table.

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,990

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,576 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,028 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans