Dataport: records one after the other in same file.
Aravindh_Navision
Member Posts: 258
Hi Friends,
I need to create one dataport object and the same object will be used in many databases and companies. I need to create a text file/excel file in one particular path say c:\Test1.txt. While running the dataport object in all databases seperately one after the other, the details should be fetched and saved in the Test1.txt file like one after the other records preceding with company name.
Fields:
Column 1: Company Name
Column 2: "G/L Account"."No."
For example:
Output should be:
Company1,12121
Company2,13131
Company3,14141
Could anyone please let me know how to proceed with this?
Thanks and Regards,
Aravindh R.
I need to create one dataport object and the same object will be used in many databases and companies. I need to create a text file/excel file in one particular path say c:\Test1.txt. While running the dataport object in all databases seperately one after the other, the details should be fetched and saved in the Test1.txt file like one after the other records preceding with company name.
Fields:
Column 1: Company Name
Column 2: "G/L Account"."No."
For example:
Output should be:
Company1,12121
Company2,13131
Company3,14141
Could anyone please let me know how to proceed with this?
Thanks and Regards,
Aravindh R.
0
Comments
-
I suggest you create a new table and collect all data first. I understand that the data resides in multiple databases as well. If you are on SQL, you can use ADO or linked tables to retrieve that data. Finally you create your dataport to export the data in the way you like.No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0
-
Just loop though the company table, and change company on the required table on each iteration.David Singleton0
-
Luc Van Dyck wrote:...I understand that the data resides in multiple databases as well. ...
Oops I missed that bit. :oops:David Singleton0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions

