Presenting related data in FactBoxes
FactBoxes are subpages presenting information related to the main page, but considered less important than the main content. This is an auxiliary page that can be minimized or completely removed from the view when it is not needed.
How to do it...
This recipe creates a FactBox to present information about item certificates in sales orders.
Create a new page in page designer.
Select the table 50010 Item Certificate as a source for the page. Choose Create a page using a wizard option and select the page type CardPart.
Add fields to the page:
No.
Certification Authority
Issued Date
The FactBox page must display the certificate expiration date the same way as it is shown in the Item Certificate Card page. In the next recipe we will see how to reuse the function we already have in page 50010. For now, let's copy the function to the new page.
Declare two global variables:
ExpirationDate
of typeDate
andIsCertificateOverdue
of typeBoolean
.Close variable declarations...