All - I'm struggling(lost) - pretty new to using SQL DB as a data source (also using the ForAll/Patch)
I have a ClearCollect (called ccXYZCompany) pulling data from a SQL DB called dbo.ABC_XYZCompany.
Gallery called: gal_XYZCompany with label names such as g_Date, g_AssignedTo, g_PayAmount
Basic SQL column names: {"Date", "AssignedTo", "PayAmount"} etc.
When the gallery row "IsSelected" it will pop up a Form.
Change:
Need to be able to select multiple records to update "AssignedTo" column using an outside DropDown1
Added a CheckBox inside the ccXYZCompany gallery. Right now called CheckBox1
CheckBox1:
OnCheck: Collect(colAssignedTo, {AssignedTo: Dropdown2.Selected.displayName})
OnUnCheck: Remove(colAssignedTo, {AssignedTo: ThisItem.AssignedTo})
Default: !IsBlank(LookUp(colAssignedTo, AssignedTo = ThisItem.AssignedTo))
I hope above is correct..
The ForAll & Patch is where I don't understand the correct syntax. I have tried different combination but nothing seems to be working.
Patch Button: ForAll(colAssignedTo, Patch('dbo.ABC_XYZCompany', Defaults('dbo.ABC_XYZCompany'),
This is about as far as I got, just unsure how to get the selected Checkboxes using DropDown2 selected name to update AssignedTo column to SQL? Any help would be very appreciated