Dynamics NAV Role Tailored Client - Add a Factbox in a Document Page

Dynamics NAV Role Tailored Client - Add a Factbox in a Document Page

(Applies to NAV 2013, NAV 2013 R2, NAV 2015 and NAV 2016)

Suppose we want an Item Image to be displayed in the Sales Order When Selected in Sales Order Sub form.

Let’s create a FactBox for displaying the item Image that we will attach to the Sales Order Page.

For this demo I am Using NAV 2016 and Page No. 50000 using the Page Properties below:

Page PropertyValue
Page No.50000
Page NameItem Image FactBox
Page TypeCardPart
Source TableSales Line

Table 1 – Page Properties.

The Page has one Global Variable of Table Item, as shown below:

Global Variables.

Figure 1 – Global Variables.

The Page Designer is shown below:

Page Designer.

Figure 2 – Page Designer.

There is a line of code that we write to get the Item Image:

C/AL Code to get Item Image.

Figure 3 – C/AL Code to get Item Image.

Now let’s add the FactBox in the Sales Order Page:

  1. Design Page 42.
  2. Navigate to Last Page Group that is FactBox Area.
  3. Insert a New Line and of Type Part using the Properties below in the same order.
Property NameProperty Value
PartTypePage
PagePartIDItem Image FactBox
ProviderID58
SubPageLinkDocument Type=FIELD(Document Type),Document No.=FIELD(Document No.),Line No.=FIELD(Line No.)

Table 2 – FactBox Properties.

** ProviderID is not static to 58. Actually, the ProviderID is linked to Factbox to the Sales Line Part.

** To get the Actual ProviderID, you need to see the ID of SalesLines Part, as shown below.

Provider ID for Sales Line Part.

Figure 4 – Provider ID for Sales Line Part.

Run the Sales Order page and add an Item in the Sales Line that has Item Picture.

Sales Order Page with Item Image Factbox.

Figure 5 – Sales Order Page with Item Image Factbox.

If you have any questions about this function or other Dynamics NAV questions for any version, contact ArcherPoint.

Read more “How To” blogs from ArcherPoint for practical advice on using Microsoft Dynamics NAV.

If you are interested in NAV development, check out our collection of NAV Development Blogs.

Read more Dynamics NAV blogs by Saurav Dhyani.

Trending Posts

Stay Informed

Choose Your Preferences
First Name
*required
Last Name
*required
Email
*required
Subscription Options
Your Privacy is Guaranteed