Example Application

Custom actions are usually written when a client needs to perform an action on an attribute. Here is an example:

Objective : CandyCo needs a way to create a new product with the same properties as its parent item but with one difference: the name of the item will be created as [analog/flavor] + [parent name]

Example : Midnight Fudge (parent) > Cherry Midnight Fudge or Peanut Butter Midnight Fudge.

Attribute : The analogs are saved on a list that belongs to an item. The analogs will describe different versions of that item.

Custom Action : When a user selects the custom action button a dialog will appear that contains a list of available analogs (flavors). The user selects the flavors they want to use to create an item, and then they click the Create button. The program creates a new flavor (assuming one doesn’t already exist) for each flavor selected.

Action Complete .