Queries the database to find the nearest ancestor, by tree level, that does not have the IsCategoryAttributesInherited field value set to yes.
Syntax
client server public static EcoResCategory getNearestAncestorWithNoInheritance(EcoResCategory _category)
Run On
Called
Parameters
- _category
Type: EcoResCategory Table
An existing record of the EcoResCategory table for which to find the nearest stop-inheritance ancestor.
Return Value
Type: EcoResCategory Table
A record in the EcoResCategory table.
Remarks
The record that is specified by the _cateogry parameter must already be located in the database, cannot be the root node, and must have the InheritCategoryAttributes property set to the NoYes::No enumeration value. The query uses the nested set values and tree level information to find the nearest stop-inheritance ancestor. A record is guaranteed to be found.