Skip to content

Commit 4d85afa

Browse files
committed
Change sample create select clause for ConditionId to use type definition of ConditionType
Samples Issue 650
1 parent 7708a11 commit 4d85afa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Workshop/AlarmCondition/Client/FilterDefinition.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public SimpleAttributeOperandCollection ConstructSelectClauses(
125125
// this can be done by specifying an operand with an empty browse path.
126126
SimpleAttributeOperand operand = new SimpleAttributeOperand();
127127

128-
operand.TypeDefinitionId = ObjectTypeIds.BaseEventType;
128+
operand.TypeDefinitionId = ObjectTypeIds.ConditionType;
129129
operand.AttributeId = Attributes.NodeId;
130130
operand.BrowsePath = new QualifiedNameCollection();
131131

Workshop/Common/FilterDefinition.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public SimpleAttributeOperandCollection ConstructSelectClauses(
120120
// this can be done by specifying an operand with an empty browse path.
121121
SimpleAttributeOperand operand = new SimpleAttributeOperand();
122122

123-
operand.TypeDefinitionId = ObjectTypeIds.BaseEventType;
123+
operand.TypeDefinitionId = ObjectTypeIds.ConditionType;
124124
operand.AttributeId = Attributes.NodeId;
125125
operand.BrowsePath = new QualifiedNameCollection();
126126

0 commit comments

Comments
 (0)