AnsweredAssumed Answered

PI system explorer

Question asked by shifana on Aug 4, 2015
Latest reply on Aug 5, 2015 by shifana

Hi All,

 

I tried to update(change) the attribute(Encoder) value for the existing element through c# code but the values are not reflecting in attribute fields.Will anyone pls resolve this issue:(

 

Here is my code:

if (myAFElement.Attributes["Encoder"].GetValue() == null)

myAFElement.Attributes["Encoder"].SetValue(new AFValue(status));

myAFElement.ApplyChanges();                                     

myAFElement.CheckIn();

obj_AFDatabase.ApplyChanges();

Outcomes