web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

How to hide the column and its heading in RDLC report

(0) ShareShare
ReportReport
Posted on by 1,893

If the sale order line no is zero then header must be visible false...and sale order line no must not show here.

6303.UU.png

I m trying with column visibility property..but it is not working

=First(Fields!saleordlinno.Value, "DataSet_Result")<0

And for heading Sale Order NO is:

=IIF(String.IsNullOrEmpty(First(Fields!saleordlinno.Value, "DataSet_Result")), true,false)

Both are not working.

Manish

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Saurav.Dhyani Profile Picture
    14,380 Super User 2025 Season 2 on at

    Hi Manish,

    As it a column which may have diffrent values in diffrent report lines you cannot use it like the way you are trying.

    In both the condition that you are specifying which row record system should consider for testing the condition.

    The only way to acheive this is -

    You need to check that all lines appearing in report have your field value zero in the developer environment and if that is true then pass a boolean variable as true which can then be used for column visiblity.

  • Verified answer
    Binesh Profile Picture
    7,885 on at

    Hello Manish,

    Follow the Saurabh solution.

    In onafter trigger, Write something like:

    If saleordlinno > 0 then

      ShowLineCol := true

    Else

      Clear(ShowLineCol);

    // ShowLineCol is a boolean variable.

    Paas this variable in dataitem fields.

    In. saleordlinno column visibility write something like

    Iif(Fields!ShowLineCol.Value,False,True)

  • manish.yadav Profile Picture
    1,893 on at

    Very thanx. Binesh sir

    issue is resolved.

    manish

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
HoangNam Profile Picture

HoangNam 7

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans