Options

Hide rectangle in report Visual Studio

Bor1980Bor1980 Member Posts: 17
edited 2020-04-14 in NAV Three Tier
Hi all,

Within a report I added a rectangle and within this rectangle a table with rows from SalesLine table.
I want to hide the rectangle when the table does not have 20000 as No_

embvo9z3ir4n.png

For this rectangle I have this part of code in the Rectangle properties - Visibility: =IIF(Fields!No2_SalesLine.Value<>20000,True,False)

Unfortunately the rectangle with table is still shown unless the orderline has not 20000.

What am I doing wrong?
Dynamics NAV2016

Answers

  • Options
    Bor1980Bor1980 Member Posts: 17
    edited 2020-04-14
    Maybe my question was not clear enough?

    I only want to show a textbox when the SalesLine table contains the article number 20000 or 60000.
    I have now set this visibility but this does not work?
    =IIF(Fields!No2_SalesLine.Value=20000 or Fields!No2_SalesLine.Value=60000,False,True)
    Dynamics NAV2016
  • Options
    manjumanju Member Posts: 19
    Hi,

    Instead of setting visibility in rectangle, please try setting row visibility in the detail part of the table.

    Cheers,
  • Options
    RockWithNAVRockWithNAV Member Posts: 1,139
    Absolutely with Row visibility you wont have white spaces.
Sign In or Register to comment.