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.
The Catalogs tool displays shared attributes. You cannot update or add new attributes to the dictionary.
Beginning with Feature Pack 2 you can update attributes by using the attribute dictionary.
Before you begin
Procedure
This procedure applies to the Deprecated featureConsumer Direct sample
store and the Deprecated featureAdvanced B2B direct sample store. If your store
is using the Deprecated featureMadisons starter store, see ../../com.ibm.commerce.management-center.doc/tasks/tpn_attribdic_roadmap.html.
- To enable the attribute dictionary and non-attribute dictionary
attribute concurrently, switch the implementation of ResolveSkuCmd to ResolveSkuAllCmdImpl in CMDREG table:
- 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\Madisons\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>