Enabling the attribute dictionary
If you are using an external catalog, you can save time by using the attribute dictionary
to load attributes for your products.
Before you begin
Procedure
To enable the attribute dictionary only, switch the implementation of ResolveSkuCmd to ResolveSkuNewCmdImpl in the CMDREG table:
Example
There are two approaches for accessing the Attribute dictionary from server-side JSP pages for
customers who currently use DataBeans to access classic attributes. The first approach is to call
the SOA storefront service. The sample JSP file can be found in the following directory
WCDE_installdir\workspace\Stores\WebContent\AuroraESite\Snippets\Catalog\CatalogEntryDisplay\CachedProductOnlyDisplay.jsp
.
<wcf:getData type="com.ibm.commerce.catalog.facade.datatypes.CatalogEntryType" var="catentry"
expressionBuilder="getStoreCatalogEntryAttributesByID">
<wcf:contextData name="storeId" data="${param.storeId}"/>
<wcf:param name="catEntryId" value="${WCParam.productId}"/>
<wcf:param name="dataLanguageIds" value="${WCParam.langId}"/>
</wcf:getData>
The second approach is to call the new CatalogNavigationView based SOA
storefront service. For more information, see CatalogEntry
noun and look for the access profiles:
IBM_Admin_CatalogEntryAttrDictDescriptiveAttributes_Paging
and
IBM_Admin_CatalogEntryAttrDictDefiningAttributes
The sample JSP file is in the following
directory
WCDE_installdir\workspace\Stores\WebContent\AuroraStorefrontAssetStore\Widgets\CatalogEntry\CatalogEntryDisplay_Data.jsp.
<wcf:getData type="com.ibm.commerce.catalog.facade.datatypes.CatalogNavigationViewType" var="catalogNavigationView"
expressionBuilder="getCatalogEntryViewPriceWithAttributesByID" varShowVerb="showCatalogNavigationView" recordSetStartNumber="0">
<wcf:param name=e="UniqueID" value="${catEntryIdentifier}"/>
<wcf:contextData name="storeId" data="${storeId}" />
<wcf:contextData name="catalogId" data="${catalogId}" />
</wcf:getData>