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.
0
Answers
IF EXISTS('c:\mydocuments\docs1\id') then hyperlink('c:\mydocuments\docs1\id');
IF EXISTS('c:\mydocuments\docs2\id') then hyperlink('c:\mydocuments\docs2\id');