Report looping (help needed)

Resender
Member Posts: 119
For one of our clients we're making a new waybill report.
On each page of the report we have 12 lines with the goods.
Now under the goods we want the barcodes for those goods,7 lines in total.The barcodes have to be pasted together and you have to go the next line if the length of the barcodes
supersedes the length of the text (137 characters).
And here lies my problem, the barcodes are added together and a new line is taken when their length goes over 137, but on the following pages we start back off with the first barcode and not with the one following the last one printed on the previous page.
The structure of the report is like this
Waybill*****************Waybill1
-Integer****************Pages
--Waybill***************Waybill
---Integer**************NO GOODS
---Waybill Goods******Waybill goods
----Waybill Parcel No.*Waybill Parcel No.
If anyone could give me a clue on how to do it that would be greatly appreciated.
On each page of the report we have 12 lines with the goods.
Now under the goods we want the barcodes for those goods,7 lines in total.The barcodes have to be pasted together and you have to go the next line if the length of the barcodes
supersedes the length of the text (137 characters).
And here lies my problem, the barcodes are added together and a new line is taken when their length goes over 137, but on the following pages we start back off with the first barcode and not with the one following the last one printed on the previous page.
The structure of the report is like this
Waybill*****************Waybill1
-Integer****************Pages
--Waybill***************Waybill
---Integer**************NO GOODS
---Waybill Goods******Waybill goods
----Waybill Parcel No.*Waybill Parcel No.
If anyone could give me a clue on how to do it that would be greatly appreciated.
0
Comments
-
if you are printing bar code as a text by placing the textbox in the report and try using wildcard operators like '\\' as suffix to your barcode value, which moves the cursor to the new line.
Hope this should work...--
Regards,
Raveendran.BS0 -
raveendran.s wrote:if you are printing bar code as a text by placing the textbox in the report and try using wildcard operators like '\\' as suffix to your barcode value, which moves the cursor to the new line.
Hope this should work...
(tBarcode[1]-tBarcode[7]).
These are filled in from an array called tBarcode, which is of the datatype text with a length of 137 and has 7 dimensions.
So tBarcode[1] gets filled with the barcodes untill they either superceeds or are equal to 137.
Then we go to the next dimension.
On the first page I need to show the barcodes that fit into dimension 1 - 7, on the second page those that would go into dimension 8-14, ect...
The barcodes don't all have equal lengths, I know it should be an easy solution but being an SQL guy my mind allways want to get the equivelant of 'get value of field Y of record X in table Z' and that's not really possible in navision.0 -
Wel the solution we did was to fill a text array, check how many pages it would need to show all the barcodes.
If this exeded the number of pages that we're needed to show the goods we would use the amount of pages for the barcodes as the total amount for the report, if not we would use the goods pages.
Then we would the array in the loop that navision provides.
I find the entire process highly inefficient since you can't really see what happens and why and you're stuck within the parameter of a predefined variable. Which limits your options on what to do when you exeed those parameters which can happen.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