Skip to main content

NAV - RTC Report Reset Row No. / Serial No. on Group Change.

Hi all,

This post is based on query of one of my reader Peter Huba.

During Report Development we face queries like resetting the Row  No. when there is a change in Group.

What we exactly Try To Do ?

We tried to write C/AL code based on our group and try to set/reset a variable.
But in some cases that doesn't help too as we have visibility condition in RDLC Rows which create issues.

What we Don't Do ?

We don't try to lookup the power of Visual Studio for same. We still try to beat the bush using C/AL Code.

Now let's see how simple it is using Power of Visual Studio -

1. Created a simple Report Using Item Ledger Entry Table.



2. In Layout Group the Report with Item.



3. In above Screen you can see Sr. No. , Lets see what is the expression that i have used inside that.
Visual Studio have a simple function RowNumber To get The Row Number. Function take Group Name as Parameter as shown Below.



4. Now Let's Save and Run the Report. The Output seems as below.



5. There are some items which don't have Remaining Quantity, as highlighted above.
6. Let's add a visibility condition for Excluding those lines having remaining quantity as ZERO.



7. Let's Run The Report and select Option to Exlude Lines With Remaining Quantity as ZERO.



And the Output of Report is as below.



I hope this will help some of my readers and would like to hear from you as comment to this article.

If required you can download the Report from My SkyDrive Folder.

FileName - NAV2013R2_Report_Serial_No_With_Grouping.rar

Regards,
Saurav Dhyani

Comments

Popular posts from this blog

VIEW SERVER STATE permission on SQL Server?

Hi all, Sometime While trying to Login into a database we face an error message as shown below. --------------------------- Microsoft Dynamics NAV Classic --------------------------- You cannot start Microsoft Dynamics NAV Classic because you do not have the VIEW SERVER STATE permission on SQL Server. Contact your system administrator. --------------------------- OK    ---------------------------

RTC Report It is not possible to instantiate the Visual Studio bridge.

Hi all, As a Navision developers I have Multiple Versions of Navision running in single Machine. As discussed Earlier in the post how to run multiple Version of RTC in single machine. So my machine have following details for RTC Versions - NAV 2009 R2    - is installed. NAV 2009 SP1  - is copied at C:\Program Files (x86)\Microsoft Dynamics NAV\60\NAV 6.0 SP1 IN\ NAV 2009         - is copied at C:\Program Files (x86)\Microsoft Dynamics NAV\60\NAV 6.0 IN\ This approach has been working great for execution of Classic and RTC Clients. However, after installing Dynamics NAV 2009 R2, if i tried to view the Layout for an NAV 2009 SP1 Report i was getting the following error: ---------------------------  Microsoft Dynamics NAV Classic  ---------------------------  It is not possible to instantiate  the Visual Studio bridge.  ---------------------------  OK    --------------------------- After searchi...

NAV 2013 R2 - Cumulative update 12 Released.

Hi all, Please find below the details of  Cumulative Update 12 released for Microsoft Dynamics NAV 2013 R2. Title - Cumulative Update 12 for Microsoft Dynamics NAV 2013 R2 Build No. - 38053 Release Date - October, 2014 Local Version Included - AU, AT, BE, CH, DE, DK, ES, FI, FR, IS, IT, NA, NL, NO, NZ, SE, UK, RU Download Link Note: Implementing this cumulative update will require a database conversion unless you have already implemented update rollup 5.