Problem with inserting through subform
 
            
                
                    tompynation                
                
                    Member Posts: 398                
            
                        
            
                    Hi,
I created a new TabPage on the Item Card, and added a new Subform on this tabpage...
In this subform there is a tablebox containing fields from a new Table:
Enabled Field No. Field Name Data Type Length Description
Yes 1 ID Integer
Yes 2 ItemCode Code 20
Yes 3 ChemischeGrondstof Text 50
Yes 4 PercentageTovItem Decimal
Yes 5 Omschrijving Text 50
Yes 6 Chemische Groep Text 1
Now in the properties of the subform i've added the subform link:
ItemCode=FIELD(No.)
This works fine cause i only see the correct lines in the subform
When i now press F3 in the subform to enter a new record,
The ItemCode should get filled in by the Item No from the Item card
But this is not working...
Is there anything else i have to setup before this ItemCode will get filled up with the ItemNumber from the Itemcard??
                I created a new TabPage on the Item Card, and added a new Subform on this tabpage...
In this subform there is a tablebox containing fields from a new Table:
Enabled Field No. Field Name Data Type Length Description
Yes 1 ID Integer
Yes 2 ItemCode Code 20
Yes 3 ChemischeGrondstof Text 50
Yes 4 PercentageTovItem Decimal
Yes 5 Omschrijving Text 50
Yes 6 Chemische Groep Text 1
Now in the properties of the subform i've added the subform link:
ItemCode=FIELD(No.)
This works fine cause i only see the correct lines in the subform
When i now press F3 in the subform to enter a new record,
The ItemCode should get filled in by the Item No from the Item card
But this is not working...
Is there anything else i have to setup before this ItemCode will get filled up with the ItemNumber from the Itemcard??
0                
            Answers
- 
            Hi
 What is the key of your new table ItemCode,Integer?
 You could use the delayedInsert property as in the Sales Order forms
 Albert0
- 
            deletedSandeep Prajapati
 Technical Consultant, MS Dynamics NAV0
- 
            The ID field is an autoincrement field...
 These are my keys in the new Table:
 Enabled Key SumIndexFields
 Yes ID
 Yes ItemCode PercentageTovItem
 I'm already using the delayed insert, but the ItemCode is not getting filled up...
 Normally when pressing F3 the itemcode should get filled up immediatly0
- 
            tompynation wrote:Hi,
 I created a new TabPage on the Item Card, and added a new Subform on this tabpage...
 In this subform there is a tablebox containing fields from a new Table:
 Enabled Field No. Field Name Data Type Length Description
 Yes 1 ID Integer
 Yes 2 ItemCode Code 20
 Yes 3 ChemischeGrondstof Text 50
 Yes 4 PercentageTovItem Decimal
 Yes 5 Omschrijving Text 50
 Yes 6 Chemische Groep Text 1
 Now in the properties of the subform i've added the subform link:
 ItemCode=FIELD(No.)
 This works fine cause i only see the correct lines in the subform
 When i now press F3 in the subform to enter a new record,
 The ItemCode should get filled in by the Item No from the Item card
 But this is not working...
 Is there anything else i have to setup before this ItemCode will get filled up with the ItemNumber from the Itemcard??
 This "Autofill" works only if the filtered field is part of primary key. Because you are using the ID as primary key, you need to set form property "PopulateAllFields" to autofill other fields that are not part of PK.0
- 
            Great the PopulateAllFields has done it \:D/
 Many thanks =D>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
- 323 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


