Develop > Presentation layer > Management Center framework > Customize the Management Center user interface > Customizing an existing Management Center tool


Changing the search definition for a business object

You can change the search definition for a business object.

To change the search definition for a business object:


Procedure

  1. Open WebSphere Commerce Developer and switch to the Enterprise Explorer view.

  2. In the Enterprise Explorer view, expand LOBTools > WebContent > WEB-INF > src > lzx > commerce > Management_Center_component > searchDefinitions, where Management_Center_component is the name of the tool to customize. All search definitions for objects managed by the Management Center are stored in this directory. All search definitions are named beginning with the Management_Center_component, the name of the search definition in camel case, followed by SearchDefinition.lzx. For example, FindProductsSearchDefinition.lzx.

  3. Open the file that to change and modify the search definition. You can make various changes to the search definition. For example:

    • To change the displayName, change the applicable property file and associated resource bundle.

    • To change the listClass, define a new listClass for the search result.

    • To change the listTitle, define new title name in a property file and associated resource bundle file.

    • To change the advancedSearchContentClass, define a new advanceSearchContent class.

    The following example shows how a search definition is used for the Catalogs tool:

    <class name="catFindAllCategoriesSearchDefinition" extends="wcfSearchDefinition"     searchType="FindCategories"
            displayName="${catalogResources.findCategoriesSearchDefinition_DisplayName.string}"  
            isDefault="false"  listClass="catCategorySearchGrid"  listTitle="${catalogResources.categorySearchTitle.string}" 
            advancedSearchContentClass="catCategoriesAdvancedSearchContent"> 
                    <wcfSearchService name="findAllCategories" url="/cmc/FindCategories-All">                         <wcfServiceParam name="storeId"/> 
                            <wcfServiceParam name="masterCatalogId"/>                 </wcfSearchService> 
    </class>  
    

  4. If you use a resource bundle for the Management Center search definitions, see Define properties files and bundle keys for user interface text for more information about using a resource bundle to define search definitions.


What to do next

After you complete the customization:

  1. Right-click LOBTools Project; then click Build OpenLaszlo Project to produce an updated ManagementCenter.swf file under the workspace_dir\LOBTools\WebContent directory. This is the default environment setting.

  2. Test the changes by viewing them in the Management Center, using this URL: https://hostname:8000/lobtools.

  3. Deploy your changes to the production environment.


Related concepts

Object definitions

Property definitions

Business Object Editor definitions

Navigation list definitions

Search definitions

Management Center shell

Management Center user interface


+

Search Tips   |   Advanced Search