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 AX (Archived)

SSRS Report: How to hide a tablix in second page of the report.

(0) ShareShare
ReportReport
Posted on by 3,248

Hi

I am modifying a SSRS report for purchase order confirmation report(purchPurchaseOrder), in my requirement i have to hide a tablix on the the second page of the report.  Any pointers will be highly appreciated.

I am on AX2012 R3.

Regards

P

*This post is locked for comments

I have the same question (0)
  • Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    Do you want to hide entire tablix or part of tablix e.g. some rows and textboxes?

  • Pradeep Itnal Profile Picture
    3,248 on at

    Entire tablix.

  • Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    Have you tried using expression to hide it

    e.g.

    =iif(Globals!PageNumber = 1,True, False)

    if this does not works try by reversing order of true false

    =iif(Globals!PageNumber = 1,False, True)

  • Pradeep Itnal Profile Picture
    3,248 on at

    Globals!PageNumber does not work as Globals!PageNumber can be only used header and footer section. I hace tried this and got a compile error.

  • Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    I see, yeah. fishy one. I cannot think of any possibility for ax flavored ssrs reports.

    Can you kindly post your thread on SSRS community, as they may present any idea.

    Here we need to remember that if they provide you any option of using code script which is VB  traditional code in SSRS, tell them we cannot use code blocks in AX Reports. AX 2012 allows to create code but that cannot be used.

    I am afraid you may have to create report in normal SSRS which can be worst last option

  • Suggested answer
    Mea_ Profile Picture
    60,284 on at

    Hi Pradeep Itnal,

    Due to this tread and my personal experience it is not possible social.msdn.microsoft.com/.../hiding-a-table-row-depending-on-page-number

    Because there is no fixed "page" it depends on printer drivers and setup.

  • Suggested answer
    Hajish Profile Picture
    460 on at

    Go to Report Properties and add below code.

    1362.Capture.PNG

    Public Shared Dim PageNo as Double

    Public Function SetPageNo( Value as Double) As Decimal
    PageNo = Value

    return Value
    End Function

    Public Function GetPageNo( )

    return PageNo
    End Function

    use this code in header page number expression Code.SetPageNo(Globals!OverallPageNumber) // this will return same result.

    check the page number by using this code Code.GetPageNo() //use your logic here.

  • Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    Hi Hajish,

    In AX 2012, custom code cannot be used. This has been depreciated since arrival of AX2012, back in November 2011. Though you would be able to enter/write custom code, but when you will call it compiler will give you error, on compilation and deployment of report

  • Hajish Profile Picture
    460 on at

    Thanks Sohaib. :-)

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 AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans