You may create custom item types or views that you’ll want to make visible to ATG Business Control Center users. For example, you might create a Manufacturer view in ATG Merchandising that displays all product manufacturers in a list. To make that view visible to users in the Author task of the Manage Commerce Assets workflow, add this code to your task configuration file:

<task>
  <task-name>
    author
  </task-name>
  <workflow-name>
    /Commerce/editCommerceAssets.wdl
  </workflow-name>
  <tabs>
    <tab id="browse">
      <views>
        <view-order>
          manufacturer
        </view-order>
        <view id="manufacturer">
          <resource-bundle>
            Mypackage.MyMerchandisingResources
          </resource-bundle>
          <display-name-resource>
            browseTab.view.manufacturer
          </display-name-resource>
          <configuration>
            /atg/commerce/web/assetmanager/
            ManufacturerViewConfiguration
          </configuration>
        </view>
      </views>
    </tab>
    <tab id="search">
      <views>
        <view id="form">
          <item-types combine="append">
            <item-type>/atg/commerce/catalog/ProductCatalog:manufacturer
            </item-type>
          </item-types>
        </view>
      </views>
    </tab>
  </tabs>
</task>

In this example, both the task and workflow names are included to indicate that these settings should be applied only for that task when it’s used in that workflow. These settings will not apply for other workflows that use this task and other tasks in the indicated workflow. If you wanted these settings to apply to the task in all workflows that use it, for example, you would exclude the <workflow-name> tag.

These tags add the Manufacturer view to the list of views available to the Browse tab. The Manufacturer view is the last view in the list of views. A new view is added to the bottom of the list of views by default, unless you replace the current order with a new one using the combine attribute and replace value. Tags define the resource bundle key that identifies the name that appears in the drop-down list for the view and the component that configures the Navigation pane for the view. Notice that a custom resource bundle is used here. See the Using Resource Bundles for Internationalization section of the Internationalizing a Dynamo Web Site chapter in the ATG Programming Guide for more information on resource bundles.

The last block of tags makes it possible to search for manufacturers. When you search for an item, you select an item from a drop-down list. This code demonstrates how to add a new item type – manufacturer – to that list.

 
loading table of contents...