Dataport

jglaisher
Member Posts: 2
Using Navision 4.0 SP3:
I am trying to find out if it is possible to run a dataport to import values into the Gen. Journal Line Table, however, during the import, I need to validate information from another table to find out if the import is accurate.
Gen. Journal Line table import contains "Job No.", "Job Cost Type", and "Account No." fields. These fields are also found in the Job table and I need to look up the "Job No." and "Job Cost Type" fields from the import, find the record in the Job table that contains them, and return the "Material Cost G/L Account" or "Labour Cost G/L Account" field to compare with the "Account No." being imported. (this is being done purely to verify that the import file contains the correct G/L code for the job type being performed).
Sample import:
Job No.: 123
Job Cost Type: Labour
Account No.: 555-555-5555
Sample Job Table:
Job No.: 123
Materials Cost G/L Account: 555-555-5555
Labour Cost G/L Account: 555-555-5556
So the import process would state that "Job: 123 with Labour: 555-555-5555 is an invalid G/L account"
Is this possible within a Dataport, and if so, can someone point me in the right direction? It would be much appreciated!
Regards,
Jonathan
I am trying to find out if it is possible to run a dataport to import values into the Gen. Journal Line Table, however, during the import, I need to validate information from another table to find out if the import is accurate.
Gen. Journal Line table import contains "Job No.", "Job Cost Type", and "Account No." fields. These fields are also found in the Job table and I need to look up the "Job No." and "Job Cost Type" fields from the import, find the record in the Job table that contains them, and return the "Material Cost G/L Account" or "Labour Cost G/L Account" field to compare with the "Account No." being imported. (this is being done purely to verify that the import file contains the correct G/L code for the job type being performed).
Sample import:
Job No.: 123
Job Cost Type: Labour
Account No.: 555-555-5555
Sample Job Table:
Job No.: 123
Materials Cost G/L Account: 555-555-5555
Labour Cost G/L Account: 555-555-5556
So the import process would state that "Job: 123 with Labour: 555-555-5555 is an invalid G/L account"
Is this possible within a Dataport, and if so, can someone point me in the right direction? It would be much appreciated!
Regards,
Jonathan
0
Comments
-
You can do within dataport anything you can do in the C/AL. Just select the proper trigger and write your validating code...0
-
You have to validate your calcfeilds either by Validate function on proper trigger or you can set your calcfeilds property to "Yes" on Dataport feild property0
-
abhinav0408 wrote:You have to validate your calcfeilds either by Validate function on proper trigger or you can set your calcfeilds property to "Yes" on Dataport feild property0
-
While importing through Dataports Calcfeilds might not validate properly.So we have to validate them with the help of code0
-
-
I would import them into variables And map them back to nav fields in the order you usually enter a line manually
validating those that need validation0
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