Enable addition of service states to a company on a claim
As part of extending contacts with an array, extend the ClaimCenter user interface to enable users to add service states to a company that is associated with a claim.
Before you begin
Procedure
- In Guidewire Studio™ for ClaimCenter, navigate in the Project window to .
- Right-click contacts and click .
- For the File name, enter VendorServiceStates, and for File type choose List View, and then and click OK to edit this PCF file.
- Click the new list view panel to open its Properties window, then click the Required Variables tab.
-
Click
and add the following new required variable:
name contactHandle type contact.ContactHandle -
Click the Code tab and enter the following code:
property get contact() : Contact { return contactHandle.Contact }
-
Click the Exposes panel, and then click
and click ExposeIterator.
-
Enter the following values:
valueType entity.ContactServiceState widget VendorServiceStatesLV -
From the Toolbox on the right, drag a
RowIteratorand drop it on the new list view panel, and then set the following properties:editable true elementName currentServiceState toAdd contact.addToContactServiceArea(currentServiceState) toRemove contact.removeFromContactServiceArea(currentServiceState) value contact.ContactServiceArea canPick true -
From the Toolbox, drag a new
Rowand drop it on theRowIterator. -
From the Toolbox, drag a new
Cell, 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 thevalueTypeof theExposeIteratorin the Exposes tab,VendorServiceStatesLV. To see if that is the case, click theListViewPanelto open its Properties window. Then, click the Exposes tab, clickVendorServiceStatesLV, and, if necessary, reenter the following valueType:entity.ContactServiceState - In the Project window, navigate to , and then double-click ContactBasicsDV.Company to edit this PCF file.
-
On the right, in the input column containing the
TextAreaInputcalledNotes, drag aListViewInputfrom the Toolbox and drop it aboveNotes. -
Click the new
ListViewInputwidget and set the following properties:def VendorServiceStatesLV(contactHandle) label displaykey.Web.ContactDetail.ServiceStates labelAbove true boldLabel true The new list view input remains red until you add theToolbarwidget in the next step. -
From the Toolbox on the right, drag a
Toolbarand drop it in theListViewInput. -
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 following property:iterator VendorServiceStatesLV.VendorServiceStatesLV
