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)

Setdata and Getdata in report NAV 2013

(0) ShareShare
ReportReport
Posted on by 4,824

When I open the layout of the Cronus Database for NAV 2013, I see a lot of <<Expr>> all over, and it gets worse when opening one of these expression, because the values are just Code.GetData and a number. It is hard to understand and see which field is which in the layout.  And I have also read the 80433 Manual and it mentions there will be no more getdata and setdata function. So do I have to create a new report from scratch? If not, is there anyway to convert getdata to a value which can easily be seen from the layout. Your advice is greatly apprecaiated. Thank you!

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Roberto Stefanetti Profile Picture
    12,998 on at

    Hi,

    you can upgrade a report from 2009 to 2013 to maintain setdata\getdata functions as is if you like.

    Search & read Claus Lundstrøm posts (the inventor of sql reporting services subset & rdlc technology for NAV 2009, 2013..);

    Here a very nice link about report 206 redesigning technology and other tips

    mibuso.com/.../simplifying-document-reports-in-nav-2013

    Others posts here

    mibuso.com/.../reporting

    community.dynamics.com/.../how-to-define-setdata-and-getdata-in-rtc-reports-in-dynamics-nav-navision.aspx

  • Saurav.Dhyani Profile Picture
    14,380 Super User 2025 Season 2 on at

    Hi Snoppy,

    The Location of SetData in NAV 2013 have been changed. Please go through saurav-nav.blogspot.com/.../nav-2013-report-header-doesnt-get.html.

    I hope this will help. 

    Let me know if any issues.

  • snoppy Profile Picture
    4,824 on at

    Thank you for your experts' reply! I read the post per as below from this  link mibuso.com/.../simplifying-document-reports-in-nav-2013

    in textbox in body so we actually know what “=Code.GetData(20,1)” will evaluate to when executing the report. So let’s start counting 1,2.3,4….20, found it. I feel like being in first grade again when I sit here and count lines :-(. Well maybe just me. When reaching line 20, I realize that “=Code.GetData(20,1)” has this value “Cstr(Fields!PaymentTermsDesc.Value)”

    Which line? Where do I start to count?  Thank you

  • Damogran Profile Picture
    360 on at

    I know your pain, Snoppy.

    Here's what I did to find out what getdata should i use:

    First find out where is the hidden field that has the setdata expression, then copy its expression to clipboard.

    Open Excel (or notepad++, or Programmers Notepad whatever can tell you line numbers), and paste the expression there.

    Then just note the row number for quick reference.

    Unfortunately I have been unable to find any way to see the source within Visual Studio so far, so this is the only possibility.

    And, if you decide to redo the report from scratch, please read ClausL's excellent blog about sacking GetData and SetData altogether:

    mibuso.com/.../simplifying-document-reports-in-nav-2013

    Regards, urpok

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