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)

Getting Error by Creating TransHeader and TransFooter(In Body of Report) in NAV 2013 r2

(0) ShareShare
ReportReport
Posted on by

Hi Experts

I am Doing TransHeader and TransFooter in Body of the Report in NAV 2013 r2 For that i Reffer this link

https://msdn.microsoft.com/en-us/dynamics/nav/dn833439.aspx 

I Followed above link same as but when i save the report i got this ERROR

There is an error on line 93 of custom code: [BC30451] 'RunningVaue' is not declared. It may be inaccessible due to its protection level. 

This RunningValue Is declared in Report Properties --->Code Like Below

Private RunningValue As Double =0

Public Function SetRunningValue(ByVal val As Double) As Double
RunningVaue = val
Return val
End Function

PublicFunction GetRunningValue() As Double
Return RunningValue
End Function


I Declared in Transfooter Expression Like 

Code.SetRunningValue(RunningValue(Fields!Amount.Value,Sum,"Group1"))


can you please give Suggest me............How to done this Transheader and TransFooter

Thanks,

Ramesh.

*This post is locked for comments

I have the same question (0)
  • Rajasekhar@MS Profile Picture
    5,569 on at

    Hi

    Private RunningValue As Double =0 , can you change the RunningValue to Public or Shared and check

    Best Regards

    Rajasekhar.Y

  • Verified answer
    Suresh Kulla Profile Picture
    50,243 Super User 2025 Season 2 on at

    RunningValue is a built in function, try to change your variable declaration name in the above code to something else

    Private RunningValue As Double = 0

    change RunningValue to RunValu or something meaningful and use the same name in SetRunningValue and GetRunningValue.

    If you watch the video carefully he uses the variable declaration as RunnigValue.

  • Community Member Profile Picture
    on at

    Hi Rajasekhar,

    I already Checked as you Said like,but also i got the same error

    any suggestions....

    Thanks,

    Ramesh.

  • Rajasekhar@MS Profile Picture
    5,569 on at

    Can you check the below link and check again whether you have followed the steps

    blogs.msdn.com/.../transfooter-and-transheader-functionality-in-rdlc-ssrs-reports-revisited.aspx

    Best Regards

    Rajasekhar.Y

  • Tharanga Chandrasekara Profile Picture
    23,118 on at

    "There is an error on line 93 of custom code: [BC30451] 'RunningVaue' is not declared. It may be inaccessible due to its protection level."

    Change your defined RunningValue to some other name, because RunningValue is a builtin function.

  • Community Member Profile Picture
    on at

    Thanks Suresh Kulla,

    Now It's Working Fine

    Thanks,

    Ramesh.

  • mmv Profile Picture
    11,471 on at

    .

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)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans