F3 key intercept

HenningThHenningTh Member Posts: 59
Hi all
A little problem - does anyone know how to catch the info that the user just pressed the F3-button. I dont want to interrupt the standard behaviour, only to do some checking (and block a button when it occurs).

I am not interested in intercepting when they are inserting new records at the bottom of the list form just using the <enter> key - only when F3 is in use and I must know this before anything else is proccessed.

Appreciate help on this as I cannot find anything about doing this.

Comments

  • SogSog Member Posts: 1,023
    Well, codeunit 1 won't be of any help since there is no onglobalbuttonpress function.
    Next, I think you should focus more on the onnewrecord(belowxrec) trigger.
    and capture/check/block the functionality there.
    |Pressing F1 is so much faster than opening your browser|
    |To-Increase|
  • jglathejglathe Member Posts: 639
    Hi,

    In a specific form you can add a menu entry with F3 as shortcut. This would overwrite the standard processing, however.

    with best regards

    Jens
  • Mike_HWGMike_HWG Member Posts: 104
    jglathe wrote:
    Hi,

    In a specific form you can add a menu entry with F3 as shortcut. This would overwrite the standard processing, however.

    with best regards

    Jens

    STOP
    NO
    DON'T

    I would highly discourage this practice. You are changing core system functionality. This reduces predictability from an end-user standpoint, hampers training, and introduces an unsupported solution, among other issues which I'm sure others can list.


    HenningTh, what is it you are trying to capture? I would explore Sog's advice; you should be able to capture the information you need through the xRec variable, the OnNewRecord trigger, and possibly the OnValidate trigger.
    Michael Hollinger
    Systems Analyst
    NAV 2009 R2 (6.00.34463)
Sign In or Register to comment.