@Anonymous
Ah, ok.
I was able to get something working at my end by adding a Toggle to the Gallery. Try this:
1. Add a Toggle to the Gallery
2. Set the Toggle Default to
If(TextInput1.Text=ThisItem.Score,false,true)
Notes:
- TextInput1 is the input field you are adjusting the score inside your gallery
- ThisItem.Score, change 'Score' to match your DB column heading
- you can hide this Toggle when we are done, set the Visible property to false
3. Adjust your Patch code to this
ForAll(RenameColumns(Filter('EXCEL TYPE EDIT GALLERY'.AllItems,Toggle1.Value),"ID","ID1"),
// here I've assumed you have a column called ID, adjust this to suit your needs
Patch('dbo.STUDENT_TBL',
LookUp('dbo.STUDENT_TBL', ID = ID1), // adjust ID & ID1 to your needs as per above
{SCORE:Value('TextInput1'.Text)}
)
)
Note: Toggle1 is the name of your Toggle so adjust as needed.
Let me know if this improves the performance?