Suppress New Line in MESSAGE and ERROR

gerdhuebner
Member Posts: 155
In NAV 2013 R2, the USERID for a Windowslogin normally contains a Backslash ('Domain\User', e. g.). But if the USERID function is used in an ERROR or MESSAGE, this backslash results in a new line, which is very annoying.
Unfortunately there seems to be no workaround for this. Even a text like 'domain\\user' results in two automatic line breaks. ](*,)
(tested with NAV 2013 R2, Build 36897)
Suggestion: Only the first parameter of the MESSAGE/ERROR function should be scanned for single (not doubled!) backslashes and only these should be converted into line breaks. Two consecutive backslashes should be printed as one "real" backslash.
Thus an ERROR('Wrong User ID %1.',USERID), e. g., would give the expected output result.
Unfortunately there seems to be no workaround for this. Even a text like 'domain\\user' results in two automatic line breaks. ](*,)
(tested with NAV 2013 R2, Build 36897)
Suggestion: Only the first parameter of the MESSAGE/ERROR function should be scanned for single (not doubled!) backslashes and only these should be converted into line breaks. Two consecutive backslashes should be printed as one "real" backslash.
Thus an ERROR('Wrong User ID %1.',USERID), e. g., would give the expected output result.
New kits on the blog: https://massivedynamicsblog.wordpress.com
0
Comments
-
I don't think the NAV DEV-team is reading this forum to pick up product suggestions (although I hope they do). In the meantime, you should use MS Connect for these suggestions, where people can vote on them: https://connect.microsoft.com/
As a workaround you can replace the '\' in '/', which is not that much different to a user:MESSAGE(CONVERTSTR(USERID,'\','/'));
No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0 -
Luc Van Dyck wrote:I don't think the NAV DEV-team is reading this forum to pick up product suggestions...New kits on the blog: https://massivedynamicsblog.wordpress.com0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K 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
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions