Hello,
I'm using a gallery, with a combo box in it and a text box, this controls get added dynamically into the gallery when clicking on add new line button, because it doesn't have predeterminated amount of rows of info to be added.
so I'm having a problem when I'm trying to save, the items from the gallery to the sharepoint List and I want this items to be created as a new item, as if this gallery was a form creating new items.
I'm using this on the on select button:
ForAll(
carga_hs_gal.AllItems;
Patch(
'Propuesta Carga de Hs ';
Defaults('Propuesta Carga de Hs ');
{
Productos: Productos_combo.Selected;
Horas: Hs_txt
}
)
)
But it gives me a patch error (operation not valid)
tried changing also what I use into this other version: Patch(
'Propuesta Carga de Hs ';
ForAll(
carga_hs_gal.AllItems;
{
Productos: Productos_combo.Selected;
Horas: Hs_txt
}
)
)
But the patch keeps giving an error. If I use the same to save it into a new collection, it saves fine, but why not into a sharepoint list?
Any idea what could it be or how to fix it?