The OneStream Community is temporarily frozen until June 29th due to the ongoing maintenance. Please read the blog post here to learn more.
Forum Discussion
bsalamone
8 months agoNew Contributor II
Finding a user connection type in Business Rules
Hello, We are trying to find the best way to determine if a user is using web-based or Windows App OneStream environments to customize a dashboard experience. For now, we are using the si.WebServerU...
- 8 months ago
Hi bsalamone
You can use the ClientModuleType property from SessionInfo to check this e.g. something like this C# example
public bool CheckOneStreamClientModuleTypeIsWeb(SessionInfo si) { switch (si.ClientModuleType) { case ClientModuleType.Web: case ClientModuleType.WebPhone: case ClientModuleType.WebTablet: return true; default: return false; } }Hope this helps
Sam
sameburn
OneStream Employee
8 months agoHi bsalamone
You can use the ClientModuleType property from SessionInfo to check this e.g. something like this C# example
public bool CheckOneStreamClientModuleTypeIsWeb(SessionInfo si)
{
switch (si.ClientModuleType)
{
case ClientModuleType.Web:
case ClientModuleType.WebPhone:
case ClientModuleType.WebTablet:
return true;
default:
return false;
}
}
Hope this helps
Sam
bsalamone
8 months agoNew Contributor II
Thank you Sam. This worked and is a much cleaner way to get to the answer.
Brett
Related Content
- 3 months ago
- 2 years ago