Skip to content

Commit

Permalink
Fix Alarms & Conditions sample: Create select clause for ConditionId …
Browse files Browse the repository at this point in the history
…to use type definition of ConditionType (#651)

#650
  • Loading branch information
Archie-Miller authored Dec 10, 2024
1 parent 7708a11 commit b9e0ad2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Workshop/AlarmCondition/Client/FilterDefinition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
2 changes: 1 addition & 1 deletion Workshop/Common/FilterDefinition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit b9e0ad2

Please sign in to comment.