Use parameters within MenuSuite.

kirkostaskirkostas Member Posts: 127
I have a form which displays some records from a table.
I want to create four different menu items for this form and
I want each one to call the same form but with different filter.
Is this possible?
Can I pass parameters/arguments/filters in a menu item?

Right now I use four different codeunits for each one menu item
to be able to pass my different filters and call the same form with.

But if there is a way to do this through the menu item I will delete
my codeunits.
kirkostas

Comments

  • kinekine Member Posts: 12,562
    No, it is not possible. THere was many questions about that, but codeunits or separate forms (reports) are the only solutions...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • David_SingletonDavid_Singleton Member Posts: 5,479
    kirkostas wrote:
    I have a form which displays some records from a table.
    I want to create four different menu items for this form and
    I want each one to call the same form but with different filter.
    Is this possible?
    Can I pass parameters/arguments/filters in a menu item?

    Right now I use four different codeunits for each one menu item
    to be able to pass my different filters and call the same form with.

    But if there is a way to do this through the menu item I will delete
    my codeunits.

    Put a drill down option on the form, and code behind it that sets the required filters.
    David Singleton
  • DenSterDenSter Member Posts: 8,305
    three possibilities:
    1 - separate codeunits, like you already did
    2 - implement all logic from the same form, like David suggests
    3 - implement user based functionality. Have the parameters stored as part of a user setup, and retrieve this information OnOpen of the form. Of course that won't work if the same user needs to run all functionality.
Sign In or Register to comment.