Gets the Microsoft Dynamics NAV client type that is running in current session.
[ClientType :=] CURRENTCLIENTTYPE |
Property Value/Return Value
Type: ClientType
The Microsoft Dynamics NAV client type for the current session, which can be one of the following values:
Value | Description |
---|---|
Windows | Microsoft Dynamics NAV Windows client |
Web | Microsoft Dynamics NAV Web client |
Tablet | Microsoft Dynamics NAV Tablet client |
Desktop | Microsoft Dynamics NAV Web client running the app |
Phone | Microsoft Dynamics NAV Phone client |
Remarks
You can use CURRENTCLIENTTYPE as a parameter in GETURL Function to get the URL of the current client.
Example
In the following example, CURRENTCLIENTTYPE is used to get the Microsoft Dynamics NAV client type for the session and return a message if the session uses the Microsoft Dynamics NAV Windows client.
Copy Code | |
---|---|
IF CURRENTCLIENTTYPE = CLIENTTYPE::Windows THEN Message('The session is running the Microsoft Dynamics NAV Windows client'); |
In the following example, CURRENTCLIENTTYPE is used as a parameter of the GETURL Function to return the URL of the Microsoft Dynamics NAV client that invokes the code.
Copy Code | |
---|---|
url := GETURL(CURRENTCLIENTTYPE); MESSAGE('The URL is %1.', url); |