Is it possible to show factbox only when there are records/data available? ( NAV )

Hello,

In navision we have an Factbox called Order Notifications,
This Factbox is taking lots of space, even when there are no lines/data in it.

Is it possible to make something which checks if there is any data, and if there is, shows the factbox.
And with no lines/data it makes the Factbox invisible?

Greetings,
MaxNavision

HI
can I Know How it is linked to Page . I mean Like SubPage Link , You can Do this at Page Level Not at SubPage level.
So It should be Decided Before Opening Of Page .
If it is Simple List part factbox Then My answer would Be Yes with a Boolean Variable.

Hello,

YesPartType is Page and SubPageLink No.=FIELD(No.)

Greetings.

Hi,

Then Create a Global Variable “Bool” of Boolean Type And Select SubPage Part Properties and Place Bool inplace of in Visible Option like Below

sScreenshot (11).png

Now write Code Like Below In in OnOpenPage

OnOpenPage()

IF NOT Rec.ISEMPTY THEN

Bool := TRUE;

Thanks great explanation!