The "COMPANYNAME", Isn't located on his own station ?
Without storing Users COMPANYNAME Value, do you think there are other ways ?
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.
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.
Comments
RIS Plus, LLC
MVP - Business Apps
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.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
RIS Plus, LLC
MVP - Business Apps
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.