HYPERLINK changes URL-address

EmerikEmerik Member Posts: 50
edited 2009-08-11 in Navision Attain
Hi all,
I have a problem with hyperlinks.

I've written a very simple codeunit with the following code:
OnRun()
HYPERLINK('http://www.mibuso.com');

When I run it, a browser opens with the URL:
http://www.mibuso.com/%20"http://www.mibuso.com/"

Every time the HYPERLINK function is used, this happens.
What can be the reason and, of course, the resolution?

The client version is Attain 3.60 and cannot be upgraded.

Thx for any help.

Regards,
Emerik

Comments

  • SavatageSavatage Member Posts: 7,142
    are you running this from a command button or something?

    this is something i would see if the bottons properties are filled AND you added code behind the button. so it's running both
  • EmerikEmerik Member Posts: 50
    Hi Savatage (and other readers),

    No, the problem was first discovered somewhere else, and the investigation of the problem led to this experiment, where I just made a very simple codeunit, as described, and ran it from the Object Designer.

    There is no hidden code. The behaviour of the HYPERLINK function is faulty.

    Kind regards,
    Emerik
  • SavatageSavatage Member Posts: 7,142
    So every hyperlink you try is showing double?

    your example//
    http://www.mibuso.com/%20"http://www.mibuso.com/"

    Or not always?
    Did you debug to see if this CU is being called 2x?

    PS what version? I know we have no issues with Hyperlink.

    Here's a post that suggest using WSH Shell instead of hyperlink due to it's buggyness
    viewtopic.php?t=12861

    if buggyness is actually a word :mrgreen:
  • garakgarak Member Posts: 3,263
    what do you want to open? An URL or an file like a *.doc or run a *.exe :?:

    Regards
    Do you make it right, it works too!
  • DenSterDenSter Member Posts: 8,307
    Savatage wrote:
    if buggyness is actually a word :mrgreen:
    It's not spelled "buginess", because that would be pronounced "big-nizz" :mrgreen:
  • EmerikEmerik Member Posts: 50
    Garak:
    what do you want to open? An URL or an file like a *.doc or run a *.exe
    A HTML file.
    Savatage:

    So every hyperlink you try is showing double?

    Or not always?
    Did you debug to see if this CU is being called 2x?
    Always. Something's seriously wrong.

    I solved the problem temporarily by a shell command:
    SHELL('iexplore ' + URL);
    

    But it is neither browser-independent nor pretty nor solving the real problem.

    Kind regards,
    Emerik
  • SavatageSavatage Member Posts: 7,142
    Emerik wrote:
    But it is neither browser-independent nor pretty nor solving the real problem.
    Kind regards,
    Emerik

    You are experiencing something strange :-k
    Microsoft Navision requires that the Fin.stx file contain a list of all file types that are supported by the hyperlink command.

    perhaps it lies in your fin.stx file :-k do all your machines experience this problem?
Sign In or Register to comment.