same label printed more than once

airam
Member Posts: 91
hey all,
i am new to NAV and i was given the task to create a report with a label layout. but my main concern, and where i got stuck is when i had to loop for the same label a number of times where the quantity is greater than 1. since the amount of labels depends on the quantity of each item. 3 of a product means 3 labels etc.
i found a post on this forum similar to what i need, and the solution was to create an integer dataitem, but i can't do this in my case as the Quantity datatype is decimal since it is being used in other tables which requires the quantity to be in decimal (the quantities in the table i need are all whole numbers, but still in decimal format)
if anyone has another solution please let me know
much appreciated
i am new to NAV and i was given the task to create a report with a label layout. but my main concern, and where i got stuck is when i had to loop for the same label a number of times where the quantity is greater than 1. since the amount of labels depends on the quantity of each item. 3 of a product means 3 labels etc.
i found a post on this forum similar to what i need, and the solution was to create an integer dataitem, but i can't do this in my case as the Quantity datatype is decimal since it is being used in other tables which requires the quantity to be in decimal (the quantities in the table i need are all whole numbers, but still in decimal format)
if anyone has another solution please let me know

0
Answers
-
Base your report on a temptable.
In the OnPreReport-trigger, insert x-number of records per item in your temptable:
Quantity = 3 -> insert 3 records in your temptable
Quantity = 1 -> insert 1 record
Quantity = 0 -> don't insert a record
Now looping through your temptable, you can print one label per record.No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0 -
aa okii i try it out and i'll let you know, thanks a lot for your quick reply!!0
-
Why not use the Integer dataitem? Just the OnPreDataItem to set the proper range.Regards
Peter0 -
[Topic moved from 'NAV 2009' forum to 'NAV/Navision' forum]Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
thanks a lot Luc Van Dyck, it worked!!0
-
Great.
Please mark your topic as solved.
No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)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