Get Dataport field Separator at Runtime
flint
Member Posts: 44
hi,
I have to develop a dataport ans i want to write some extra data manually at run time on every exported record(actually another dataitem from a table)
The probleme is that i want to get the record separator used to add my fields
manually .
Is there any methode to get the field separator used in a given dataport at runtime ?
Thanks
I have to develop a dataport ans i want to write some extra data manually at run time on every exported record(actually another dataitem from a table)
The probleme is that i want to get the record separator used to add my fields
manually .
Is there any methode to get the field separator used in a given dataport at runtime ?
Thanks
0
Comments
-
No, it is not possible.0
-
Hi,
I presume that you're using a standard dataport where the fields that are exported are specified in the field designer (dataport dateitem->view->dataport fields).
If so what you want to do is add variables to this list and populate these variables with the extra data you want to export, this way you won't have to worry about the seperator the dataport is using.
Hope that helps,
Remco0 -
Hi,
Actually what i want to do is :
One my dataport export the records from the table, i search records from another table and append the fields of this record to the first record(by calling currfile.WRITE(field1+fieldseparator+field2...),.
To do that, i need to know the fields separator used by the standard Dataport
Thanks for your help0 -
Hi,
Much better way will be to setup some global variables in your dataport, and to list them in Dataport fields like normal fields from the table.
Then in OnBeforeExport populate your variables with data from the second table, ant that's it.
Regards,
SlawekSlawek Guzek - www.yitron.co.uk
Business Central, MS SQL Server, Wherescape RED;0 -
I agree with Slawek but you should also make sure you clear the variables before each record.
Generally, I use all variables rather than a mixture of fields and variables.Experience is what you get when you hoped to get money0 -
Hi,
thanks a lot it was very helfull O:)0
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
- 611 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 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

