web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Hyperlink Parameters

(0) ShareShare
ReportReport
Posted on by 3,099

Hi

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

Thanks

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    If the hyperlink is broken, yes :) Do you have an example?

  • jsshivalik Profile Picture
    3,099 on at

    Hi Stefano

    HYPERLINK('localhost/.../Test.aspx;+''+"No."+''+'&uid='+''+USERID);

    Thanks

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    Check if the generated url is correct or not. I think it's a malformed url (you're not compising it well. Normally parameters in .aspx are passed like: Test.aspx?Param1=XX&Param2=YYY)

  • jsshivalik Profile Picture
    3,099 on at

    Hi

      U can take your example but how it should be made invisible in Browser.

    Thanks

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    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);

  • jsshivalik Profile Picture
    3,099 on at

    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
    37,166 Most Valuable Professional on at

    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
    3,099 on at

    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
    37,166 Most Valuable Professional on at

    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).

  • Suggested answer
    Tony.Phan Profile Picture
    100 on at

    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.

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

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans