IMAGE 1
IMAGE 2
Hello everyone, I'm here to share with you a big question that I'm facing. I have these components (they are in image 1) that create a filter in the gallery that is in image 2. The "COLLABORATOR" component that contains the name of the operation, it needs to be a mandatory field and navigation of the operation component should only be carried out when at least 1 of the other fields were activated. For example, the user entered the employee's name in the "COLLABORATOR" field and the initial and final data and thus had the filter performed in the gallery. I will insert the code for each filter component and the gallery code.
COD Contributor:
If(
Not(IsBlank(ComboBox3_6.Selected.Projeto)) ||
No(IsBlank(DatePicker2_4.SelectedDate)) ||
No(IsBlank(DatePicker2_5.SelectedDate)) ||
No(IsBlank(Toggle1_2.Value)),
If(
No(IsBlank(ComboBox3_8.Selected.'Full Name')),
To browse(
'Project Manager Vision - Home - Filter',
Screen transition.Fade,
{locSelecaoComboboxUser: ComboBox3_8.Selected}
)
)
)
Project Code: Navigate('Visão Gestor Projeto - Home - Filtro', ScreenTransition.Fade,{locSelecaoComboboxProjeto: ComboBox3_6.Selected})
Initial Date Code: Navigate('Visão Gestor Projeto - Home - Filtro', ScreenTransition.Fade,{locSelecaoComboboxDataInicial: DatePicker2_4.SelectedDate})
End Date Code: Navigate('Visão Gestor Projeto - Home - Filtro', ScreenTransition.Fade,{locSelecaoComboboxDataFinal: DatePicker2_5.SelectedDate})
Emergency Code: Navigate('Visão Gestor Projeto - Home - Filtro', ScreenTransition.Fade,{locSelecaoEmergencial: Toggle1_2.Value})
Gallery Filter:
Filter(
Requests,
CreatedBy.'Full Name' = locSelecaoComboboxUser.'Full Name' E
('Initial Data' >= locSelecaoComboboxDataInicial Or IsBlank(DatePicker2_4.SelectedDate)) And
('Final Data' <= locSelecaoComboboxDataFinal Or IsBlank(DatePicker2_5.SelectedDate)) And
(Emergency = locSelecaoEmergential Or IsBlank(Toggle1_2.Value)) And
(Projeto.Projeto = locSelecaoComboboxProjeto.Projeto Or IsBlank(ComboBox3_6.Selected))
)

Report
All responses (
Answers (