Código de la App
Controles
Screen1
OnVisible
[UpdateContext({locShowValidation: {
FullName: false;
Age: false;
ReservationDate: false;
EmailAddress: false
}
});;
]
Gallery1
OnSelect
[Clear(CollMat);;Set(DefaultCoche;false);;
Set(DefaultTeléfono;false);;
Set(DefaultLlaves;false);;
If(«Coche» in Gallery1.Selected.Material.Value;Collect(CollMat;{Value:»Coche»});;Set(DefaultCoche;true));;
If(«Teléfono» in Gallery1.Selected.Material.Value;Collect(CollMat;{Value:»Teléfono»});;Set(DefaultTeléfono;true));;
If(«Llaves» in Gallery1.Selected.Material.Value;Collect(CollMat;{Value:»Llaves»});;Set(DefaultLlaves;true));;
Set (Defaultmaterial;ForAll(CollMat;Value))]
Icono_nombre
Icon
BorderColor
If(Self.Icon=Icon.Check; DarkGreen; DarkRed)
Color
Fill
Visible
locShowValidation.FullName
Icono_edad
Icon
BorderColor
If(Self.Icon=Icon.Check; DarkGreen; DarkRed)
Color
Fill
Visible
locShowValidation.Age
Icono_fecha
Icon
BorderColor
If(Self.Icon=Icon.Check; DarkGreen; DarkRed)
Color
Fill
Visible
locShowValidation.ReservationDate
Icono_guardar
DisplayMode
OnSelect
Clear(CollMat);;
Set(DefaultCoche;false);;
Set(DefaultTeléfono;false);;
Set(DefaultLlaves;false);;
If(«Coche» in Form1.LastSubmit.Material.Value;Collect(CollMat;{Value:»Coche»});;Set(DefaultCoche;true));;
If(«Teléfono» in Form1.LastSubmit.Material.Value;Collect(CollMat;{Value:»Teléfono»});;Set(DefaultTeléfono;true));;
If(«Llaves» in Form1.LastSubmit.Material.Value;Collect(CollMat;{Value:»Llaves»});;Set(DefaultLlaves;true));;
Set (Defaultmaterial;ForAll(CollMat;Value));;
UpdateContext({
locShowValidation: {
FullName: false;
Age: false;
ReservationDate: false;
EmailAddress: false
}
})