Dynamically assign table to dataport
nismo2006
Member Posts: 22
Hello everyone,
I was wondering if it was even possible to assign the table number to the dataport dynamically. The reason I want to do this is I have multiple tables that I need to archive and delete and instead of defining 50 different dataports, I would rather define one and allow the table to be defined on the request form. I tried but was unsuccessful and thought before I quit trying, I would ask to see if anyone else has tried. Thanks for the help in advance.
I was wondering if it was even possible to assign the table number to the dataport dynamically. The reason I want to do this is I have multiple tables that I need to archive and delete and instead of defining 50 different dataports, I would rather define one and allow the table to be defined on the request form. I tried but was unsuccessful and thought before I quit trying, I would ask to see if anyone else has tried. Thanks for the help in advance.
0
Comments
-
You can try to define some "generic" dataport, but you will need to save data like "table ID, field ID, field value" and all that in some way to be able to find correct record by primary key etc. Than you can use RecordRef and FieldRef to read and save the data.0
-
Thanks for the information. I will try it out and see if that will work.0
-
you can also create only 2 dataports (because nav accepts only 40 dataitems at time).
You have to add a lot of dataitems and dataport fields; it's a tedious work, and far less interesting and challenging than kine's solution, but it's an option0 -
it will be cheaper to create 50 dataports than one monster one. But more to the point, why dataports?David Singleton0
-
I thought that one single dataport that is dynamic would be a solution to cleaning up some custom tables. If there is a better solution to this, I would appreciate the suggestions.
Thanks in advance....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
- 322 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

