How to use Integer Table?

mdsr
Member Posts: 163
I have seen many report used integer table.I read a lot about it that it used as temp table ,copy data on multiple pages of report,as for loop
But i am not getting how it works step by step if anyone can know please tell me how it works
also when & why use more than one integer table like 2,3... integer table with different name.
thanks in advance
But i am not getting how it works step by step if anyone can know please tell me how it works
also when & why use more than one integer table like 2,3... integer table with different name.
thanks in advance
0
Best Answer
-
Hi @mdsr ,
The integer table is used for loop on "something" when you don't have a table for data item.
To do that, you create a data item on the integer table and, before it (in previous data item, onPreReport, onPreDataItem,..) you compile a temp table variable.
On the OnAfterGetRecord of the integer data item you manage manually the temp table (with findset, next,..) and compile some adding variable to use in dataitem.
You can filter the integer table using a SETRANGE on Number field in the OnPreDataItem or use CurrReport.QUIT to exit the report when find TempTable.NEXT=0.
The reason why you should use more than one integer table dataitem is depending on your report necessity: as you use Header Table and Line Table you may need to use Integer1 and Integer2.
This is used a lot especially when you need to calculate totals or filter tables in a unconventional manner.
Hope it helps,
Have a nice day1
Answers
-
Hi @mdsr ,
The integer table is used for loop on "something" when you don't have a table for data item.
To do that, you create a data item on the integer table and, before it (in previous data item, onPreReport, onPreDataItem,..) you compile a temp table variable.
On the OnAfterGetRecord of the integer data item you manage manually the temp table (with findset, next,..) and compile some adding variable to use in dataitem.
You can filter the integer table using a SETRANGE on Number field in the OnPreDataItem or use CurrReport.QUIT to exit the report when find TempTable.NEXT=0.
The reason why you should use more than one integer table dataitem is depending on your report necessity: as you use Header Table and Line Table you may need to use Integer1 and Integer2.
This is used a lot especially when you need to calculate totals or filter tables in a unconventional manner.
Hope it helps,
Have a nice day1
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K 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
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions