EcoResCategory::rebuildNestedSetTree Method
Calculates the value of the NestedSetRight and NestedSetLeft fields by using information from the ParentCategory field.
Syntax
server public static void rebuildNestedSetTree(EcoResCategoryHierarchyId _ecoResCategoryHierarchyId)
Run On
Server
Parameters
- _ecoResCategoryHierarchyId
Type: EcoResCategoryHierarchyId Extended Data Type
The category hierarchy ID for which to retrieve of the record in the EcoResCategoryHierarchy table.
Remarks
This method can be called to rebuild the nested set values. Before running this method, you must disable the unique index on the values of the NestedSetRight and NestedSetLeft fields.