Utility of the Integer DataItem in Reports

write2sourav
Member Posts: 113
Hi,
What is the utility of the "Integer" DataItem in Navision. It is used in many base reports. Plz help
0
Comments
-
In dataports, you need to use a table, not a temptable to loop for printing.
Problem can be that you DON'T have a table, but only a temptable or you know you have to loop the dataitem 4 times. In these cases you need to use anywat a 'real' table. The virtual table "Integer" can be used for this. With this you can loop the dataitem 4 times or so many times as you have records in your temptable that you want to print.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
One good example for newbies would be Report 10074 "Sales Invoice" (could be numbered differently in your version if you aren't on the North American version).
First, the detail of the Integer table: It is defined with records with a single column (Number), and the field is pre-populated by the system with integers (positive and negative) up to the largest supported integer in Navision.
In the report, we see a dataitem described as "PageLoop". It uses the Integer table as a dataitem because we want to give the user the option to print the number of copies they require without having to hit Print several times to get copies. The Integer record will get filtered based on the number of times the user requests the invoice to print.
So by filtering on the Number field dynamically during runtime, we can use the table to give us multiple invoice copies easily.Kristopher Webb
Microsoft Dynamics NAV Developer0 -
Captain DX4 wrote:One good example for newbies would be Report 10074 "Sales Invoice" (could be numbered differently in your version if you aren't on the North American version).Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
In simpler words, most DataItems implement a "For Each" loop, while the Integer table implements a "For" loop.0
-
Miklos Hollender wrote:In simpler words, most DataItems implement a "For Each" loop, while the Integer table implements a "For" loop.
Appreciate that, but as what Captain DX4 mention :
First, the detail of the Integer table: It is defined with records with a single column (Number), and the field is
pre-populated by the system with integers (positive and negative) up to the largest supported integer in Navision.
Who(Navision/User?) declare the column field: Number? Can it be reName/ Deleted/ Add Field/ Modify FieldName etc?
Dont understand the For Loop concept, we need the original data item will do if its the case and do filtering programmatically.0 -
Who(Navision/User?) declare the column field: Number? Can it be reName/ Deleted/ Add Field/ Modify FieldName etc?
http://msdn.microsoft.com/en-us/library/dd338858.aspxwe need the original data item will do if its the case and do filtering programmatically.
btw,
-look at the report 206 as suggested for a sample about: use integer to do "for loops."
-look at the how to's section: temporary tables in report (or a title similar to this), to see a sample about: how integer table can be used to print temporary tables.0
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