Displaying hidden tabs and fields in the Catalogs tool
You can display hidden tabs or fields in the Catalogs tool if your business needs have changed and a new field or tab is required. For example, if you need to gather inventory information, you can display the inventory tab.
Procedure
- Decide which fields or tabs you want to display. The inventory tab and the fields located in the Publishing and Additional Information sections can be displayed.
- Complete one of the following
steps:
Option Description Navigate to the listed directories to locate the OpenLaszlo class files required to display the new information - WCDE_installdir\workspace\LOBTools\WebContent\WEB-INF\src\lzx\commerce\catalog\listViewDefinitions
- This directory contains the CatalogEntryGrid.lzx and CategoryGrid.lzx files.
- WCDE_installdir\workspace\LOBTools\WebContent\WEB-INF\src\lzx\commerce\catalog\objectDefinitions
- This directory contains the KitPrimaryObjectDefinition.lzx, ProductPrimaryObjectDefinition.lzx, and CatalogEntryPrimaryObjectDefinition.lzx files.
- WCDE_installdir\workspace\LOBTools\WebContent\WEB-INF\src\lzx\commerce\catalog\propertiesViews
- This directory contains the CatalogPropertyPane.lzx, CategoryPropertiesView.lzx, KitPropertiesView.lzx, ProductPropertiesView.lzx, and SalesCategoryPropertiesView.lzx files.
Navigate to the listed directories to locate the definition files required to display the new information - WCDE_installdir\workspace\LOBTools\WebContent\config\commerce\catalog\listViewDefinitions
- This directory contains the CatalogEntryGrid.def and CategoryGrid.def files.
- WCDE_installdir\workspace\LOBTools\WebContent\config\commerce\catalog\objectDefinitions
- This directory contains the KitPrimaryObjectDefinition.def, ProductPrimaryObjectDefinition.def, and CatalogEntryPrimaryObjectDefinition.def files.
- WCDE_installdir\workspace\LOBTools\WebContent\config\commerce\catalog\propertiesViews
- This directory contains the CatalogPropertyPane.def, CategoryPropertiesView.def, KitPropertiesView.def, ProductPropertiesView.def, and SalesCategoryPropertiesView.def files.
-
Open each of the files listed in the previous step in a
text editor or within WebSphere Commerce Developer; then search for
the word disabled. For example:
Option Description The following text is taken from the CatalogPropertyPane.lzx file <!-- This field is disabled by default. Uncomment this section to enable the field --><wcfPropertyRichTextEditor <!-- objectPath="CatalogEntryDescription" promptText="${catalogResources.addDescription1Prompt.string}" propertyName="xdesc_auxDescription1"/> -->
The following text is taken from the CatalogPropertyPane.def file <!-- This field is disabled by default. Uncomment this section to enable the field --> <!-- <PropertyRichTextEditor objectPath="CatalogEntryDescription" promptText="${catalogResources.addDescription1Prompt}" propertyName="xdesc_auxDescription1"/> -->
- Uncomment the section below the line
where the word disabled appears
by removing the tag.Using the previous example, the comment tags are now removed.
Option Description CatalogPropertyPane.lzx <!-- This field is disabled by default. Uncomment this section to enable the field --><wcfPropertyRichTextEditor objectPath="CatalogEntryDescription" promptText="${catalogResources.addDescription1Prompt.string}" propertyName="xdesc_auxDescription1"/>
CatalogPropertyPane.def <!-- This field is disabled by default. Uncomment this section to enable the field --> <PropertyRichTextEditor objectPath="CatalogEntryDescription" promptText="${catalogResources.addDescription1Prompt}" propertyName="xdesc_auxDescription1"/>
- If you opened
the file in a text
editor, save it; then open the file in WebSphere Commerce Developer.
Right-click LOBTools Project; then click Build
OpenLaszlo Project or press CTRL+ALT+B.You must complete this step in order for the changes to take effect.
- Close WebSphere Commerce Developer.
- Open the Catalogs tool.