ProductCatalog.GenerateCustomCatalog

Ee796984.c++_on(en-US,CS.10).gifEe796984.vb_off(en-US,CS.10).gif

Use this method to populate a custom catalog with data or to update a custom catalog to reflect the latest version of the base catalog. A copy of the base catalog is made and custom prices and rules are applied to generate the custom catalog.

Definition

Sub GenerateCustomCatalog(strCustomCatalogName As String)

Parameters

strCustomCatalogName

A String that contains the custom catalog name.

Return Values

None.

Error Values

This method sets the Number property of the global Err object to S_OK (&H00000000) to indicate success and to either standard or custom COM error values to indicate failure. For more information about standard COM errors, see Standard COM Errors.

The following table shows the custom COM error that this method can return.

Constant Value Description
E_CAT_CUSTOMCAT_DOESNT_EXIST &H88980024 The specified custom catalog did not exist.

Additional information may be available using the global Err object. In particular, the Description property may contain a text description of the error.

Remarks

Use this method to populate a custom catalog template with data. If the custom catalog already exists then the existing data will be deleted. The generated custom catalog is a copy of the base catalog at the moment when it is populated by this method. The prices of the products in the custom catalog are determined by applying the custom pricing rule that has been set with the SetCategoryCustomPrice method. After the custom catalog has been generated by this method, the custom catalog can be treated as any other catalog.

Because custom catalogs are only copies of an existing base catalog, and are not dynamically linked to the base catalog, any changes made to the base catalog will not be automatically reflected in any custom catalogs derived from it. Similarly, any changes made to a custom catalog will not automatically propagate back to the base catalog. Use this method to update the custom catalog to reflect the latest version of the base catalog.

Ee796984.note(en-US,CS.10).gif Note

  • This method cannot be called in a transacted object. This method involves the creation, deletion, or updating of free text indexes. SQL Server does not allow these operations in a transaction.

Example

myProductCatalog.GenerateCustomCatalog "SeniorDiscountCatalog"

See Also

ProductCatalog Object

ProductCatalog.CreateCustomCatalog

ProductCatalog.DeleteCustomCatalog

ProductCatalog.SetCategoryCustomPrice


All rights reserved.