From b9e0ad2885f0dc4b2ae459f6a21fb7e10a4e7757 Mon Sep 17 00:00:00 2001 From: Archie Miller <62433534+Archie-Miller@users.noreply.github.com> Date: Mon, 9 Dec 2024 22:48:30 -0700 Subject: [PATCH] Fix Alarms & Conditions sample: Create select clause for ConditionId to use type definition of ConditionType (#651) #650 --- Workshop/AlarmCondition/Client/FilterDefinition.cs | 2 +- Workshop/Common/FilterDefinition.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Workshop/AlarmCondition/Client/FilterDefinition.cs b/Workshop/AlarmCondition/Client/FilterDefinition.cs index 9fd59b8dd..587b76153 100644 --- a/Workshop/AlarmCondition/Client/FilterDefinition.cs +++ b/Workshop/AlarmCondition/Client/FilterDefinition.cs @@ -125,7 +125,7 @@ public SimpleAttributeOperandCollection ConstructSelectClauses( // this can be done by specifying an operand with an empty browse path. SimpleAttributeOperand operand = new SimpleAttributeOperand(); - operand.TypeDefinitionId = ObjectTypeIds.BaseEventType; + operand.TypeDefinitionId = ObjectTypeIds.ConditionType; operand.AttributeId = Attributes.NodeId; operand.BrowsePath = new QualifiedNameCollection(); diff --git a/Workshop/Common/FilterDefinition.cs b/Workshop/Common/FilterDefinition.cs index e0def0489..f1f63d1ce 100644 --- a/Workshop/Common/FilterDefinition.cs +++ b/Workshop/Common/FilterDefinition.cs @@ -120,7 +120,7 @@ public SimpleAttributeOperandCollection ConstructSelectClauses( // this can be done by specifying an operand with an empty browse path. SimpleAttributeOperand operand = new SimpleAttributeOperand(); - operand.TypeDefinitionId = ObjectTypeIds.BaseEventType; + operand.TypeDefinitionId = ObjectTypeIds.ConditionType; operand.AttributeId = Attributes.NodeId; operand.BrowsePath = new QualifiedNameCollection();