Options

Disabling LookUp?

NavDevNavDev Member Posts: 21
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

Comments

  • Options
    tomddlctomddlc Member Posts: 8
    Hi NavDev,

    Just remove the menu-item "List" from the resource-button.

    That should do it :)
  • Options
    NavDevNavDev Member Posts: 21
    Well, but this does not disable the "overview" (arrow up in the main symbol bar).

    Michael
  • Options
    NavDevNavDev Member Posts: 21
    Sorry, this was a direct translation from the German version. I mean the "List"-button in the tool bar.

    Michael
  • Options
    tomddlctomddlc Member Posts: 8
    Hmmm.... hadn't thought of that button...

    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
  • Options
    NavDevNavDev Member Posts: 21
    yes, you are right, but ... :D

    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.
  • Options
    PellePelle Member Posts: 18
    Just delete the form name from the table's LookupFormID property.

    It then reads <Undefined>.

    br //Pelle
  • Options
    jemmyjemmy Member Posts: 247
    Hi NavDev,

    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
  • Options
    PellePelle Member Posts: 18
    jemmy wrote:
    That's it, hope this help.

    No it doesn't, you can still open the list with the toolbar button.

    //Pelle
  • Options
    sfreisfrei Member Posts: 2
    Hi,

    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
    NavDev wrote:
    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
    Greetings
    Steve
  • Options
    Dennis_DecoeneDennis_Decoene Member Posts: 123
    Pelle wrote:
    Just delete the form name from the table's LookupFormID property.

    It then reads <Undefined>.

    br //Pelle

    8-[
    This is the safest solution.
    Is it the most elegant? Maybe.
    Is it the simplest solution? Definitely.
Sign In or Register to comment.