Make a dataport write on different lines

A_Ruff
Member Posts: 6
Hello, mibuso community.
I'm sorry in advance if my English seems approximative.
So I'm working on a way for my company to edit "expedition files" that allow the company making the delivery to get information about them.
The structure of one of those files looks like this :
Expedition header
Details for expedition #1
Package 1
Package 2
...
Package N
Details for expedition #2
Package 1
...
And so on.
So I've been searching for a way to be able to write a dataport that would generate a file with this structure, but I can't seem to find a way to write on different lines : on each try, it first displayed all the lines "Details for expedition", then all the lines "Package". I'm using Navision Financials 2.60.A (french version)
If you could help me, I would be very thankful !
I'm sorry in advance if my English seems approximative.
So I'm working on a way for my company to edit "expedition files" that allow the company making the delivery to get information about them.
The structure of one of those files looks like this :
Expedition header
Details for expedition #1
Package 1
Package 2
...
Package N
Details for expedition #2
Package 1
...
And so on.
So I've been searching for a way to be able to write a dataport that would generate a file with this structure, but I can't seem to find a way to write on different lines : on each try, it first displayed all the lines "Details for expedition", then all the lines "Package". I'm using Navision Financials 2.60.A (french version)
If you could help me, I would be very thankful !
0
Comments
-
Hi A_Ruff,
the best of doing this, is to create a textfile using commands like
File.CREATE
File.WRITE
File.Close
In that case, you are flexible.
Ernsthttp://www.vssolutions NAV-Outlook synchronisation re-invented.0 -
Thanks Ernst!
As I'm only an intern, I don't have Navision at home, so I'll try this tomorrow and I'll keep you posted!0 -
Hi again !
So, I tried using a File.OPEN to modify the file, but it still dosn't work : the file outputted by the dataport is inaccessible.
Moreover, after trying to output it in a different file, I had only one barcode. I can't seem to understand how to create a loop that would check the detail of my table "Expedition" to generate a different bar code for each item in the expedition.0 -
You can simply create a report that exports to a text file and use it instead of a dataport.
With the report you will be able to index areas so you can have the "header" and "detail" for each record and for each record of the detail use a different (or even multiple, since you will control the code) lines if you want to.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