How to import file, but not based on primary key

hollydonut
Member Posts: 27
Hi all,
I have a table "My Table" with field A as primary Key, B, C , and D.
it has records :
A B C D
1 2 3 4
2 1 2 3
first i want to export field B, C, and D
After that i change the value of D in the export file and import it back to the table
How to do that??
Please help me, i'm new to navision.
I have a table "My Table" with field A as primary Key, B, C , and D.
it has records :
A B C D
1 2 3 4
2 1 2 3
first i want to export field B, C, and D
After that i change the value of D in the export file and import it back to the table
How to do that??
Please help me, i'm new to navision.
0
Comments
-
hollydonut wrote:Please help me, i'm new to navision.0
-
it is a requirement from my client.
Actually this is for physical inventory. We want to export the item number, location, and qty calculated.
After that user modify the qty based on real stock, and import it back to navision.0 -
why don't you use the physical inventory journal? it's easy.
that said, i think you've a lot of customization in that area :-k
now, please define what is your table, what are the fields and what is the primary key.
If you don't have the PK in the exported file, there's no way to update fields in the table, because you cannot identify on which record you have to put the new values0 -
actually what i want to export is the physical inventory journal from navision.
what i want try to do is to export some fields to a text file, and that text file is used by some handheld device to calculate quantity of item on warehouse.
And based on that device calculation i want to import it back to navision.0 -
you need to create a dataport with primary key fields + the fields you want to modify + additional fields you want for further information.
PK fields
-journal template name
-journal batch name
-line no.
field(s) to modify
-quantity calculated
additional fields
-item no.
-run the dataport and export the data.
-after the device reads the file, it has to modify the quantity field and then create a new text file with the modified quantity
-run the dataport to import the new file
-make sure to check if you need to run some validate trigger0 -
An idea: export encrypted (coded) the primary key and unscramble PK before import. Quite complicated by maybe helpful.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