MS Structure Nodes
This commit is contained in:
@@ -227,9 +227,15 @@
|
||||
|
||||
Dim drarray() As DataRow = CURRENT_SQL_AUTO_VALUES_DT.Select("GUID = " & ControlId)
|
||||
If drarray.Length > 0 Then
|
||||
Dim ID = drarray(0)("CONNECTION_ID").ToString
|
||||
Dim ID
|
||||
Try
|
||||
ID = drarray(0)("CONNECTION_ID_1").ToString
|
||||
Catch ex As Exception
|
||||
ID = drarray(0)("CONNECTION_ID").ToString
|
||||
End Try
|
||||
|
||||
If Not IsNothing(ID) Then
|
||||
Sql = drarray(0)("SQL_COMMAND").ToString
|
||||
Sql = drarray(0)("SQL_COMMAND_1").ToString
|
||||
Sql = ClassControlValues.ReplaceSqlCommandPlaceholders(Sql, recordId, parentRecordId, entity_ID)
|
||||
autoValue = ClassDatabase.Execute_ScalarWithConnection(ID, Sql)
|
||||
Else
|
||||
@@ -258,8 +264,8 @@
|
||||
End If
|
||||
Catch ex As Exception
|
||||
MsgBox("Unexpected Error in LoadValueMain:" & vbNewLine & ex.Message, MsgBoxStyle.Critical)
|
||||
ClassLogger.Add("Unexpected Error in LoadValueMain: " & ex.Message, True)
|
||||
ClassLogger.Add(String.Format("ControlID: {0}" & vbNewLine & "recordid: {1}" & vbNewLine & "parentRecordId: {2}" & vbNewLine & "value: {3}" & vbNewLine & "entity_ID: {4}" & vbNewLine & "VARIABLE_VALUE: {5}", ControlId, recordId, parentRecordId, value, entity_ID, VARIABLE_VALUE), False)
|
||||
ClassLogger.Add("Unexpected Error in LoadValueMain: " & ex.Message, True)
|
||||
ClassLogger.Add(String.Format("ControlID: {0}" & vbNewLine & "recordid: {1}" & vbNewLine & "parentRecordId: {2}" & vbNewLine & "value: {3}" & vbNewLine & "entity_ID: {4}" & vbNewLine & "VARIABLE_VALUE: {5}", ControlId, recordId, parentRecordId, value, entity_ID, VARIABLE_VALUE), False)
|
||||
End Try
|
||||
|
||||
End Sub
|
||||
@@ -323,7 +329,14 @@
|
||||
Dim drarray() As DataRow = CURRENT_SQL_AUTO_VALUES_DT.Select("CONTROL_ID = " & ControlId)
|
||||
If drarray.Length > 0 Then
|
||||
Dim autoValue
|
||||
Dim ID = drarray(0)("CONNECTION_ID").ToString
|
||||
Dim ID
|
||||
Try
|
||||
ID = drarray(0)("CONNECTION_ID_1").ToString
|
||||
Catch ex As Exception
|
||||
ID = drarray(0)("CONNECTION_ID").ToString
|
||||
End Try
|
||||
|
||||
|
||||
Dim Sql = drarray(0)("SQL_COMMAND").ToString
|
||||
If Not IsNothing(ID) Then
|
||||
autoValue = ClassDatabase.Execute_ScalarWithConnection(ID, Sql)
|
||||
|
||||
Reference in New Issue
Block a user