Hi,
I feel I am close to solving this one however I need help getting over the line. I have followed the principle that Shane Young used in his video https://www.youtube.com/watch?v=0xZ4fMJbLvk, however I do not want to use a checkbox.
I have a skills matrix and an individual employee will have multiple skills recorded. If they change position or location etc I need to be able to update all of their records in the skills matrix. It only patches the first instance of the selected employee.
The first patch is to set the IsChosen to true and then patch the main record.
Patch(TeamCollection,GalleryTeamList.Selected, {IsChosen:true});
ForAll(
RenameColumns(Filter(TeamCollection,IsChosen),"EmployeeNumber","EmpNum"),
Patch(SkillsMatrix,LookUp(SkillsMatrix,EmployeeNumber=EmpNum),
{
Surname: AmendSurname.Text,
FirstName: AmendFirstName.Text,
Location: AmendLocation.Text,
Position: AmendPosition.Text
}
));
ClearCollect(TeamCollection,AddColumns(TeamList,"IsChosen",false));
Thanks in advance.