Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X
Hello,
Somehow I did manage to delete most fields from my PropertyDefinition datashape. I need to put the fields back on.
Would someone tell me which are the fields of this datashape so I can restore it?
Thank you in advance,
Marcel
Solved! Go to Solution.
This is a system object that you aren't supposed to be able to edit ...
baseType - basetypename
description - string
isLogged - boolean
isPersistent - boolean
isReadOnly - boolean
name - string
This is a system object that you aren't supposed to be able to edit ...
baseType - basetypename
description - string
isLogged - boolean
isPersistent - boolean
isReadOnly - boolean
name - string
Yes, I don't know exaclty how it happened... If I ever discover I'll be posting it here.
Thank you very much,
Marcel.
I just found out how it happened: by altering the shape of that infotable I also did change the PropertyDefinition datashape. i'll be sure to create a different infotable next time.
var r = Things[Device].GetPropertyDefinitions(params);
// infotable datashape iteration
var dataShapeFields = r.dataShape.fields;
for (var fieldName in dataShapeFields) {
if(fieldName != "description") {
r.RemoveField(fieldName);
}
}