Hi @omi18 ,
Do you want to update the selected record in your Data Table using Edit form?
Please consider take a try with the following workaround:
Set the Items property of the Data Table to following:
'[dbo].[SQLTable]'
Set the DataSource property of the Edit form to following:
'[dbo].[SQLTable]'
set the Item property of the Edit form to following:
DataTable1.Selected
or
LookUp('[dbo].[SQLTable]', PrimaryKeyColumn = DataTable1.Selected.PrimaryKeyColumn)
Set the DefaultMode property of the Edit form to following:
FormMode.Edit
Set the OnSelect property of the "Submit" button to following:
SubmitForm(EditForm1)
Note: Please make sure you have specified a proper Primary Key within your SQL Table.
If you want to use Patch function to submit your data to your SQL Table, please modify the submission formula as below (set the OnSelect property of "Submit" button to following😞
Patch(
'[dbo].[SQLTable]',
DataTable1.Selected,
EditForm1.Updates
)
Best regards,