Enable the boolean field based on another table's boolean field

Jacob1227
Member Posts: 128
Hi All,
I have two tables: I have two boolean fields in each table. If I disable(untick) the first table's boolean field, then the second table's field should enable(tick) automatically.
Example:
1)Item Variant table has 'No Variant' field
2)Item Table has 'Variant Required' field
If the No variant field in Item Variant table is disable (untick) then the Variant Required table's field Variant Required should automatically enabled(ticked).
Please guide me to do the above process.
Thanks in advance,
Jacob A.
I have two tables: I have two boolean fields in each table. If I disable(untick) the first table's boolean field, then the second table's field should enable(tick) automatically.
Example:
1)Item Variant table has 'No Variant' field
2)Item Table has 'Variant Required' field
If the No variant field in Item Variant table is disable (untick) then the Variant Required table's field Variant Required should automatically enabled(ticked).
Please guide me to do the above process.
Thanks in advance,
Jacob A.
0
Answers
-
1. Depending on surround functionality you can Variant Required change to Flowfield
2. Enable and tick are different things.0 -
Hey Jacob,
I am pretty new to NAV so my answer might be wrong.
If I were you I would write this code to Item Variant table, onModify trigger. Call the ITEM table, set your condition and then modify.ItemRec.RESET; ItemRec.SETRANGE(); // Your filter here IF ItemRec.FINDSET THEN REPEAT IF "No Variant" = FALSE THEN BEGIN ItemRec."Variant Required" := TRUE; ItemRec.MODIFY; END; UNTIL ItemRec.NEXT = 0;
0 -
And what did you tried so far?Thanks
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/1
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