Configure the address book search interface in ContactManager
In this step of the search configuration example, you add the InterpreterSpecialty search field to the PCF files used in searching for address book contacts in ContactManager.
Before you begin
Procedure
- If necessary, open Guidewire Studio for ContactManager.
- Navigate in the Project window to and double-click display.properties to open this file in the editor.
-
Press
CTRL+Fand enter Web.ContactSearch.IncludePendingCreates to find this entry. -
Add a line and enter the following display key:
Web.ContactSearch.InterpreterSpecialty = Interpreter Specialty
- Press Ctrl+Shift+N and enter ContactSearchDV to find this PCF file, and then double-click the file in the search results to open it in the editor.
-
Select the
ContactSearchDVdetail view panel. -
Click the Code tab at the bottom of the window and find the following line of code:
function isDoctor(c : ABContactSearchCriteria) : boolean { return entity.ABDoctor.Type.isAssignableFrom(c.ContactSubtypeType )} -
Insert a line after that one and enter on one line the following code:
function isInterpreter(c : ABContactSearchCriteria) : boolean { return entity.ABInterpreter.Type.isAssignableFrom(c.ContactSubtypeType )} -
In the
InputColumnon the left, locate theInputSetcontaining theOrganization Nameinput. -
From the Toolbox on the right, drag an
InputSetwidget and drop it under theInputSetcontaining theOrganization Nameinput. -
Click the new
InputSetand set the following property:visible isInterpreter(SearchCriteria) -
Add an
Inputwidget to theInputSetand set the following properties:editable true id InterpreterSpecialty label displaykey.Web.ContactSearch.InterpreterSpecialty value SearchCriteria.InterpreterSpecialty
What to do next
Restart ContactManager and refresh web services in ClaimCenter
