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.
0
Comments
As a workaround you can replace the '\' in '/', which is not that much different to a user: