Develop > Presentation layer > Management Center framework > Customize the Management Center user interface > Create a new tool for the Management Center


Add an OpenLaszlo library to the Management Center

As part of creating a new custom tool for the Management Center, once you have defined all the OpenLaszlo classes, define a single library that includes all the .lzx files that contain OpenLaszlo classes. The Management Center reads this file to understand and recognized all the associated classes for the new tool.


Before you begin

Before you create a library for your new tool, ensure you have created the appropriate OpenLaszlo classes. See Create a new tool for the Management Center.


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 > your_company_name > Management_Center_component, where Management_Center_component is the name of the new custom tool.

  3. Create an OpenLaszlo library file with this syntax: Management_Center_componentname in camel caseLibrary.lzx. For example, CatalogLibrary.lzx.

  4. Within the library file, include all the .lzx files that you created for the new tool, which contain OpenLaszlo classes. Refer to WCDE_INSTALL\workspace\LOBTools\WebContent\WEB-INF\src\lzx\commerce\catalog\CatalogLibary.lzx as an example.

  5. Define the new library file so that the Management Center recognizes the new tool:

    1. In the Enterprise Explorer view, expand LOBTools > WebContent > WEB-INF > src > lzx > commerce > shell

    2. Double-click the ShellExtensionsLibarary.lzx to edit it.

    3. Include the new library file in the file. For example:

      <---
              Import the library of the My Custom New tool.
          -->
      <include href="../newtool/NewToolLibrary.lzx" />
      


What to do next

After you complete the work:

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

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

  3. Deploy your files to the production environment.


Related concepts

Management Center user interface


Related tasks

Define a list view

Define properties files and bundle keys for user interface text

Define icons

Define a main tool definition

Add a new library to the Management Center

Define a main tool definition

Define a filter

Define an initialization service

Define a primary object

Create a custom validator

Define a top object definition in the explorer view

Create a new tool for the Management Center


+

Search Tips   |   Advanced Search