Facing Problem in adding a new field in a table
 
            
                
                    hksharmaa                
                
                    Member Posts: 55                
            
                        
            
                    I had created a new field in Item Table which is linked with my item. Now i want that in Item Journal line that when i select that item the new field that i had created must come there with the value                
                0                
            Comments
- 
            You have to add your field also to the Item Journal Line Table.
 If you look at the c/al code on that table you will find
 Item No. - OnValidate()
 .
 .
 GetItem;
 Item.TESTFIELD(Blocked,FALSE);
 Description := Item.Description;
 "Description 2" := Item."Description 2";
 "Inventory Posting Group" := Item."Inventory Posting Group";
 "Product Group Code" := Item."Product Group Code";
 "YourField" := Item."YourField"; //add in your fieldinfo
 .
 .
 If you don't have access to the code on the form you will have to create a lookup type flowfield.
 Then add your field to the form.
 Ps. Welcome to the forum.
 Please use a more descriptive Subject line - so others in the future can find the answer if they have the same problem.
 Please read the forum rules
 http://www.mibuso.com/forum/viewtopic.php?t=9884
 Enjoy!0
- 
            I have wtitten the code but i am not getting the value in my new field.............In the Item table there is a field called "Print Name". I want this field to come in Item Journal Line Table .....i have also created a new field in the Item journal line table named as "Print Name".as soon as i select the Item in the Item Journal line Table, the Print name should also come along with it along with the Item in the Journal item Table.0
- 
            Please edit your Topic title and change it something more meaningful. People don't tend to read/answer "Please help me" topics.0
- 
            In the Item Journal Line on Valiadate trigger of Item No. the following code is written:GetItem;
 Item.TESTFIELD(Blocked,FALSE);
 Description := Item.Description;
 "Inventory Posting Group" := Item."Inventory Posting Group";
 "Item Category Code" := Item."Item Category Code";
 "Product Group Code" := Item."Product Group Code";
 Add your line after the code
 YourField := Item.YourfieldCA Sandeep Singla
 http://ssdynamics.co.in0
- 
            It Worked .............Thanks A Lot............. 0 0
- 
            ssingla wrote:In the Item Journal Line on Valiadate trigger of Item No. the following code is written:GetItem;
 Item.TESTFIELD(Blocked,FALSE);
 Description := Item.Description;
 "Inventory Posting Group" := Item."Inventory Posting Group";
 "Item Category Code" := Item."Item Category Code";
 "Product Group Code" := Item."Product Group Code";
 Add your line after the code
 YourField := Item.Yourfield
 Looks familiar 0 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


