Export Data

Horse06
Member Posts: 496
Hi Expert, I need your help! I have created a program to export the data, but I have little trouble here. Every time, only one particular field in the first line is missing and the rest of them are fine. How to fix it? Appreciate it!!
0
Comments
-
The information is not sufficient..
is it a dataport or report? how you have programmed the logic? is it the first field?0 -
[Topic moved from 'NAV Tips & Tricks' to 'NAV/Navision Classic Client' forum]0
-
This is using report export. This is based on the sales header and tracking dataport.
I want to export one data (varchar) from the trackging table, but if the code is added to the tracking onafterrecord, it is fine, but data always goes down to the next line after the export. If the code is added to the sales header onafterrecord, this time the the data are wrong and some are empty and some grab the data from the first field.
Please advise!
How to use the if condition? If the data is null, fill the field with None, else pull the orginal data. Mine does not work.
if Trackink."Tracking Number" ='' then
trackingnumber :='none'
else
trackingnumber := Tracking."Tracking Number";
Appreciate it!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