Hi,
i'm pretty new in this area (powerapps and programming) so i would need a little bit of help with toggle setup.
I have a table called "RDU", rows are marked with "ID_DS", with "problematic" columns called "Value_A" to "Value_D". Possible values are "0" and "1", with default value "0".
I changed drop-down menu with toggle button (in edit form), since it's more user friendly to just "tap" the option where you want to have value "1", as to select it form drop down menu.
Here comes the problem. I don't know how to save selected option to my table (RDU).
I managed to set toggle buttons to display existing value in table with
If(LookUp('RDU',ID_DS=BrowseGallery1.Selected.ID_DS, Value_A.Value)="1",true)
under Default value of toggle button.
Now i don't know how to patch my table with either "0" or "1" value, based on toggle status.
I tried with patch
Patch('RDU',LookUp('RDU',ID_DS=ThisItem.ID_DS,{Value_A: "1"})
under OnCheck (and OnUncheck for "0") field, but to na avail. I get "The type of this argument does not match type 'Record'. Expected. Found type 'Text'."