Hi, I have question, beacuse I have specific situation that I dont know how to handle...
Let say that Im managing attributes, saving values and changeing ConfigString of attribute, and lets focus on ConfigString
return; //do nothing
attribute.ConfigString = attribute.Template.ConfigString;
This code is working and im fine with it, but what I want to do is to save it, do something like CheckIn on this attribute.
I want to do this because I saw that when Im watching a structure in PiExplorer when I try to close it I have a prompt that i have not saved changes and I need to do checkin manually, i want to do it from code, after my change.
Additionaly I see that in cheanged elements now apprears a icon that saying that they are really not saved.
The solution will depend upon how you are obtaining the 'attribute'. Ultimately you need the AFElement that owns the attributes being modified and to call AFElement.CheckIn or PISystem.CheckIn. Here is a CheckIn Example. If you don't have the elements that for the attributes, you can obtain them from the AFAttribute.Element property and then call CheckIn on that element.