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™
0
Comments
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Put a drill down option on the form, and code behind it that sets the required filters.
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.
RIS Plus, LLC