Session.CurrentClientType Method

Gets the client type that is running in current session.

Syntax

ClientType :=   Session.CurrentClientType()

Note

This method can be invoked using property access syntax.

Note

This method can be invoked without specifying the data type name.

Return Value

ClientType
‚ÄÉType: ClientType
The client type that is running in current session.

Remarks

You can use CurrentClientType as a parameter in the GetURL Method to get the URL of the current client.

Example

In the following example, CurrentClientType is used to get the client type for the session and return a message if the session uses the Tablet client.

if CURRENTCLIENTTYPE = CLIENTTYPE::Tablet then  
  Message('The session is running the Tablet client');  

Example

In the following example, CURRENTCLIENTTYPE is used as a parameter of the GetURL Method to return the URL of the client that invokes the code.

url := GETURL(CURRENTCLIENTTYPE);  
MESSAGE('The URL is %1.', url);  

See Also

Session Data Type
Getting Started with AL
Developing Extensions