CatDisplayCategoryTable::initDisplayCategory Method
Creates a CatDisplayCategoryTable record and initializes it with the given data.
Syntax
client server public static CatDisplayCategoryTable initDisplayCategory(
CatProcureCatalogTable _catalog,
Name _name,
CatDisplayCategoryTable _parent,
CatDisplayCategorySharedInfo _sharedData,
[UpdateType _updateType,
EcoResCategory _erCategory])
Run On
Called
Parameters
- _catalog
Type: CatProcureCatalogTable Table
The CatProcureCatalogTable record for which the CatDisplayCategoryTable record is used.
- _name
Type: Name Extended Data Type
The name of the CatDisplayCategoryTable record.
- _parent
Type: CatDisplayCategoryTable Table
The CatDisplayCategoryTable record that is the parent of the CatDisplayCategoryTable record.
- _sharedData
Type: CatDisplayCategorySharedInfo Table
The CatDisplayCategorySharedInfo record that the CatDisplayCategoryTable record is associated with.
- _updateType
Type: UpdateType Enumeration
The update type for the display category.
- _erCategory
Type: EcoResCategory Table
The EcoResCategory record this node is for.
Return Value
Type: CatDisplayCategoryTable Table
An instance of the CatDisplayCategoryTable table that is initialized with the given data.
Remarks
The CatProcureCatalogTable record is not persisted.
The default value for update type will be 1 if the given parent is available; otherwise, 2.