I'm migrating old database version (2.60) to 2009 R2.
In old version there is a table used to store different data type. To accomplish this when user open form from menu applied a specific filter. So when I open from menu Item "Car" menu open form applying specific filter. When I open from menu item "byke" menu open form (same form) applyig specific filter to view only "Byke".
In new version there is a way to do it? Can I call from menu a form executing code?
If not how I can solve this problem. I think that solution is makedifferent form but this request too form object and I don't want to do it.
0
Comments
you need to call a codeunit from the menu, this can call the form with the filter. I don't know another way.
With best regards
Jens
with best regards
Jens
I think it's not a problem to use that code:
or am I wrong?
Follow my blog at http://x-dynamics.blogspot.com
BTW, is that code fits you?
Follow my blog at http://x-dynamics.blogspot.com
Not sure I got it right but I think this could help you:
You could use the RunFormView property of the actions that you use to launch page.
Hope this could help.
It works as expected... More or Less...
When I create a new item I must to specify object type and object name.
So where I can write this code?
:oops: I'm sorry I didn't understand you want to use classic!
I think that you have 2 ways:
1. one codeunit as Jens suggest
2. split your form in 2 forms one for byke and one for car
It works as expected... More or Less...
Follow my blog at http://x-dynamics.blogspot.com
It works as expected... More or Less...
If I need to esecute specific code I need to create one codeunti for every form. So this is not good idea.
Other choice?
User should select what he wants to see, then the filter should be applied.
So, the concept is that menu has 1 item, when clicking it an additional dialog is shown.
Follow my blog at http://x-dynamics.blogspot.com