Web Application - DeviceChanged Event

Fired when the application is resized and the device changes

Member of Web Application (PRIM_WEB.Application)

Details

The DeviceChanged event is fired whenever there is a change from one device size to another.
 
The Device property identifies the currently active device.

Example

In this example, a different layout is applied based on the Device.
Evtroutine Handling(#Sys_Web.DeviceChanged)
 
   Case (#Sys_Web.Device)
 
   When (= Desktop)
      #Com_owner.Layout <= #LayoutDesktop
 
   When (= Mobile)
      #Com_owner.Layout <= #LayoutMobile
 
   When (= Tablet)
      #Com_owner.Layout <= #LayoutTablet
 
   Endcase
 
Endroutine

See also

All Component Classes

Technical Reference

Febuary 18 V14SP2