Doing a superdataport

Franklin
Member Posts: 253
Good afternoon everyone.
I am a bit lost and need your help.
The five files have different names.
I wish I could use a dataport to import them all at once but I can not CurrFile variable renaming so go changing the name of different file.
I would also like to launch this dataport from an only process report but I can´t launch it from an integer type DataItem. It gives me an error.
Any suggestions? :-k :-k
EDIT: For example,
Dataport 50001
Dataitem 1 -- Table 50001 -- Import the file c:\users\me\folder\file50001.txt
Dataitem 2 -- Table 50002 -- Import the file c:\users\me\folder\file50002.txt
Dataitem 3 -- Table 50003 -- Import the file c:\users\me\folder\file50003.txt
I am a bit lost and need your help.
The five files have different names.
I wish I could use a dataport to import them all at once but I can not CurrFile variable renaming so go changing the name of different file.
I would also like to launch this dataport from an only process report but I can´t launch it from an integer type DataItem. It gives me an error.
Any suggestions? :-k :-k
EDIT: For example,
Dataport 50001
Dataitem 1 -- Table 50001 -- Import the file c:\users\me\folder\file50001.txt
Dataitem 2 -- Table 50002 -- Import the file c:\users\me\folder\file50002.txt
Dataitem 3 -- Table 50003 -- Import the file c:\users\me\folder\file50003.txt
0
Comments
-
Back in Navision 3.7 we did this by changing the CurrDataport.FILENAME in the OnPredataItem trigger for each of the tables we were importing into.0
-
Thx matttrax it worked.
Now I have another question, how can i do the file is imported or not based on a parameter of the request form for example, if a variable is true the file will be imported but if it is false jumps.
I have write... IF vTipo = vTipo :: Exportacion THEN EXIT in all triggers but it always import the file.0 -
EXIT just leaves the current trigger / function and jumps to the next one. So when you leave OnPreDataItem you just move to OnBeforeImportRecord.
Look up the functions associated with CurrDataport. You will find the one you are looking for. You can find them using F5, the Symbol Menu, when you're in the code.0 -
Thx again. The function was .BREAK. I didn´t know this function. \:D/0
-
You got it. Nice to see I can point someone in the right direction and they don't just back saying "Just tell me the answer!!"
Well done.
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