Überprüfung WerteLookUpControl

This commit is contained in:
Digital Data - Marlon Schreiber 2019-06-11 09:45:44 +02:00
parent b787f0bd87
commit 8fe526f5c0
2 changed files with 52 additions and 42 deletions

View File

@ -121,7 +121,14 @@ Public Class ClassPMWindream
' 02.07. Änderung der Lock Methode, um eine Validierung auch zuzulassen, wenn das Recht "Datei ändern"
' nicht gesetzt ist
'oDocument.lock()
Try
oDocument.LockFor(WMObjectEditModeIndexEdit)
Catch ex As Exception
LOGGER.Error(ex)
frmValidator.idxerr_message = "Could not lock WMFile - Check Your rights and inform the admin!"
Return False
End Try
Dim i As Integer = 0
Dim indexname As String

View File

@ -3018,9 +3018,12 @@ Public Class frmValidator
Else
input = lookup.SelectedValues.FirstOrDefault()
If IsNothing(input) Then
oMissing = True
oErrorMessage = "Could not get FirstOrDefault-Value of LookUpGrid!"
Exit For
End If
'den aktuellen Wert in windream auslesen
Dim wertWD