Control for "detail of detail"

anna_kalligerouanna_kalligerou Member Posts: 4
I need a control for screens with a "detail of detail". Any ideas??? Thanx in advance

Comments

  • ArhontisArhontis Member Posts: 667
    Hi,

    Wellcome to the forum...

    Could you be mere specific on that "detail of detail" thing?
  • anna_kalligerouanna_kalligerou Member Posts: 4
    You see I have a form that has the following structure:

    Header
    Detail
    Detail of previous detail

    Is that a liitle bit more clear?
  • Timo_LässerTimo_Lässer Member Posts: 481
    Make a Main-/Subform where the Subform is also a Main-/Subform.

    Form A: Card form with a Subform control (Form B)
    Form B: Table form with a subform control (Form C)
    Form C: Table form
    Timo Lässer
    Microsoft Dynamics NAV Developer since 1997
    MSDynamics.de - German Microsoft Dynamics Community - member of [clip]
  • anna_kalligerouanna_kalligerou Member Posts: 4
    Thanx, I will try it ASAP!
  • PrebenRasmussenPrebenRasmussen Member Posts: 137
    Timo, what planet did you arrive from? :-)

    This is not possible in Navision, has never been!
  • Timo_LässerTimo_Lässer Member Posts: 481
    <OffTopic>
    Timo, what planet did you arrive from? :-)
    [...]
    Sorry, this is top secret, otherwise the NASA deports me back to home :lol:
    </OffTopic>
    [...]
    This is not possible in Navision, has never been!
    Upps, I didn't try this anytime - it was a thought which crossed my mind.
    Timo Lässer
    Microsoft Dynamics NAV Developer since 1997
    MSDynamics.de - German Microsoft Dynamics Community - member of [clip]
  • PrebenRasmussenPrebenRasmussen Member Posts: 137
    he he... 8)
    Glad that you understood the joke!
  • ShenpenShenpen Member Posts: 386
    It IS possible, just not comfortable.

    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.
  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    I guess this is the example you need:
    Multiple Subform Sample -> uses Single-Instance Codeunit
    New Multiple Subform Sample -> uses OnTimer-trigger
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • ShenpenShenpen Member Posts: 386
    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.
Sign In or Register to comment.