Import Export on different location

tularam
Member Posts: 97
Hi all,
I am using dataport for exporting the data. Here i like to do import and export via same dataport.
But one thing about it is if user selects import then it should import from the predefined location(C:\Import) and
if the user selects export then it should export to the predefined location different than the import location (C:\Export)
Is it possible using only one dataport?
I am using dataport for exporting the data. Here i like to do import and export via same dataport.
But one thing about it is if user selects import then it should import from the predefined location(C:\Import) and
if the user selects export then it should export to the predefined location different than the import location (C:\Export)
Is it possible using only one dataport?
0
Answers
-
By default, dataports provide the ability to select a file or a destination. The user selects whether it is an import or an export, and based on that selection you then enter a path or browse to a file.0
-
You can use CurrDataport.FILENAME to get or set the filename:FILENAME (Dataport)
Use this function to return the current setting of the FileName property of a dataport, and to set this property to a new value.
[CurrFileName] := FILENAME([NewFileName])
CurrFileName
Data type: text
The current setting of FileName property.
NewFileName
Data type: text
The new setting of FileName property.No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0 -
Luc Van Dyck wrote:You can use CurrDataport.FILENAME to get or set the filename:FILENAME (Dataport)
Use this function to return the current setting of the FileName property of a dataport, and to set this property to a new value.
[CurrFileName] := FILENAME([NewFileName])
CurrFileName
Data type: text
The current setting of FileName property.
NewFileName
Data type: text
The new setting of FileName property.
Yes i knew it but want different file location on import and export0 -
Then use it together with CurrDataport.IMPORT to know if someone is importing or exporting.No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)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