Differentiate between Mobile and Workspace

How Can We Help?

Differentiate between Mobile and Workspace

< Back

A report which shows a list of jobs that has a link that takes the user to an activity that can action the job. When in mobile we need to specify the mobile link and when in the XMWorkspace we need to specify the workspace link as they are both different.

There is a simple way to determine whether the activity is being accesses via XMWorkspace or via the API (which is what XMMobile does).

if(System.Web.HttpContext.Current == null)
{
//No HttpContext found, you are accessing this from XMMobile
}
else
{
//HttpContext found, you are accessing this from XMWorkspace
}

Comments are closed.

This is the legacy version of the XMPro Documentation site. For the latest XMPro documentation, please visit documentation.xmpro.com

X