Develop > Presentation layer > Customize marketing > Marketing customization: Management Center > Customizing customer segments
Add a new customer segment attribute to Management Center
You can add new customer segment attributes to the customer segment properties view in the Management Center Marketing tool. This gives business users more options for creating customer segments to use as targets for marketing activities and promotions.
When a business user wants to create a customer segment, he or she selects the attributes from the customer segment properties view in the Marketing tool. For example, a business user can create a customer segment comprising female customers using the Gender attribute on the Demographics tab. The procedures in this section cover how to add a new attribute to the properties view.
Example
Your site might have a customer loyalty program that allows customers to accumulate loyalty points. Business users might want to be able to advertise to customers based on the number of loyalty points they have.To do so, business users must be able to create a customer segment that targets customers who have a certain number of loyalty points. For this purpose, you could add a customer segment attribute to the Miscellaneous tab of the customer segment properties view that looks like this:
- Create a task command for the customer segment attribute
Create a task command implementation class for the new customer segment attribute. The task command validates whether a customer belongs to a customer segment specified in a promotion or marketing activity.
- Create the object definition for the customer segment attribute
Create a new OpenLaszlo object definition for the new customer segment attribute to collect input from the Management Center user interface. When business users fill in data about the new attribute in a customer segment, the object definition persists the data in the MGPCONDELE database table.
- Create the properties view for the customer segment attribute
Declare the user interface widgets to capture the business user input for the new attribute. The properties view for a new customer segment attribute consists of one or more widgets. You can add the new widgets to any tab on the existing properties view for customer segments in the Marketing tool.
- Create and registering a serialization JSP file for the customer segment attribute
Create and register a serialization JSP file to take the authoring elements from the MGPCONDELE table on the server and display them in the Management Center user interface. Business users can then set the properties for the customer segment attribute in the Marketing tool. The serialization JSP file is responsible for both the OR/AND list condition as well as the simple condition.