Share via


CatDisplayCategoryTable.canBeImmediateChildOfPerNSL Method

Uses the nested set values to determine whether this record can be an immediate child of the given parentCategoryFromDB record.

Syntax

public boolean canBeImmediateChildOfPerNSL(CatDisplayCategoryTable _parentCategoryFromDB)

Run On

Called

Parameters

Return Value

Type: boolean
true if the record can be an immediate child of the given parentCategoryFromDB record; otherwise, false.

Remarks

The ParentCategory field on the record must not be used for checking because it might have been changed.

The TreeLevel, NestedSetLeft and NestedSetRight fields on the record still have valid values and can be used for checking.

See Also

Reference

CatDisplayCategoryTable Table