Prepare Loading Control Properties in Property Grid, Preload Controls with Data in Workflow Form

This commit is contained in:
Jonathan Jenne
2019-03-26 16:17:40 +01:00
parent 2438528741
commit c1dc7fcc22
27 changed files with 263 additions and 1053 deletions

View File

@@ -30,4 +30,26 @@ Public Class ClassCommonViews
Throw ex
End Try
End Function
Public Async Function VWICM_WF_REQUESTCONTROLDATA(FormId As Int64, RequestId As Int64) As Task(Of DataTable)
Try
My.Channel.CreateDatabaseRequest("Load Control Data", True)
Dim oSQL As String = $"SELECT * FROM VWICM_WF_REQUESTCONTROLDATA WHERE FORMID = {FormId} AND REQUESTID = {RequestId}"
Dim oResult = Await My.Channel.ReturnDatatableAsync(oSQL)
Dim oTable = oResult.Table
If Not oResult.OK Then
_Logger.Error(New ApplicationException(oResult.ErrorMessage))
Return Nothing
End If
My.Channel.CloseDatabaseRequest()
Return oResult.Table
Catch ex As Exception
_Logger.Error(ex)
Throw ex
End Try
End Function
End Class