not able to print report in one row

priti
Member Posts: 9
In my Report i have 3 dataitems (Indented in below manner)
Transfer shipment header
Transfer shipment Line
Item Ledger Entry
Some Code is Written in ILE dataitem foe Expiry date calculation.Thats y i have to use body of ILE to print report.But for 1 "item no "there are many lines in ILE with different Lot No .
I wanted the structure of report should be
Column 1 Column 2 Column 3
Item Description|Lot No1| Qantity|
|Lot No2|
|Lot NO3|
But my item description and quantity is repeating with lot no.
Please help me out how to write code for this.
Transfer shipment header
Transfer shipment Line
Item Ledger Entry
Some Code is Written in ILE dataitem foe Expiry date calculation.Thats y i have to use body of ILE to print report.But for 1 "item no "there are many lines in ILE with different Lot No .
I wanted the structure of report should be
Column 1 Column 2 Column 3
Item Description|Lot No1| Qantity|
|Lot No2|
|Lot NO3|
But my item description and quantity is repeating with lot no.
Please help me out how to write code for this.
0
Comments
-
it will be much easier if you arrange this way:
Item Description
|Lot No1| Qty|
|Lot No2| Qty|
|Lot No3| Qty|
so, get the item description from transfer shipment line, and put it in transfer shipment line section, lot & qty in ILE section.0 -
Thnx j.marselo,
But i want it in a single row.0 -
Just group the Lot No. and calculate sum for Quantity0
-
Thnx abhivav ,
but the description should also be printed only once for many lot Nos.0 -
you need code to do that. define var: desclast - text and desc - text
in ILE - onpredataitem(), desc := ''; desclast := '';
in ILE - onaftergetrecord():
if desclast = ILE."description" then desc := ''
else begin
desclast := ILE."description";
desc := ILE."description';
end;
then use var: desc in your report section.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