Common: Show error message when attributes could not be loaded
This commit is contained in:
parent
a83c751be6
commit
27a757f8d0
@ -170,6 +170,10 @@ Public Class frmObjectPropertyDialog
|
|||||||
|
|
||||||
Dim oAttributes = Await GetAttributesForBusinessEntity(oEntityId)
|
Dim oAttributes = Await GetAttributesForBusinessEntity(oEntityId)
|
||||||
|
|
||||||
|
If oAttributes.Count = 0 Then
|
||||||
|
MsgBox($"Es konnten keine Attribute für das Objekt '{_ObjectId}' geladen werden!", MsgBoxStyle.Critical, Text)
|
||||||
|
End If
|
||||||
|
|
||||||
For Each oAttribute As Attribute In oAttributes
|
For Each oAttribute As Attribute In oAttributes
|
||||||
Dim oControl = _Controls.GetControlForAttribute(oAttribute, True)
|
Dim oControl = _Controls.GetControlForAttribute(oAttribute, True)
|
||||||
Dim oItem As LayoutControlItem = AttributeLayout.AddItem()
|
Dim oItem As LayoutControlItem = AttributeLayout.AddItem()
|
||||||
@ -230,4 +234,8 @@ Public Class frmObjectPropertyDialog
|
|||||||
Return False
|
Return False
|
||||||
End Try
|
End Try
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
Private Sub TabFormControl1_Click(sender As Object, e As EventArgs) Handles TabFormControl1.Click
|
||||||
|
|
||||||
|
End Sub
|
||||||
End Class
|
End Class
|
||||||
Loading…
x
Reference in New Issue
Block a user