My company is using Windows Authentication to login Navision 4.0. Our windows login uses Group and Individual accounts.
I have a problem to setup Warehouse employees (Form 7328). When I lookup 'User Id' field, an "overflow" error is displayed because I have a Window's Group Id which exceeds the Navision's standard field length (Code 20). Now, I can modify the codeunit 418 "Login Management" 's LookupUserId(UserID) funtion to exclude all shortIDs which has length >20 or some other criteria.
1) The question is, if i modify this codeunit, will it affect anywhere else in the program? #-o
2) Or is there a better solution to this? :roll:
Thanks.
0
Comments
The LookupUserID routine is called all over the application in the OnLookup Trigger of the filed "User ID" in various tables:
I guess that filtering users with ID greater of 20 chars would only hide that users from that lookup form.
So, I guess sommething like: (where the s could be a text[1024] variable)
whould work...
(The code came from Nav 3.70.A.)
Arhontis
https://forum.mibuso.com/search
Logically thinking, the system will store Individual Id (my individual id is only 6 characters long) instead of Group Id (which is used to ease role assignments, might have more than 20 characters) in tables where changing this routine seems harmless.
I have checked the "where used" of the LookUpUserID function with the Developer's Toolkit and it is used only on the OnLookup routines of various tables.
The change log gets the name of the user with the USERID function that returns only the name of the user not the full path.
So I think that it is ok for you to make the change, or to be more accurate, ask your developer to make a "where used" on Navision 4.0 objects with the Developer's toolkit cause I haven't imported the Nav 4.0 Objects into Developer's Toolkit yet.
Arhontis
https://forum.mibuso.com/search
Thanks for your answer and quick reply. Making the changes seems harmless since its only for lookups. So, I will take your advice
However, in your given code, should move this line up because WindowsLogin.ID is a FlowField:
- WindowsLogin.CALCFIELDS(ID,Name);
Thanks !
You are right... You should move the CALCFIELDS up.
Sorry for the little mistake...
I have also checked the Navision 4.0 Objects (imported them into the Developer's toolkit) and that function is only used in lookups...
Arhontis
https://forum.mibuso.com/search