Main form and 2 subforms

ab
Member Posts: 37
Hi,
I have a main form, 1 subform depending on the main form and a second subform depending on the first subform.
How can I show the correct data in the second subform when I select an other record in de first subform ?
main form : all my machines
subform 1 : all the tasks of my machine
subform 2 : all the information when a task is executed
If I choose another task of the same machine, subform 2 must display the correct information.
Thx,
I have a main form, 1 subform depending on the main form and a second subform depending on the first subform.
How can I show the correct data in the second subform when I select an other record in de first subform ?
main form : all my machines
subform 1 : all the tasks of my machine
subform 2 : all the information when a task is executed
If I choose another task of the same machine, subform 2 must display the correct information.
Thx,
0
Comments
-
As far as i know, a subform can be any form, even a form that has a subform itself. So make a form for your tasks and taskinformation, and use THAT form as a subform in your machine form.0
-
Mberger, I've already tried to do that but a subform cannot be started within a subform !0
-
Per default a Subform can't contain a other subform.
so what you need. you create 3 forms.
The 1st is the Mainform wit 2 Containers for the 2 subforms
The 2nd is the form for subform A
the 3rd is the form for Subform B
Now the trick (is also here explained in the forum search for it).
If you select a rec on mainform you update also Suibform A und B (thats no problem)
If you select a rec on Subform A you send back the information to Mainform (viewtopic.php?f=23&t=22564&hilit=subform) per XMLDom or Timer (timer is not so good in my eyes) and from there to the SubForm B and update then Subform B.
RegardsDo you make it right, it works too!0 -
Sorry for question but i'm completly blocked....
1 main form (order), and 2 subform.: 1 is sales line and other is Item list. I want that when i move up and down sales line, in 2nd subform, item included in sales line is highlight (it doesn't matter how. I mean, i know how).
so i use XML to call form subform to main form, and then i call function at 2nd subform to find that record and update.
But i get an error or item list doesn't move.
Any suggestions??
regards.0 -
new day and everythin solved. Used XMLDOM and Currform.UPDATE(False).
thanks.0 -
Nice, but are the modifications by the user then not lost with Currform.UPDATE(False)?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