I have a treegrid pointed to a RestDataSource. One of the fields is defined as follows:
{ name: "ObjectGroupName", title: "User Group", type: "string", canEdit: false,
getFieldValue: function(record, value, field, fieldName) {
var display = (XMLTools.selectString(record, ".//Overrides") == "true") ? " <b>" + XMLTools.selectString(record, ".//ObjectGroupName") + "</b>" : XMLTools.selectString(record, ".//ObjectGroupName");
if (XMLTools.selectString(record, ".//SafeName_Protected") == "true") {
display += "<img src=\"/public/images/admin/fam/shield_add.png\" title=\"These permissions are protected from being automatically overwritten\" alt=\"Protected\" />";
}
return display;
}
},
If I update a record, the getFieldValue is either not being called or it’s returned value is not being used. (In this case the SafeName_Protected field is changing, so I want a special non-tree icon to appear to the right of the field).
I’m using this for the update:
ShowAdminUsergroupTree.updateData(updatedRecord, "ShowAdminUsergroupTree.refreshRow(" + recIdx + ")");
The fields value doesn’t change. Any ideas?
Paul