Visible property (in run-time for Smart Devices)

Official Content
This documentation is valid for:

Serves the same purpose as Visible property but for Smart Devices.

Values

False The control will not be visible in the form.
True The control will be visible in the form. This is the default value.

 

Example

We could want to display or not a control depending on the action taken. This could be done by an action defined on the form and using the value of a variable also defined on the form. 

For example:

If we don't want the customer’s photo to be displayed, we should do as follows:

Image.Visible = FALSE

Or we could also use the value of a variable as follows:

Image.Visible = &MyVar

Or in case we don't want a variable to be displayed, we should do as follows:

&MyVar.Visible = FALSE

Or we could also use the value of a variable as before:

&MyVar.Visible = &MyVar2

We could also want a control, on a grid, to be displayed or not according to the value of an attribute or variable defined whether on the grid or outside of it. This could be done in the following cases:

  • Using directly FALSE or TRUE as value, over a control defined anywhere in the form, and an action defined in the grid.
  • Over a control defined in the form and using the value of a variable defined in a grid and an action defined in the same grid.
  • Over a control defined in a grid and using the value of a variable defined in the same grid and an action defined  also in the same grid.
  • Using actions defined on the Application Bar over a control whether in a grid or in the form, using directly FALSE or TRUE as values or the value of a variable defined in the form.

Temporary restrictions

  • Using an action in a grid and the value of a variable in the form is not supported, neither using an action defined in the form or Application Bar and the value of a variable defined in the grid.
  • Using an action defined in the form or Application Bar to change the visible property of any control defined in a grid, using the value of a variable defined in a grid.
  • Using an action defined in a grid to change the visible property of any control defined in a grid, and the value of a variable defined on the form.

Notes

  • Once a control has been made “invisible” (control.Visible = FALSE) it remains that way until you make it visible again (control.Visible = TRUE).
  • This property can be used in both, start or load events as well as in user defined events.

Scope

Objects Smart Devices Generator
Controls Smart Device Events, Insert Attribute/Variable Dialog, Image data type, Text Block control, Grid control, Group control, Tab, Table control
Platform Android Smart Devices, Apple Smart Devices (iOS), BlackBerry Smart Devices(up to GeneXus X Evolution 3)
   

See also

Visible property




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