Hi experts,
is it possible to disable the lookup functionality of Navision?
My goal is to disable F5 for the Resource card (resource here = persons) in order to let each resource view only its own data and not the information about other resources (prices etc.).
Any clue?
Thanks in advance,
Michael
0
Comments
Just remove the menu-item "List" from the resource-button.
That should do it
Michael
Michael
OK - then you probably has to set a filter on the form. This filter will also apply to the lookup form.
To ensure that the user doesn't simply remove the filter, you have to do the filter in a different filtergroup. In your OnOpenForm Trigger (or something like that - I do not have Navision in front of me) you write the following code:
filtergroup(1000);
setrange("No.",<Users resource no.>);
filtergroup(1);
Hope it helps
I created a new Resource card, modifying the filter just the way you described it. When user X opens this new form, the filter applies and pressing the general list button from the toolbar results in showing only his record. So far, so good.
But within this list-view there's another button called "Resource" which the user can press to call Navision's standard Resource card. From there, F5 or the tool bar list-button result in showing all Resources again.
I simply do not want to change ALL of Navision's standard behaviour. This is why I asked for a way to avoid list view in general from a certain form.
It then reads <Undefined>.
br //Pelle
I think it's a pretty simple case.
Try my solution:
1) Open your resource card in design mode
2) Go to Resource Command Button
3) Right Click and choose Menu Item
4) in the top row you would see
Caption = List
Shortcut = F5
Action = LookupTable
5) Change Action from LookupTable to blank
6) Save and compile
7) run and you will get your card form doesn't have F5 functionality.
That's it, hope this help. 8)
Jemmy
No it doesn't, you can still open the list with the toolbar button.
//Pelle
which version and database use you?
Is the database on an sql server you can use the security filter
in the permissions, without change any object.
Regards
Stephan
Steve
8-[
This is the safest solution.
Is it the most elegant? Maybe.
Is it the simplest solution? Definitely.