Subform calling main form

sabzam
Member Posts: 1,149
Dear All,
Can a subform in some way or another call the main form?
Can a subform in some way or another call the main form?
0
Comments
-
sure yo can... just create a variable of type form, pointing the form you want, and call it's functions or run it... but... it will be a different instance of the form...0
-
I don't know if your question belongs to NAV Three Tier but take a look at this topic http://www.mibuso.com/forum/viewtopic.php?t=22564.
Or you could try by SendKeys explained in this topic http://www.mibuso.com/forum/viewtopic.php?p=136085."Money is likewise the greatest chance and the greatest scourge of mankind."0 -
That's the issue I need to call the proper form rather than just the form of the main form. Therefore I need something of the sort currform.(subformname).form.(function). This can be used for the main form to call the current subform but I do not know how I could get the same thing the other way round.0
-
The only way I know is to use a singleinstance codeunit and RUNMODAL for the form. But in that case you can't use NAV until you closed the form.
Perhaps you should think about redesign your application."Money is likewise the greatest chance and the greatest scourge of mankind."0 -
Or you could use the OnTimer trigger on the main form to call a function on the subform every few ms.
Or move all the code from the form to a single instance codeunit, and use it from both the main-form and sub-form. (But then you should ensure the main form is only open once or be able to support it)
Depends what you are trying to do...Regards
Peter0 -
are you trying to update a header with a value from the line?0
-
Actually I need to trigger a function onto the main form once a record is modified in the subform.0
-
sabzam wrote:Actually I need to trigger a function onto the main form once a record is modified in the subform."Money is likewise the greatest chance and the greatest scourge of mankind."0
-
sabzam wrote:Actually I need to trigger a function onto the main form once a record is modified in the subform.
Move the code to the table in the sub form and have it triggered there.David Singleton0 -
[Topic moved from 'NAV Three Tier' forum to 'NAV/Navision Classic Client' forum]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