Fix placeholder format for manual indexes in automatic indexes
This commit is contained in:
parent
3995c6c9fd
commit
8f129647fb
@ -40,7 +40,7 @@ Public Class ClassPatterns
|
||||
Public Const INT_VALUE_DOMAIN = "DOMAIN"
|
||||
Public Const INT_VALUE_DATE = "DATE"
|
||||
|
||||
Public Const MAX_TRY_COUNT = 500
|
||||
Public Const MAX_TRY_COUNT = 20
|
||||
|
||||
Private Shared ReadOnly regex As Regex = New Regex("{#(\w+)#([\.\w\d\s_-]+)}+")
|
||||
Private Shared ReadOnly allPatterns As New List(Of String) From {PATTERN_WMI, PATTERN_CTRL, PATTERN_IDBA, PATTERN_USER, PATTERN_INT}
|
||||
@ -260,7 +260,7 @@ Public Class ClassPatterns
|
||||
|
||||
oTryCounter += 1
|
||||
End While
|
||||
LOGGER.Debug("input after ReplaceControlValues [{input}]")
|
||||
LOGGER.Debug($"input after ReplaceControlValues [{input}]")
|
||||
Return result
|
||||
Catch ex As Exception
|
||||
LOGGER.Error(ex)
|
||||
|
||||
@ -655,13 +655,14 @@ Public Class frmAdministration
|
||||
|
||||
Dim oDatatable = DATABASE_ECM.GetDatatable($"SELECT * FROM TBDD_INDEX_MAN WHERE DOK_ID = {oDocTypeGuid} AND ACTIVE = 1")
|
||||
Dim oPlaceholders = oDatatable.AsEnumerable().
|
||||
ToDictionary(Of String, String)(Function(row) row.Item("NAME"), Function(row) row.Item("WD_INDEX"))
|
||||
ToDictionary(Of String, String)(Function(row) row.Item("NAME"), Function(row) row.Item("NAME"))
|
||||
|
||||
Dim oForm2 As New DigitalData.GUIs.Common.frmSQLEditor(LOGCONFIG, DATABASE_ECM) With {
|
||||
.SQLCommand = oSQLCommand,
|
||||
.SQLConnection = oConnection,
|
||||
.PlaceholdersManual = oPlaceholders,
|
||||
.PlaceholdersManualTitle = "Manueller Index"
|
||||
.PlaceholdersManualTitle = "Manueller Index",
|
||||
.PlaceholdersAutomaticPrefix = "CTRL"
|
||||
}
|
||||
|
||||
Dim oResult = oForm2.ShowDialog()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user