Adding 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 your customized option from the list.
Before you begin
- wcfObjectProperties
- The base class for all properties views.
- wcfPropertyDefinition
- Defines information about object properties.
- wcfPropertyValue
- Defines a selectable value for a property.
Procedure
- Open WebSphere Commerce Developer and switch to the Enterprise Explorer view.
- Complete one of the following steps:
- In the Enterprise Explorer view, expand , where Management_Center_component is the name of the tool you want to customize.
- In the Enterprise Explorer view, expand , where Management_Center_component is the name of the tool you want to customize.
- 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 your 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
.Add a new item to the list Add a <PropertyValue> tag to your 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. <PropertyDefinition propertyName="xprop_weightMeasure"> <!--- Include a new weight measure for Grams --> <PropertyValue displayName="Gram" value="GRM"/> <PropertyValue displayName="${catalogResources.catalogEntryWeightMeasure_Kilogram}" value="KGM"/> <PropertyValue displayName="${catalogResources.catalogEntryWeightMeasure_Milligram}" value="LBR"/> <PropertyValue displayName="${catalogResources.catalogEntryWeightMeasure_1_Unit}" value="C62"/> </PropertyDefinition>
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 your property definition. For example, to change a list item named One year to 365 days, change the value of the key in your resource bundle for the display text from One year
to365 days
.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 PropertyValue element of your property definition. For example, to change a list item named One year to 365 days, change the value of the key in your resource bundle for the display text from One year
to365 days
.
What to do next
Version | Steps |
---|---|
|
|
|