Subform not updating from main form....

boywonder
Member Posts: 179
The problem is that my subform will not update from the main form without clicking on the subform and running up and down the records.
On my main form I have just 1 control containing the global 'LocationFilter', there is no data on the main form.
I then have a subform which contains several FlowFields across it.
My 'LocationFilter' works because when I directly click on one of the subform records after applying it I get the correct filtered amount.
To get this to work in the OnValidate trigger of the 'LocationFilter' I have the following:
MySubformData.SETFILTER("Location Filter",LocationFilter);
CurrForm.Subform1.FORM.SETTABLEVIEW(MySubformData);
I have tried the obvious CurrForm.SubForm1.UPDATE in there but get a message that it cannot be updated.
Please help me asap anybody, it will be SO VERY appreciated
On my main form I have just 1 control containing the global 'LocationFilter', there is no data on the main form.
I then have a subform which contains several FlowFields across it.
My 'LocationFilter' works because when I directly click on one of the subform records after applying it I get the correct filtered amount.
To get this to work in the OnValidate trigger of the 'LocationFilter' I have the following:
MySubformData.SETFILTER("Location Filter",LocationFilter);
CurrForm.Subform1.FORM.SETTABLEVIEW(MySubformData);
I have tried the obvious CurrForm.SubForm1.UPDATE in there but get a message that it cannot be updated.
Please help me asap anybody, it will be SO VERY appreciated


0
Comments
-
Solved it now - DOH!!
I created a function in the subform called UpdateForm with just the CurrForm.UPDATE line of code....
Then called this from the main form and no more errors \:D/ \:D/ \:D/
Sorry to post this, should have tried a bit longer :oops:0 -
Can you change your title to something meaningful?
Please see Forum Rule #7: Forum Rules.
If someone posts a topic it is (mostly) because (s)he needs help. So it is best to describe the problem in the title.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!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
- 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