[solved] Grouping in output text file

madm
Member Posts: 92
I have created a text file which export data from a customized table (similar to shipment lines).
The output file is fine, but for some of the entries there are mulitple lines - in the file I just want to show the document and total weight.
eg
the output file gives as above, but i wish to show
If producing a report, I would use the grouping features, but this doesnt seem to work in a output file?
The output file is fine, but for some of the entries there are mulitple lines - in the file I just want to show the document and total weight.
eg
doc no date qty 1 01/01/01 20 2 02/01/01 10 3 03/01/01 30 3 03/01/01 50 4 02/01/01 60
the output file gives as above, but i wish to show
1 01/01/01 20 2 02/01/01 10 3 03/01/01 80 4 02/01/01 60
If producing a report, I would use the grouping features, but this doesnt seem to work in a output file?
0
Comments
-
You cannot group in dataport, but if you use report you can write the data in OnPostSection if SHOWOUTPUT is true and you will have the file. Dataports are for "simple" data export. If you want to do more things around, you can use codenit, report etc. and variable with FILE type to write into the file.0
-
kine wrote:You cannot group in dataport, but if you use report you can write the data in OnPostSection if SHOWOUTPUT is true and you will have the file. Dataports are for "simple" data export. If you want to do more things around, you can use codenit, report etc. and variable with FILE type to write into the file.
Thanks for your reply.. I am actually using the report / FILE method...
At the moment I have the file being created in the OnAfterGetRecord section..
edit : i have just moved the file into onpost, but this only gives the last line?0 -
It depends on how you set up the grouping. if you see on the screen the correct data, if you write the data into file in the correct sections OnPostSection trigger, you will have same output in file.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