Hi
@WarrenBelz,
I try your formula but nothing. I think the problem came to the use of double ForAll. When I use one to patch Collaborator it is good but with the second patch didn't functionning.
I try something else
// App.OnStart
ClearCollect(colActivities, Activités);
// Construire la collection plate (1 ligne par Personne×Activité)
ClearCollect(
tempCol,
ForAll(
Collaborateurs As G1,
AddColumns(
colActivities,
Colab, G1.Personne, // name collaborateur
Date, Datepicker.SelectedDate, // date
Poste, "", // value full fill by user
RowID, G1.Personne & "_" & NomActivite & "_" & Text(Datepicker.SelectedDate,"yyyy-mm-dd")
)
)
);
ClearCollect(colToEdit, Ungroup(tempCol, Value));
// In Onchange of dropdown
UpdateIf(
colToEdit,
(RowID = (Colab & "_" & ThisItem.NomActivite & "_" & Text(Datepicker.SelectedDate, "yyyy-mm-dd"))),
{ Poste: ddl_Valeur.Selected.Value }
);
// Save Button
ForAll(
colToEdit,
Patch(
'Suivi des activités',
Defaults('Suivi des activités'),
{
Collaborateur: Colab,
Activité: Activit_x00e9_,
Date: Datepicker.SelectedDate,
TypePoste: Poste
}
)
);
When I proceed like this, I can save Collaborator and Actvity but the problem is that the value of the dropdown is not correct. It didn't match with the value enters by user.
Any idea @WarrenBelz and @SebS