we’re using structuregroups as products. Most of our attributes are structuregroupfeteatures. Usually we do have around 280-300 features on every strcuturegroup.
We are looking for a solution to keep the "StructureGroupAttribute.Purpose" equals to "StructureFeature.Purpose". The first thing we thought on was to create a dataqaulity rule. As this would cost a lot of performance, I had a look into the repository.
I am not sure but what if I change the StructureGroupAttribute.Purpose fieldtype to the same that StructureFeature.Purpose has? Would that be fine?
Dou you guys have another solution for that?
Thanks a lot.
To accomplish this, we've set "editable" to "false" for StructureGroupAttribute.Purpose. This prevents users from modifying StructureGroupAttribute.Purpose without stopping the system from updating it to match StructureFeature.Purpose when that field is updated.
Hope that helps!