Hi,
I have a Form that is to be open in two different Menu Items (on Menu Suite), and I would like to filter which data is shown.
For example:
Menu Item 1 -> shows data type A
Menu Item 2 -> shows data type B
Is this possible? How?
Regards,
Ivo Couto.
Ivo Couto.
0
Comments
Proposal :
- duplicate your form with right filter
- create two Codeunits that call the form with the filter and call the Codeunits from the MenuSuite.
- ... ?
I have already thought that, but I am trying to find a less expensive solution. My license doesn't many forms or codeunits left.
Ivo Couto.
(just my 2 cent)
Microsoft Dynamics NAV Developer since 1997
MSDynamics.de - German Microsoft Dynamics Community - member of [clip]
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
If he wants to start other than variant A then he needs a codeunit which calls the form with variant B and another codeunit which calls the form with variant C and another ...
Yes, I know that you can only save one codeunit but every object costs money.
Microsoft Dynamics NAV Developer since 1997
MSDynamics.de - German Microsoft Dynamics Community - member of [clip]
Ah, now I see what you mean ... sorry ... ](*,)
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
Microsoft Dynamics NAV Developer since 1997
MSDynamics.de - German Microsoft Dynamics Community - member of [clip]
I don't see the wood for the trees.
Microsoft Dynamics NAV Developer since 1997
MSDynamics.de - German Microsoft Dynamics Community - member of [clip]
fd : yep, but with that you don't manage the choice from the Menu Suite as asked ... :-k
Meaby our Navision friends could take this proposal for next release : opportunity to put filters in the calls from Menu Suite ...
When (in a near or far future) the form is altered by adding some functionality ... adding some menu-items and so on ... then this should be done in 2 forms [-X . All modifications should be done twice. :-k
OK, doing this with two seperate forms, it's a less expensive solution, but "less expensive" doesn't mean "better solution". For me, it's less maintainable.
again, this is only my opinion.
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
Microsoft Dynamics NAV Developer since 1997
MSDynamics.de - German Microsoft Dynamics Community - member of [clip]
Also ...
icouto had to create two menu items ... probably for two seperate types of users who have access to the seperate menus. Choosing filter each time they open the same form ... this is not really user-friendly, is it???
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
You can go around this by doing the second form something as wrapper form - only run the first form with another filters... and after closing this called form, close itself too... (and you will have form icon in the MenuSuite, not codeunit icon)...
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
I'd vote the 2-form solution. No, it is not unmaintainable: the two forms will soon fork and in 3 months they surely will not even resemble each other. Maybe the first is called Something for Salespeople and the second one is called Something for Warehouse People - you can bet in 3 month they will be totally different.
If you want to make a good project, this approach is unavoidable - to make stuff like Customer Card for Salespeople, Customer Card for Managers etc.
Do It Yourself is they key. Standard code might work - your code surely works.