Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

Hyperlink Parameters

(0) ShareShare
ReportReport
Posted on by 3,027

Hi

  Is it possible that Hyperlink Parameters passed from navision are not visible in Browser

Thanks

*This post is locked for comments

  • jsshivalik Profile Picture
    jsshivalik 3,027 on at
    RE: Hyperlink Parameters

    Hi Tony

       In my case No is a string

    Thanks

  • jsshivalik Profile Picture
    jsshivalik 3,027 on at
    RE: Hyperlink Parameters

    Hi Tony

     Can u pls provide some example. I want to encrypt NO field which is string.

    Thanks

  • Suggested answer
    Tony.Phan Profile Picture
    Tony.Phan 100 on at
    RE: Hyperlink Parameters

    Technically, yes. Encrypt your parameters and pass it like url?eparam=encrypted parameters.  Now all you need to do is decrypt the eparam. If you want to encrypt the entire url, no you can't,  imagine what a nightmare it would be if that's possible!

  • jsshivalik Profile Picture
    jsshivalik 3,027 on at
    RE: Hyperlink Parameters

    Hi

      Can't we pass the parameters from Navision in encrypted form & Decrypt in C# Website .

    I have a string field.

    Thanks

  • Suggested answer
    Tony.Phan Profile Picture
    Tony.Phan 100 on at
    RE: Hyperlink Parameters

    You can't make it invisible, it would be a huge security issue if you can.  On the other hand, if you have control over the site, then this is what I suggest you do, as a workaround to your concern about users changing or guessing a another link's value.  Add another parameter that's a formulated value of an existing parameter, let's say No. is a numeric value and Code is the additional parameter.  In NAV, formulate a value from the No. and expect the Code to be the equivalent.  Here's simple formula: Code = No. * 100 / 5.  Let's say No. is 5 so the Code should be 5 * 100 / 5 or 100.  The parameter will then need to be ?No.=5&Code=100.  If they change No. to a 6, then they'll need to have a valid Code, because 6 * 100 / 5 is not equal to 5.  Your formula is hidden but needs to be the same in NAV as well as your website.

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: Hyperlink Parameters

    This is an url, you cannot avoid that. The url from NAV is opened exactly with your parameters. If then (ater the page is opened in the browser window) the users change the url, it's absolutely possible (exactly on every site you browse).

  • jsshivalik Profile Picture
    jsshivalik 3,027 on at
    RE: Hyperlink Parameters

    Hi Stefano

     ok .  How can we ensure that user should not be able to change parameter values in Url . Suppose No 10 is passed from Navision . On Web Page 10 is displayed in textbox.

    User changes value to 11 in Url & then press enter so value in textbox changes to 11 which is wrong.

    Thanks

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: Hyperlink Parameters

    Do you mean in the browser address bar? This is not possible. HYPERLINK opens an url in the default browser of your client machine, but the URL is displayed in the browser (exactly as every other address). You cannot control the browser's behaviour.

  • jsshivalik Profile Picture
    jsshivalik 3,027 on at
    RE: Hyperlink Parameters

    Hi Stefano

      I want that parameters passed thru Hyperlink can be made invisible in browser so user should not be able to change values . Can we encrypt and decrypt the parameters

    Thanks

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: Hyperlink Parameters

    I don't uderstand your problem, but in code you should programmatically compose a string with the right url and then call the HYPERLINK. Something like:

    strURL := 'localhost/.../Test.aspx?param1=' +"No." + '&param2=' + USERID;

    HYPERLINK(strURL);

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans