Loops in a report
sabzam
Member Posts: 1,149
Dear All,
I have some problem understanding the loops in a report. I am speaking
of loops similar to the one in the Sales Document Test.
In Other words what I need is to have a section which is to be looped for a number of times. In my case I have got a footer which is to be run 20 times since i have got an array which is to be displayed. Is there a way of forcing the footer to run 20 times instead of placing all the loop data manually?
Can anyone help me?
I have some problem understanding the loops in a report. I am speaking
of loops similar to the one in the Sales Document Test.
In Other words what I need is to have a section which is to be looped for a number of times. In my case I have got a footer which is to be run 20 times since i have got an array which is to be displayed. Is there a way of forcing the footer to run 20 times instead of placing all the loop data manually?
Can anyone help me?
0
Comments
-
I think you are trying to do something like this, similar to the copyLoop or PageLoop on some reports.
Add a section of type integer.
In the onPreDataItem trigger put SETRANGE(Number, 1, 20);
Add your footer section.
Add a textBox to that section with sourceExpr = Array[Integer.Number]
That should do the trick.0 -
I'll test it out and let you know whether it works properly0
-
Hi matttrax
It has worked properly. The only problem is this. I want it to act like a footer in the sense that the loop is to be run once at the very end of the report. Any idea of how to run a body with this characteristic?0 -
Hi Everybody,
I have got two inter-related loops, I.e for every time the loop is run another loop runs for 20 time or so. In this case since we must write
Setrange (Number ,1, x) instead of Number which variable could be used beause it seems that Navision has problems when other variables of the same type are used.0 -
here Number is a field name of a virtual table Integer
basically u do
Integer.SETRANGE(Integer.Number, 1, 20);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
- 611 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 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
