Forum Discussion
OSAdmin
5 years agoValued Contributor II
Originally posted by Frank Dossing
As
For Each row as XFEditedDataRow in args.SqlTableEditorSaveDataTaskInfo
If row.InsertUpdateOrDelete = DbInsUpdateDelType.Update
'If a row is updated, add to an "Update" sql command
ElseIf row.InsertUpdateOrDelete = dbInsUpdateDelType.Insert
'If a row is an insert, add to an "Insert" sql command
End if
Next
When returning from the function, make sure to return a XFSqlTableEditorSaveDataTaskResult object, setting the '.CancelDefaultSave' to true:
Dim xfResult As New XFSqlTableEditorSaveDataTaskResult
xfResult.CancelDefaultSave = True
xfResult.IsOK = True
xfResult.ShowMessageBox = False
Return xfResult
Related Content
- 2 months ago
- 10 months ago