Is it possible to perform a different behavior based on the device type? (mobile app or desktop) Got an app where we select an employee and on desktop we will show a nice dashboard like screen, but if on the phone we want to go straight to a grid….this will enhance the user experience.
Announcement
Collapse
No announcement yet.
Different Behaviors based on device type
Collapse
X
-
Hi,
You can condition your behavior actions based on mobile or desktop as follows:- Create both of your behavior actions for both phone and mobile.
- Click the security tab and then specify a feature name to both the desktop and mobile actions. Suppose you name them "isDesktop" and "isMobile".
- In the same security section, specify a startup program (based off of EXNABSTART).
Code:d sessionDS e ds extname(vvsessdata) qualified inz /free sessionDS = vvUtility_getSessVar(VVSESSVAR); if sessionDS.vvMode = 'desktop'; disableFeature('isMobile'); else; disableFeature('isDesktop'); endif; /end-free
Comment