Table Relations

asembereng
Member Posts: 220
I want to create a table relation in such a way that any changes made on the main table will reflect on all other table having relations to the main table.
I used to table field property to create table relations but it only allows me to relate only one table. whenever i try relating more than one table i have this error
"the cursor is in front of an invalid character"
Does anyone knows how to do this? All i want is to create a table relation in such a way that any changes made on the main table will reflect on all other table having relations to the main table.
I used to table field property to create table relations but it only allows me to relate only one table. whenever i try relating more than one table i have this error
"the cursor is in front of an invalid character"
Does anyone knows how to do this? All i want is to create a table relation in such a way that any changes made on the main table will reflect on all other table having relations to the main table.
0
Comments
-
You define the table relations on the other tables. Let's say you have a master table (Customer) with a primary key (No.) and you have several tables with a field ("Customer No.") that is related to the Customer table. Set the table relation on the "Customer No." field on each of those tables.There are no bugs - only undocumented features.0
-
Thank you. Its workimg. If i import data to the main table will the changes reflected on all other tables?
Basically the reason why i am doing all this is because we have change to new set of numbers and we want to replace the old numbers by new numbers and we want this to take effect in all tables where we have employee numbers as a field there.0 -
This behavior is tied to the rename function of the main table. When you rename the primary key of a main table record the system locates the records for related tables and renames the field value.
If you simply import new values into the main table they will be treated as new records (insert) and no renaming will occur. Your import process must match the new records with the old records and execute a rename.There are no bugs - only undocumented features.0 -
Sounds pretty interesting. Any idea on how to achieve that?0
-
You will need to establish a relation between the old a new records. Retrieve the old record and use the RENAME function to set the new value.There are no bugs - only undocumented features.0
-
I tried doing it but it always insert a new record. Can you help me on this please?
I have two fields from a table called employee, the two fields are called No. and ssno. I want to rename No. from the txt file if the other field on the text file has the same number as that of No. on the table.
For example, the text file
No. SSNO.
A123 123
B123 345
I want field No. to be replaced on the table if SSNO on the text file is the same as that on the table.
Please help me on this.0 -
Retrieve the employee record that matches "SSNO.", then use RENAME to rename the primary key;
IF Employee.GET("SSNO.") THEN
Employee.RENAME("No.");There are no bugs - only undocumented features.0 -
Thanks0
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