Creating fields and tables by code

karstenrobert
Member Posts: 27
Hi,
I can use the fields table to create new fields and even new tables.
That works quiete well.
(I wouldn't want to create a few hundred fields manually for this migration)
But is it possible to set field properties by code as well?
Ideally I would export fields with their properties from database A and import them with these properties for migration purposes into database B.
As I found no way to set properties while creating fields via the fields table I have to manually created Option Fields as I can't set the Option Strings.
Hope someone knows an answer.
I can use the fields table to create new fields and even new tables.
That works quiete well.
(I wouldn't want to create a few hundred fields manually for this migration)
But is it possible to set field properties by code as well?
Ideally I would export fields with their properties from database A and import them with these properties for migration purposes into database B.
As I found no way to set properties while creating fields via the fields table I have to manually created Option Fields as I can't set the Option Strings.
Hope someone knows an answer.
Karsten Frank
MCP - Dynamics NAV Developer
MCP - Dynamics NAV Developer
0
Comments
-
Hi,
I have tried to create the table by code (not manually) but i got an error message ' Tabledata **** doesnot exist'..
can you please tel me the process how to create the table by code.
thanks in advance.0 -
I guess you mean a temporary table?
Take a look at the following post: http://www.mibuso.com/forum/viewtopic.php?t=11782
Or http://www.mibuso.com/forum/viewtopic.php?t=24537 and read the reply of jlandeen.[/url]
Tino Ruijs
Microsoft Dynamics NAV specialist0 -
You can try to use C/Front (if you have a appropriate granule for that) and call it within NAV to be able to create new table with fields within NAV. C/Front has functions for that...0
-
Hi,
If I get that right. It is possible to create fields(with properties like "option string") and tables by using C/Front?Karsten Frank
MCP - Dynamics NAV Developer0 -
company wrote:Hi,
I have tried to create the table by code (not manually) but i got an error message ' Tabledata **** doesnot exist'..
can you please tel me the process how to create the table by code.
thanks in advance.
I'm trying to do that, too! Any help? ](*,)Thank you very much to all users who actively participate in this forum!0 -
just look into the C/Front demo application (file sample.c). There is function verifyCreateTable.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