Add support for service states to the ContactManager user interface

Enable ContactManager users to work with the ServiceState property when editing and viewing contacts.

Before you begin

Complete Map the entity and array extensions in ContactManager.

Procedure

  1. Open Guidewire Studio™ for ContactManager.
  2. Navigate in the Project window to configuration > config > Localizations > Resource Bundle 'display' and double-click display.properties to open this file in the editor.
  3. Press Ctrl+F and search for the entry Web.ContactDetail.RetiredMessage in the file.
  4. Add a new line below that entry, and then enter the following display keys:
    • Web.ContactDetail.ServiceStateName = State Name
    • Web.ContactDetail.ServiceStates = Service States
  5. In the Project window, navigate to configuration > config > Page Configuration > pcf > contacts > basics, and then double-click ContactBasicsDV.ABCompany to edit this PCF file.
  6. On the right, at the bottom of the input column containing the TextAreaInput called Notes, drag a ListViewInput from the Toolbox and drop it above Notes.
  7. Click the new ListViewInput and set the following properties:
    label displaykey.Web.ContactDetail.ServiceStates
    labelAbove true
    boldLabel true
  8. From the Toolbox, drag a RowIterator and drop it on the new list view panel, and then click it and set the following properties:
    editable true
    elementName currentServiceState
    toAdd contact.addToContactServiceArea(currentServiceState)
    toRemove contact.removeFromContactServiceArea(currentServiceState)
    value contact.ContactServiceArea
    canPick true
    The new list view input remains red until you add the Row widget in the next step.
  9. From the Toolbox, drag a Row and drop it on the RowIterator, and then drag a Cell, and drop it on the Row.
  10. Click the cell and set the following cell properties:
    editable true
    id ServiceState
    label displaykey.Web.ContactDetail.ServiceStateName
    value currentServiceState.ServiceState
    unique true
  11. When you dropped the RowIterator, the PCF editor created a ListViewPanel as a container for it. Click the ListViewPanel and set its id property to CurrentServiceStateLV.
  12. From the Toolbox on the right, drag a Toolbar and drop it above the ListViewPanel named CurrentServiceStateLV.
  13. From the Toolbox, drag an IteratorButtons widget and drop in on the toolbar so you can add and remove states.
  14. Click the new IteratorButtons widget and set the property iterator to CurrentServiceStateLV.

What to do next

Create a service state entity in ClaimCenter