Refresh command in Smart Devices

Official Content
This documentation is valid for:

The Refresh command behaves as explained below basically, it forces a refresh of the entire form. 

Syntax

Refresh [keep]

Description

The Refresh command forces a refresh of the entire panel. In SDPanels , it means the following events will be executed:

Also you are able to set if you want to keep the scroll where it is (by adding 'keep' to the refresh command) or go to the top of the Grid, after refreshing. By default the refresh command will go to the top of the Grid.

What if the Refresh command is executed on a client event of a Work With for SD Detail section? Will system events (Refresh-Load) for the Detail node be executed? And the sections that were previously activated (except for those Inline, which will be activated any time)? Schematically, that is:

Refresh (Detail)
Load (Detail, if there is any non SDT-based grid)
    Refresh (Section 1, if it was previously activated or is Inline)
    Load (Section 1, if it was previously activated -or is Inline- and there is any non SDT-based grid)
    …
    Refresh (Section n, if it was previously activated or is Inline)
    Load (Section n, if it was previously activated -or is Inline- and there is any non SDT-based grid)

Each section is activated in an indeterminate (and possibly concurrent) order.

Example

Event 'TapButton'
    &var = 4;
    Refresh keep
EndEvent

Scope

Objects Transaction object, Panel for Smart Devices, Work With for Smart Devices object

Availability

Refresh keep command is available as from GeneXus X Evolution 3 for Android.

See also


Was this page helpful?
What Is This?
Your feedback about this content is important. Let us know what you think.