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


Add or changing options in a drop-down list

Add or change a list option used in an existing list within a Management Center properties view. Management Center business users can select the customized option from the list.


Before you begin

Review the following classes to ensure that you understand the classes that are associated with defining a properties view:

wcfObjectProperties

The base class for all properties views.

wcfPropertyDefintion

Defines information about object properties.

wcfPropertyValue

Defines a selectable value for a property.

To customize an existing list within 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 > commerce > Management_Center_component > objectDefinitions, where Management_Center_component is the name of the tool to customize.

  3. Add a new item to the list, or change the name of a list item:

    Option Description
    Add a new item to the list Add a wcfPropertyValue class to the property definition. For example, if you have a weight measure property that includes weight measures such as kilograms and milligrams, you can add a weight measure for grams.

    <wcfPropertyDefinition propertyName="xprop_weightMeasure"> 
    <!--- Include a new weight measure for Grams -->    
    <wcfPropertyValue displayName="Gram" value="GRM"/> 
       
    <wcfPropertyValue displayName="${catalogResources.catalogEntryWeightMeasure_Kilogram.string}" value="KGM"/> 
       
    <wcfPropertyValue displayName="${catalogResources.catalogEntryWeightMeasure_Milligram.string}" value="LBR"/> 
       
    <wcfPropertyValue displayName="${catalogResources.catalogEntryWeightMeasure_1_Unit.string}" value="C62"/> 
    </wcfPropertyDefinition> 
    

    Ensure that your resource bundle for the display text includes the new key for the new display name, such as Grams.

    Change the name of a list item Change the display name of an existing list item. The display name is the list item text that is shown to the business user in the Management Center user interface. Change the display name within the wcfPropertyValue class of the property definition. For example, to change a list item named One year to 365 days, change the value of the key in the resource bundle for the display text from One year to 365 days.


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

Management Center shell

Management Center user interface


+

Search Tips   |   Advanced Search