Setdata and Getdata in RTC - ?
krithika
Member Posts: 56
What is the use of Setdata and Getdata in RTC (code.getdata,etc) ,why it is used ? and how to use that functions.
Unable to get that concepts . :?
Thanks in Advance
Unable to get that concepts . :?
Thanks in Advance
0
Comments
-
If you want do show data from the dataset in header, or footer, you need to refer to a reportitem (textbox) you can't directly refer to the dataset field.
SetData, GetData is used to simplify this, so you don't need to mess around with 20-30 hidden textboxes to display header/footer data. You just need at least one textbox, there you have your data separated by a delimiter (char 177) with setdata you bind that data to a global variable. Once this this data is bound to that variable, you nolonger relay on the textbox being available on the current page (for example if you have 3 tables for different sections of your report, like in sales invoice, you can't refer your headers data to a textbox directly because that textox will never be available on all pages, because you have 3 different tables and the textbox can only bi in one of them).
Therefore you need to the setdata asign the data to this global variable so its available on all pages.
GetData obviously gets that separated data back to display it.
I hope this was understandable, because i found it hard to explain, actually.
BTW: The same applies to SetPicture / GetPicture0 -
Thanks Mohana and dev.ch.0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
