Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.