From 8ac13823ca11e24541364bb754fcd928ffb13cfe Mon Sep 17 00:00:00 2001 From: Jonathan Jenne Date: Mon, 13 Mar 2023 15:43:31 +0100 Subject: [PATCH] Fix placeholder configuration for dynamic sqls --- Global_Indexer/frmAdministration.vb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Global_Indexer/frmAdministration.vb b/Global_Indexer/frmAdministration.vb index 3e944de..8dccebd 100644 --- a/Global_Indexer/frmAdministration.vb +++ b/Global_Indexer/frmAdministration.vb @@ -527,12 +527,13 @@ 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 + .PlaceholdersManual = oPlaceholders, + .PlaceholdersManualPrefix = "CTRL" } Dim oResult = oForm2.ShowDialog()