Multiple Dataitems in Dataport

NavNewUser
Member Posts: 2
Hi,
I am trying to create a dataport to import Gen. Journal Line from csv file into NAV with the global dimension value selected. I have created a dataport to include dataitems Gen. Journal Line and Journal Line Dimension. The dataitemseparator is set as default (i.e. <<newline><newline>>, however even when I insert a blank line in my csv file, NAV doesn't seem to recognize the separator and is still looking for the required field in the 1st dataitem (i.e. Gen. Journal Line).
Is there anyway I can create a dataport to import general journal lines with the global dimension value pre-selected?
Any comment will be greatly appreciated. I have been looking at this for 2 days and still couldn't find a solution!
I am trying to create a dataport to import Gen. Journal Line from csv file into NAV with the global dimension value selected. I have created a dataport to include dataitems Gen. Journal Line and Journal Line Dimension. The dataitemseparator is set as default (i.e. <<newline><newline>>, however even when I insert a blank line in my csv file, NAV doesn't seem to recognize the separator and is still looking for the required field in the 1st dataitem (i.e. Gen. Journal Line).
Is there anyway I can create a dataport to import general journal lines with the global dimension value pre-selected?
Any comment will be greatly appreciated. I have been looking at this for 2 days and still couldn't find a solution!
0
Comments
-
You need to put the dimensions of the journal line on the SAME line as the journal line in global variables and in the OnBeforeImportRecord-trigger you need to clear those variables and in the OnAfterImportRecord-trigger you need to save them.
In case you want to use multiple dataitems, you need to put first ALL journal lines, then leave a blank line and THEN you can put ALL dimensions of ALL journal lines.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
And if you are importing just 2 dimensions (you wrote about global dim...), you need to insert the record through Code. Because you need to insert the line first (assigning PK fields like Template and Batch code and line no.), after that validate the other fields including Dimension shortcut 1 and 2 and call Modify(true) on the record. In this way the Journal Line dimension table will be filled correctly.0
-
Off Topic Tangent-> If your new to nav and before you get rolling, you might want to think about how you or your customer is going to use dimensions so you won't ahve to read posts like this years down the road..
http://www.mibuso.com/forum/viewtopic.php?t=25604
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