4 Replies Latest reply on Aug 5, 2015 12:44 PM by shifana

    PI system explorer

    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();