Calling URL with error message
Nabuco
Member Posts: 65
Hi all,
NAV2009SP1: When calling an URL it is sometimes (depending on user-rights) necessary to let them do the call, but with an error-message in the Internet Explorer.
How on earth do I pass this message on to the Explorer?
Anyone with the solution - thanks in advance.
NAV2009SP1: When calling an URL it is sometimes (depending on user-rights) necessary to let them do the call, but with an error-message in the Internet Explorer.
How on earth do I pass this message on to the Explorer?
Anyone with the solution - thanks in advance.
0
Answers
-
can you provide more details ?Thanks and Regards
Rishi0 -
It looks like this:
URL := Gmail.com;
HYPERLINK(URL);
In some instances users should not be allowed to make this call to the internet. I wish the browser to show up with an error text provides by me and with a little guidance where it is allowed.0 -
You can't display that error message in Internet Explorer. You'll need to display it in NAV, before executing the HYPERLINK-statement:
IF NOT allowed THEN ERROR('Not allowed') ELSE HYPERLINK(URL);No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0 -
If you want the error message show in the browser, replace the URL with one pointing to a pre-prepared error document.
And by the way, 'Gmail.com' is not an URL, 'http://gmail.com/' is. If the former works, you are just lucky.
(Or is the URL contained in a field named com in Table Gmail?)
And, from your initial post I could not figure out what you wanted to do.
And one additional thought: Is this the right way to do it? Shouldn't you (or rather the sysadmin) set up a filtering proxy instead?0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions

