• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

Different Behaviors based on device type

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Different Behaviors based on device type

    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.

  • #2
    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).
    In your startup program:
    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
    Thanks

    Comment

    Working...
    X