I am not sure how to update the table "WorkingUnit" in SQL database when user input field UnitID changes in Gallery1:
1. Change the value in UnitID text field
2. Lookup data from SQL data table "UnitInfo" for UnitName, AKA, Status, StartDate and EndDate
3. Patch data to table "WorkingUnit".
For OnChange property of UnitID field: Collect(UnitInfo_Collection, LookUp('[dbo].[UnitInfo]', UnitID = UnitID.Text)); Patch('[dbo].[WorkingUnit]', ThisItem, {UnitID: UnitInfo_Collection.UnitName})
I got error saying expected type text, found table. I just need to use the first row in the collection (lookup always returns one row), how do I tell it to use the first row? Thank you in advance for your help!