EcoResCategory::isDescendant Method
Determines whether the specified category is a descendant node of the given category.
Syntax
server public static boolean isDescendant(
RecId descendentCategoryId,
RecId ancestorCategoryId,
boolean checkIsActive)
Run On
Server
Parameters
- descendentCategoryId
Type: RecId Extended Data Type
The descendent category to be checked for descendancy.
- ancestorCategoryId
Type: RecId Extended Data Type
The ancestor category ID.
- checkIsActive
Type: boolean
Determines whether the check on the IsActive field is required or not on the descendent category.
Return Value
Type: boolean
true if the specified category is a descendant or the two nodes are the same; otherwise, false.