Skip to content

Commit

Permalink
Change sample create select clause for ConditionId to use type defini…
Browse files Browse the repository at this point in the history
…tion of ConditionType

Samples Issue 650
  • Loading branch information
Archie-Miller committed Dec 9, 2024
1 parent 7708a11 commit 4d85afa
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 4d85afa

Please sign in to comment.