Tutorials > Management Center


Next >


Tutorial: Extending simple search in the Catalogs tool

This tutorial shows how to extend simple search in the Catalogs tool in the IBM Management Center for WebSphere Commerce. Simple search is a function performed in the search widget of the Management Center, which provides the capability to search on a single property – such as the price or size of a product. The current Catalogs tool provides several simple searches such as search catalog entries by name, and search category by name. In this tutorial, we will provide search on catalog entries by warranty term, warranty type and care instruction.

In this tutorial module, we will use the data service layer to generate the parametric Simple catalog search search queries for you. The queries are specified using configuration files called query template files. This is an appropriate query method for developers who do not want to write their own SQL.

This tutorial is the continuation of Tutorial: Adding new fields in the Catalogs tool and Tutorial: Adding new search conditions in the advanced search of the Catalogs tool. You will continue customizing the Management Center, to perform cross-column (on 3 columns, spread over 2 tables) wildcard searches on warranty and care instruction information of catalog entries and catalog entry descriptions. This information is stored in different columns of 2 tables: XWARRANTY and XCAREINSTRUCTION. These tables are created in Tutorial: Adding new fields in the Catalogs tool.

The following diagram outlines the schema-related warranty information. The columns for wildcard search are marked with red underline.

Extend simple catalog search consists of two steps:

To create a new search definition, see Changing the search definition for a Management Center object.

As a result of the extension, the new search widget will look like the following screen capture, in which "All Catalog Entries By Warranty" is added:

In this tutorial, the DSL is used to generate the parametric search SQL. If you do not want DSL to generate parametric search SQL, you can override this behavior. For more information, see Overriding generated parametric search SQL.


Learning objectives

After completing this tutorial you should be able to:


Time required

Expect this tutorial to take about two hours to complete.

You can download the completed tutorial code for this tutorial for the reference:

However, in order to fully attain the learning objectives, it is recommended that you perform the tutorial step-by-step.


Skill level

Advanced


Audience

This tutorial is intended for WebSphere Commerce developers responsible for creating and customizing WebSphere Commerce SOA services and customizing the Management Center user interface.


System requirements

Before beginning this tutorial ensure that you have:

  1. Enabled the management-center feature

  2. Created a Category Manager

  3. Completed the following tutorials:


Prerequisites

To complete this tutorial you should have a basic understanding of:


Lessons in this tutorial

Next >


+

Search Tips   |   Advanced Search