Add support for service state searches to the Address Book
Enable ClaimCenter users to use the Address Book to search for contacts in ContactManager by ServiceState.
Before you begin
Procedure
- Open Guidewire Studio™ for ClaimCenter.
- Navigate in the Project window to and double-click display.properties to open this file in the editor.
- Press Ctrl+N and search for Web.ContactDetail.RetiredMessage.
-
Insert a new line below that one and add the following entries:
- Web.ContactDetail.ServiceStateName = State Name
- Web.ContactDetail.ServiceStates = Service States
- In the Project window, navigate to , and then right-click addressbook and click .
- For the File name, enter AddressBookServiceStates.
- For File type, click List View, and then click OK to edit this PCF file.
-
Click the new
ListViewPanelto open its Properties window, and then click the Required Variables tab. -
Click the green plus icon,
, and add the following new required variable:
name contact type Contact -
Click the Exposes tab, and
then click the green plus icon,
, and choose ExposeIterator.
-
Enter the following values:
valueType entity.ContactServiceState widget AddressBookServiceStatesLV -
From the Toolbox on the right, drag a
RowIteratorand drop in on the list view. -
Select the
RowIteratorwidget and set the following properties:editable true elementName currentServiceState toAdd contact.addToContactServiceArea(currentServiceState) toRemove contact.removeFromContactServiceArea(currentServiceState) value contact.ContactServiceArea canPick true -
From the Toolbox on the right,
drag a a new
Rowand drop it on theRowIterator. -
From the Toolbox on the right,
drag a new
Celland drop it on theRow, and then set the following cell properties:editable true id ServiceState label displaykey.Web.ContactDetail.ServiceStateName value currentServiceState.ServiceState unique true -
If the outline of the
ListViewPanelremains red, it is likely that the editor has lost the value type of the ExposeIterator namedAddressBookServiceStatesLVin the Exposes tab. To see if that is the case, click theListViewPanelto open its Properties window. Then, as described in step 9, click the Exposes tab, and then clickAddressBookServiceStatesLVand, if necessary, reenter the following valueType:entity.ContactServiceState - In the Project window, navigate to , and then double-click AddressBookContactBasicsDV.Company to edit this PCF file.
-
On the right, in the
InputColumnwith theTextAreaInputcalled Notes at its bottom, drag aListViewInputwidget and drop it above Notes. Then enter the following attributes:def AddressBookServiceStatesLV(contact) label displaykey.Web.ContactDetail.ServiceStates labelAbove true boldLabel true The new list view input remains red until you add the Toolbar widget in the next step. -
From the Toolbox on the right, drag a
Toolbarand drop it in the newListViewInputabove theListViewPanel. -
From the Toolbox on the right, drag an
IteratorButtonswidget and drop it on the toolbar so you can add and remove states. -
Click the new
IteratorButtonswidget and set the iterator property value to AddressBookServiceStatesLV.AddressBookServiceStatesLV.
