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

Complete Add search support in ContactManager for Guidewire core applications.

Procedure

  1. If necessary, 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 enter Web.ContactSearch.IncludePendingCreates to find this entry.
  4. Add a line and enter the following display key:
    Web.ContactSearch.InterpreterSpecialty = Interpreter Specialty
  5. 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.
  6. Select the ContactSearchDV detail view panel.
  7. 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 )}
  8. 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 )}
  9. In the InputColumn on the left, locate the InputSet containing the Organization Name input.
  10. From the Toolbox on the right, drag an InputSet widget and drop it under the InputSet containing the Organization Name input.
  11. Click the new InputSet and set the following property:
    visible isInterpreter(SearchCriteria)
  12. Add an Input widget to the InputSet and 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