Hi @Anonymous88 ,
Do you want to save the records in your Data Table back to your SQL Server or CDS Entity?
Based on the needs that you mentioned, I afraid that the Data Table could not achieve your needs. Currently, within canvas app, you could not select multiple records from Data Table once time, you could only select single one record once time.
If you want to save your Data Table records back to your SQL Server Table or CDS Entity once time, I think there is no way to achieve your needs in PowerApps currently.
As an alternative solution, I think the Gallery could achieve your needs. You could consider add a Gallery in your app, set the Items property to following:
Filter(
'[dbo].[SQLTable]',
Column1 = Dropdown1.Selected.Value,
Column2 = Dropdown2.Selected.Value,
...
)
Note: Apply same Filter formula within the Items property of Gallery as that in your Data Table.
Then within this Gallery, you could add several Text Input controls to display the column value from your SQL Table. Set the Default property of the Text Input to following:
ThisItem.Column1
ThisItem.Column2
....
You could also made some changes to the corresponding column through the Text Input Box directly. Outside, the Gallery, add a "Save" button, set the OnSelect property to following:
ForAll(
Gallery1.AllItems,
Patch(
'CDS Entity',
Defaults('CDS Entity'),
{
Column1_Entity: TextInput1.Text,
Column2_Entity: TextInput2.Text,
Column3_Entity: TextInput3.Text,
...
}
)
)
Note: The TextInput1, TextInput2, TextInput3, ... represents the Text Input boxes in above Gallery to display column values from your SQL Table.
ForAll function, Patch function
More details about configuring a Gallery as a Editable GRID, please check the following video resource:
https://www.youtube.com/watch?v=41Mpgn7svLs&t=1s
https://www.youtube.com/watch?v=Y5G5p84mD84&t=321s
Best regards,