IF ("G/L Account"."Balance at Date"=0) THEN BEGIN IF ("G/L Account"."Balance at Date" <> "G/L Account"."Net Change") THEN HideBalance := FALSE ELSE HideBalance := TRUE; END;
=Fields!HideBalance.Value
=Not(Last(Fields!IntegerBody9Condition.Value, "table2_Group_GLAccount"))
=(Not(Last(Fields!IntegerBody9Condition.Value, "table2_Group_GLAccount"))) OR (Fields!HideBalance.Value)
Answers
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
In NAV2013 and later, the equivalent of SHOWOUTPUT on sections is controlled in the report layout. One way to do this is create a variable in your report, and set the value in the dataitem that creates the line similar to what is in the Section code now, e.g. create a variable HideBalance (type boolean), then:
Note the TRUE/FALSE is "opposite" of SHOWOUTPUT, i.e. if TRUE, it will hide, if FALSE, it will show (see below)
Then, in the Report Layout, you can set the visibility of a line based on this value - it depends on which RDLC report editor you use. If you are using Report Builder (the free "built-in" editor that comes with NAV), right-click on the very left of the row you want to show/suppress in the little box with 3 parallel lines and choose "Visibility" and click on the "fx" under "Show or hide based on an expression"
On report 10022, most of them will already have an expression, but you can add to it or replace it. The syntax is:
If there is already an expression, you can add to it, e.g. here's one from the NAV2016 version of report 10022 for DescriptionLine2 (the one with 4 columns):
If you wanted to additionally hide/display with your code, you could add it, e.g.
There are many options for doing this - this is only one idea. I'm sure there are others out there.
Good luck!
Ron