Nav User : In which company is currently logged in
bergoulle
Member Posts: 23
Hi experts,
i was wondering if there is a way to found the company name a user is currently logged in.(Without asking him ...)
thank's
i was wondering if there is a way to found the company name a user is currently logged in.(Without asking him ...)
thank's
0
Comments
-
There's a system variable COMPANYNAME that holds the current company.0
-
The "COMPANYNAME", Isn't located on his own station ?0
-
bergoulle wrote:
Without storing Users COMPANYNAME Value, do you think there are other ways ?bergoulle wrote:The "COMPANYNAME", Isn't located on his own station ?
Actually I have always believed that table 51 should have Companyname as a part of the primary key. Maybe you could copy that table to a new one with company name. But I wouldn't mess with the primary key of a standard table.David Singleton0 -
you can add a field to user setup. On login, you can loop through all companies and update the company name in the user setup.0
-
Actually most post above is nonsense, since Company name IS a part of the primary key, so it can be used. Just add the field Currently Logged In::Boolean and update this in code unit 1.
Its not a 100% solution, since there are a number of situations when it will give incorrect information, but if its just something to get a general over view it will work fine. The advantage of T51 over T91 is that there is much less to modify, since its already modified in CU1, and also if the client crashes, then its fixed the next log in anyway without any clean up loops. But as Rashed says you can also use T91.David Singleton0
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


