SAP Knowledge Base Article - Public

2731799 - Rule Created With DeviceType Function Not Working

Symptom

You created a rule based on System.DeviceType to return true or false depending on the device being used (Desktop, Mobile or Tablet), but it is not working as expected.

Environment

SAP Cloud For Customer

Cause

The parameters to be used in System.DeviceType are case sensitive.

Resolution

You must make sure that the parameters being used matches exactly the ones in the system:

  • "Mobile" for Mobile devices.
  • "Tablet" for Tablet devices.
  • "Desktop" for Desktop devices.

Example: System.DeviceType == "Mobile".

Keywords

DeviceType; Tags; Script; Cloud Applications Studio; SDK; Rule Editor; , KBA , AP-RC-BDS-UI , ByDesign Studio UI Generation , Problem

Product

SAP Cloud for Customer add-ins all versions ; SAP Cloud for Customer core applications all versions