Hello
I've created an app from a dataverse table
In this app there's a gallery and a form, selecting an item in the gallery changes the form to show the selected item, so far so good.
However i want to be able to incrementally change the value of a single datacard and then submit it back to dataverse, for context this is to quickly change the amount of stock on a given item.
I've tried using the following patch function on a button seperate to the form
Patch(
Varelager;
LookUp(
Varelager;
'På lager' = RecordsGallery1.Selected.'På lager'
);
{'På lager': RecordsGallery1.Selected.'På lager' + 1}
)
Varelager is the Dataverse Table, 'På Lager' Is the column, and RecordsGallery1 is the gallery that you select items from.
I've assigned this to a button outside the form to be able to independently change that specific value, however it sometimes doesn't work with a single click, and requires multiple presses. I have tried to troubleshoot with Powerapps Monitoring, but as far as I can tell it works as intended, I've also tried seeing if it's a problem with updating the shown value, it is not.
Any suggestions on how to fix the patch function, or other methods of achieving the same thing would be greatly appreciated
Have a nice day!
Thanks in Advance.
Tobias