hyperlink

suvidhasuvidha Member Posts: 117
Hi, can any one explain how exactly Onhyperlink() and OnCreateHyperLink() functions work?!!!!

Thank you :roll:

Comments

  • tinoruijstinoruijs Member Posts: 1,226
    suvidha wrote:
    Hi, can any one explain how exactly Onhyperlink() and OnCreateHyperLink() functions work?!!!!

    Thank you :roll:

    In help of c/side reference guide there's an explanation about those functions.

    OnCreateHyperlink
    The C/AL code in this trigger is executed after the user creates a URL to a form or a report.


    OnHyperlink
    The C/AL code in this trigger is executed after the OnInit trigger is executed for a form and after the OnInitReport trigger is executed for a report.


    There's more info in help (F1).

    Tino Ruijs
    Microsoft Dynamics NAV specialist
  • suvidhasuvidha Member Posts: 117
    Thank you but it is not so clear to work on...
    can u give me a simple example :?:
  • tinoruijstinoruijs Member Posts: 1,226
    suvidha wrote:
    Thank you but it is not so clear to work on...
    can u give me a simple example :?:

    Edit a form. Put MESSAGE('OnHyperlink'); in the Form - OnHyperlink(URL : Text[1024]).
    Save the form.
    Open the form.
    You will not receive a message.

    Create a desktop shortcut of the form by using File, Send, To desktop.

    Use the shortcut on your desktop to open the form.
    You'll receive the message!

    Tino Ruijs
    Microsoft Dynamics NAV specialist
  • suvidhasuvidha Member Posts: 117
    Got it Thank you..... O:) \:D/
  • tinoruijstinoruijs Member Posts: 1,226
    suvidha wrote:
    Got it Thank you..... O:) \:D/

    You're welcome!
    8)

    Tino Ruijs
    Microsoft Dynamics NAV specialist
Sign In or Register to comment.