1)You have to write a function to the subform that returns the primary key or any other data you need of the record.
2)Create a function in the second subform that issues a SETRANGE-FIND or GET from parameters it receives.
3) Create a button or menu item to the main form that calls the first function, and then call the function on the second form. A menu item is preferred because users will hate this solution, but at least you can assign a keyboard shortcut to the menu f.e. Ctrl+R as "refresh".
Do It Yourself is they key. Standard code might work - your code surely works.
My suggestion is that all these tricks are too complicated for users, they will get a big, confusing form.
My suggestion is: just use flowfields.
For example, you have a project form, where the header is the main data for the project and the lines are the phases. There would a COUNT flowfield for every line, that would say how many steps a give phase has. As the normal flowfield behaviour, this would bring the normal Drilldown field for your Steps table. From there also could be a drilldown to Tasks etc. ...
Do It Yourself is they key. Standard code might work - your code surely works.
Comments
Wellcome to the forum...
Could you be mere specific on that "detail of detail" thing?
Arhontis
https://forum.mibuso.com/search
Header
Detail
Detail of previous detail
Is that a liitle bit more clear?
Form A: Card form with a Subform control (Form
Form B: Table form with a subform control (Form C)
Form C: Table form
Microsoft Dynamics NAV Developer since 1997
MSDynamics.de - German Microsoft Dynamics Community - member of [clip]
This is not possible in Navision, has never been!
</OffTopic>
Upps, I didn't try this anytime - it was a thought which crossed my mind.
Microsoft Dynamics NAV Developer since 1997
MSDynamics.de - German Microsoft Dynamics Community - member of [clip]
Glad that you understood the joke!
1)You have to write a function to the subform that returns the primary key or any other data you need of the record.
2)Create a function in the second subform that issues a SETRANGE-FIND or GET from parameters it receives.
3) Create a button or menu item to the main form that calls the first function, and then call the function on the second form. A menu item is preferred because users will hate this solution, but at least you can assign a keyboard shortcut to the menu f.e. Ctrl+R as "refresh".
Do It Yourself is they key. Standard code might work - your code surely works.
Multiple Subform Sample -> uses Single-Instance Codeunit
New Multiple Subform Sample -> uses OnTimer-trigger
My suggestion is: just use flowfields.
For example, you have a project form, where the header is the main data for the project and the lines are the phases. There would a COUNT flowfield for every line, that would say how many steps a give phase has. As the normal flowfield behaviour, this would bring the normal Drilldown field for your Steps table. From there also could be a drilldown to Tasks etc. ...
Do It Yourself is they key. Standard code might work - your code surely works.