Comparteix a través de


ProcCategoryModifier::getNearestAncestorWithInheritUnchecked Method

Queries the database to find the nearest, by tree level, ancestor which does not inherit a flag set.

Syntax

client server public static EcoResCategory getNearestAncestorWithInheritUnchecked(EcoResCategory _category, FieldId _inheritanceFieldId)

Run On

Called

Parameters

  • _category
    Type: EcoResCategory Table
    An existing EcoResCategory record for which to find the nearest stop-inheritance ancestor.

Return Value

Type: EcoResCategory Table
A record of the EcoResCategory table.

Remarks

The given _category parameter must already exist in the database, cannot be the root node, and must have InheritAttributes value set to the No 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.

See Also

Reference

ProcCategoryModifier Table