Detects if an interface is displayed within Appian for Mobile Devices on a tablet.
SAIL enables "write once, deploy anywhere" interfaces that are inherently fully functional on mobile devices, so this function is not required for building Appian applications. Its purpose is to support optional tailoring for specific mobile use cases where the usage of the interface is uniformly distinct when viewed from a mobile device (see the Example below).
The function evaluates to
true for interfaces displayed within the Appian for Mobile Devices app on a tablet.
In any other context, such as within an expression designer, process model, or an interface rendered on mobile web browsers, the function evaluates to
You can test this functionality in the interface live preview by setting the Form Factor to
Traveling users want to display the Customer Record to clients from their tablet, but do not want to display certain columns in a grid that contain internal company notes. Rather than create a separate interface or record, they use the
isNativeTablet() function to hide those columns when viewed from a tablet.
1 2 3 4 5 6 7 8 a!gridTextColumn( label: "Notes", data: ri!customerNotes, alignment: "LEFT", showWhen: not( `a!isNativeTablet()` ) )
isNativePhone(): Complementary function that can be used to tailor interfaces specifically for Appian for Mobile Devices on phones.