Adding an OpenLaszlo library to the Management Center
As part of creating a new custom tool for the Management Center, once you have defined all your 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
Procedure
- Open WebSphere Commerce Developer and switch to the Enterprise Explorer view.
- In the Enterprise Explorer view, expand , where Management_Center_component is the name of your new custom tool.
- Create an OpenLaszlo library
file with this syntax:
Management_Center_componentname in camel caseLibrary.lzx
. For example, CatalogLibrary.lzx. - Within the library file, include all the .lzx files that you created for the new tool, which contain OpenLaszlo classes. Refer to WCDE_installdir\workspace\LOBTools\WebContent\WEB-INF\src\lzx\commerce\catalog\CatalogLibary.lzx as an example.
- Define your new library file
so that
the Management Center recognizes
the new tool:
What to do next
- Right-click LOBTools Project; then click Build OpenLaszlo Project to produce an updated ManagementCenter.swf file under the WCDE_installdir\workspace\LOBTools\WebContent directory. This setting is the default environment setting.
- Test your work by viewing them in the Management Center, using this URL: https://hostname:8000/lobtools.
- Deploy your files to your production environment.