Hi!
I have a gallery acting as an editable Grid, I'm trying to modify items and then patching. But my problem is the patching only works, for when I edit an item at a time when I edit two, 3 or more items it only saves one value(the last that the input takes).
I only need to edit one field which is the text input of each rows of each item.
This is the original code I was using :
ForAll(
colGridProyectosUpdates;
Patch(
'Propuesta Carga de Hs';
ThisRecord;
{
Horas: Value(HorasProyectos_txtInput.Value);
ItemModificado_Comment: CommentariosModificados_txtInput.Value;
'Estado Modificación': {
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference";
Value: "Pendiente"
}
}
)
)
When I started noticing that it only saved one value when I changed more than one item, I changed the code to the following to try to specify the different items IDs:
ForAll(
colGridProyectosUpdates As Proyectos;
Patch(
'Propuesta Carga de Hs ';
LookUp('Propuesta Carga de Hs '; ID = Proyectos.ID);
{
Horas: Value(HorasProyectos_txtInput.Value);
ItemModificado_Comment: CommentariosModificados_txtInput.Value;
'Estado Modificación': {
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference";
Value: "Pendiente"
}
}
)
)
But it still does the same.. any idea on how I make it work and save the corresponding value to the item "Horas" to the corresponding item in sharepoint?
Thank you!