EcoResProductDimensionGroupProduct::checkDimensionGroupValidForProduct Method
Checks whether the specified product dimension group is valid for the given product.
Syntax
client server public static boolean checkDimensionGroupValidForProduct(EcoResProduct _ecoResProduct, EcoResProductDimensionGroupRecId _productDimensionGroupRecId)
Run On
Called
Parameters
- _ecoResProduct
Type: EcoResProduct Table
The product for which the check is performed.
- _productDimensionGroupRecId
Type: EcoResProductDimensionGroupRecId Extended Data Type
The ID of a record in the EcoResProductDimensionGroup table for which the check is performed.
Return Value
Type: boolean
true if the product dimension group is valid for the product; otherwise, false.
Remarks
If the product is a product master, then the product dimension group must have at least one product dimension active. If the set of active dimensions is changed, then validate that no product variants exist. If a dimension is disabled, then validate that no product dimensions have been specified for that dimension.