NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: seanh on January 08, 2023, 10:52:51 PM
-
When a session is started I set a couple of session values for later:
self.SetSessionValue('CurrentTenant_id',SecwinCurrentUser.GetSettingsGuid())
self.SetSessionValue('CurrentUser_id',SecwinCurrentUser.GetGuid())
These are set in the WebHandler in p_web.SetSessionLoggedIn
Question now is : Whats the best way to get the Tenant Name ? ie the Settings Company Name?
I know I can Fetch the record directly but it seems to me there should be an existant method available at this point, because it's the sort of thing you would want, but I can't find it.
?
-
for build 7.42 I've added a
SecwinCurrentUser.GetCompany()
method.
This returns the "company" field from the SecwinSettings Table.
-
Brilliant !
Thanks Bruce