How to compare 2 field data in two table?

xin
Member Posts: 10
Hi,
Do anyone know how to compare field data locate at different table by their Field ID/Field Caption?
Eg:
Table(Item) Table(Field)
ID 1 - No. ID 1 No.
How can we differential the value is same / different? & there is alot field need to be compare..
Please help..
Do anyone know how to compare field data locate at different table by their Field ID/Field Caption?
Eg:
Table(Item) Table(Field)
ID 1 - No. ID 1 No.
How can we differential the value is same / different? & there is alot field need to be compare..
Please help..
0
Comments
-
Assuming you need to do this in code. There a table called Field. Add a record variable of that subtype and use the symbol menu to see all of the fields in the Field table. That should get you started.0
-
I think that using RecordRef and FieldRef will be best way. You can iterate through all fields of one table and search for corresponding field in second one by name, caption or ID.0
-
Thanks matttrax and kine..
I will try on it..
Anyways.. kine, do you have any example of how to use the RecordRef and FieldRef?0 -
You will find many examples on this forum, documentation and e.g. in Change log codeunit...0
-
i think this tip&trick can solve your problem at 80%...
http://www.mibuso.com/forum/viewtopic.php?f=5&t=224570
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