Dataports
machuma
Member Posts: 2
Hi
I am a newbie.
Please can you help me. I need to create a single dataport to replace several dataports that we are using. The dataports all export data to a text file in report form, but for different companies(each with its own filters). They all use one dataitem, Sales Invoice Line. How do I set the different filters to run one after the other and separate the reports for each company in the final text file? Apologies in advance if this already exists or is way simple. I did look but could not find it. ](*,)
I am a newbie.
Please can you help me. I need to create a single dataport to replace several dataports that we are using. The dataports all export data to a text file in report form, but for different companies(each with its own filters). They all use one dataitem, Sales Invoice Line. How do I set the different filters to run one after the other and separate the reports for each company in the final text file? Apologies in advance if this already exists or is way simple. I did look but could not find it. ](*,)
Here we go again.....Machuma
0
Comments
-
Hi machuma,
this doesn't sound easy... every company has different filters? It may work when you repeat the data item per company, and set the requiredfilterfields property, and use changecompany in the OnPreDataItem trigger. The sections per company would be separated with an extra CRLF (standard behaviour). But thats not really easy and error-prone to use IMHO. I would create a setup table:
companyname
filename
filter parameter for field 1
filter parameter for field 2
...
This table will be used by a report or codeunit which creates one or several files to export the required data. You have to code everything yourself though, but it is easier to use in the long run and can be automated with NAS.
with best regards
Jens0
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