Hide columns or fields from smaller-resolution screens
The new onSize event, @RelayoutWindow command, and @ResolutionWidth and @ResolutionHeight formulas allow you to hide columns and fields when they are displayed in smaller-resolution screens.
These new design elements are particularly useful for applications accessed through mobile devices with smaller screen size.
Hiding columns
To hide a column from a view based on screen resolution width:
- Open the view.
- In the Objects pane, select onSize and in the Run
pane, enter
@Command([RelayoutWindow])
. - Select the column.
- Open the Properties box for the column. For the Hide column if
formula is true property, enter the formula
@ResolutionWidth<value
, wherevalue
is a width in number of pixels. If screen resolution is equal to or less than the width, the column is hidden.
Hiding fields
To hide a field from a form based on screen resolution height:
- Open the form.
- In the Objects pane, select onSize and in the Run
pane, enter
@Command([RelayoutWindow])
. - Select the field.
- Open the Properties box for the field. For the Hide paragraph if
formula is true property, enter the formula
@ResolutionHeight<value
, wherevalue
is a height in pixels. If screen resolution is equal to or less than the height, the field is hidden.