GET info from HYPERLINK

I need to know if its posible to know from NAV when we use HYPERLINK() if the URL fails from NAV to OPEN another URL.


For example, first I have in one folder all the documents I want to open. In NAV I only have to put a fixed route + the ID of the doc. something like
c:\mydocuments\docs1\id


Now I have more folders where one doc can be. for example.

c:\mydocuments\docs1\
c:\mydocuments\docs2\
c:\mydocuments\docs3\

I cant do hyperlink for every folder, because there are 30 folders.

There's something I can do?





Thanks.

Answers

  • lhlDKlhlDK Member Posts: 11
    Not exactly what you ask for, but if its for opening files then you could check if the file exists:

    IF EXISTS('c:\mydocuments\docs1\id') then hyperlink('c:\mydocuments\docs1\id');
    IF EXISTS('c:\mydocuments\docs2\id') then hyperlink('c:\mydocuments\docs2\id');
  • ex1720ex1720 Member Posts: 23
    IF EXISTS Even if the route is a web page? www.asdfg.com/myprojects/anythingelse/ ?
    lhlDK wrote: »
    Not exactly what you ask for, but if its for opening files then you could check if the file exists:

    IF EXISTS('c:\mydocuments\docs1\id') then hyperlink('c:\mydocuments\docs1\id');
    IF EXISTS('c:\mydocuments\docs2\id') then hyperlink('c:\mydocuments\docs2\id');

  • ex1720ex1720 Member Posts: 23
    UP!
  • lhlDKlhlDK Member Posts: 11
    No, only for files. Dont know what to do for webpages
Sign In or Register to comment.