Extension of pages with the Flow Path Factbox
This documentation describes how to expand a page in Business Central with the Flow Path Factbox.
There are two ways to do this:
- When developing a custom page, the part and the code in the OnAfterGetCurrRecord trigger can be added to the page.
- If wanted to extend existing pages, you can create a page extension that executes the code.
Requirements
The following requirements must be met:
- The Flow Path module must be licensed.
- Flow Path must be available in the extension as a reference.
Extension of a Business Central page with the Flow Path Factbox
Card
pageextension 5492183 "SIM_DVS PostedSalesInvoiceExt" extends "Posted Sales Invoice" //132
{
layout
{
addbefore("Attached Documents List")
{
part("SIM_DVS FactBox"; "SIM_DVS FactBox")
{
ApplicationArea = All;
}
}
}
trigger OnAfterGetCurrRecord()
begin
CurrPage."SIM_DVS FactBox".Page.SetVariant(Rec, CurrPage.ObjectId(false));
end;
}
List
pageextension 5492205 "SIM_DVS SalesInvoiceListExt" extends "Sales Invoice List" //9301
{
layout
{
addfirst(factboxes)
{
part("SIM_DVS FactBox"; "SIM_DVS FactBox")
{
ApplicationArea = All;
}
}
}
trigger OnAfterGetCurrRecord()
begin
CurrPage."SIM_DVS FactBox".Page.SetVariant(Rec, CurrPage.ObjectId(false));
end;
}
Info
Please note that the objects or areas in the "AddBefore" or "AddFirst" may vary depending on the list that needs to be extended. This snippet is only an example from our own Flow Path module.