MS RowStyle NodeNavigation
This commit is contained in:
@@ -150,19 +150,23 @@ Public Class ClassSAP
|
||||
LOGGER.Error(ex)
|
||||
End Try
|
||||
End Sub
|
||||
Public Shared Function Return_Datatable_for_Table(tablename As String, where_clause As String, Optional RowLimit As Integer = 0)
|
||||
Public Shared Function Return_Datatable_for_Table(tablename As String, where_clause As String, oRaisIncomPack As Boolean, RowLimit As Integer)
|
||||
Try
|
||||
Dim RESULT_TABLE As DataTable = New DataTable
|
||||
LOGGER.Debug("Get data from SAP Table", False)
|
||||
Dim oReadTable As New ERPConnect.Utils.ReadTable(SAP_CONNECTION)
|
||||
oReadTable.PackageSize = 10000
|
||||
oReadTable.RaiseIncomingPackageEvent = True
|
||||
If oRaisIncomPack = True Then
|
||||
oReadTable.PackageSize = 10000
|
||||
oReadTable.RaiseIncomingPackageEvent = True
|
||||
End If
|
||||
|
||||
NewDatatable = Nothing
|
||||
If where_clause <> "" Then
|
||||
oReadTable.WhereClause = where_clause
|
||||
End If
|
||||
oReadTable.TableName = tablename
|
||||
If RowLimit <> 0 Then
|
||||
LOGGER.Debug("RowLimit included!")
|
||||
oReadTable.RowCount = RowLimit
|
||||
End If
|
||||
LOGGER.Debug("Table.Run executing.....")
|
||||
|
||||
Reference in New Issue
Block a user