Add the new contact to the shared contacts detail view

Enable the ClaimCenter user to create an Interpreter contact on the New Contact screen and see the Interpreter Specialty field.

Before you begin

Complete Add the new subtype to the Address Book input sets.

About this task

In this step, you update the input sets used by the shared contacts detail view.

Procedure

  1. In Guidewire Studio™ for ClaimCenter, navigate in the Project window to configuration > config > Page Configuration > pcf > shared > contacts.
  2. Open ContactBasicsDV.Person and click the top line in the screen, Detail View: ContactBasicsDV, to open the Properties tab.
  3. For the mode property, add Interpreter to the list of modes, as follows:
    Person|PersonVendor|Adjudicator|UserContact|Doctor|Attorney|Interpreter
  4. In the same Project window folder, navigate to pcf > shared > contacts.
  5. Right-click DoctorAdditionalInfoInputSet.Doctor and click Copy.
  6. Right-click again and choose Paste.
  7. In the Copy dialog box, enter the new name InterpreterAdditionalInfoInputSet.Interpreter.pcf, and then click OK.
    The new widget opens in the editor.
  8. In the Project window, open InterpreterAdditionalInfoInputSet.Interpreter.
  9. In the editor, select the new widget by clicking its identifier at the top of the widget: InputSet: InterpreterAdditionalInfoInputSet to open the Properties tab.
  10. Verify that Interpreter is set in the mode property.
  11. Click the Code tab and replace the existing code with the following Gosu statement:

    property get Interpreter() : Interpreter {return contactHandle.Contact as Interpreter;}

  12. Select the Medical License input widget and change it to an Interpreter Specialty widget by setting the following properties:
    editable true
    id InterpreterSpecialty
    label displaykey.Web.ContactDetail.Interpreter.InterpreterSpecialty
    required false
    value Interpreter.InterpreterSpecialty
  13. Select the Medical Specialty widget and delete it.
  14. If it exists, select the Board Certified widget and delete it.
  15. In the same Project window location, pcf > shared > contacts, open AdditionalInfoInputSet.PersonVendor.
  16. In the editor, select the new widget by clicking its identifier at the top of the widget: InputSet: AdditionalInfoInputSet to open the Properties tab.
  17. Click the mode property and add the Interpreter mode to the list:
    PersonVendor|Attorney|Doctor|Interpreter
  18. Drag a new InputSetRef widget from the Toolbox and drop it below the widget containing the input set AttorneyAdditionalInfoInputSet.
  19. Click the new InputSetRef widget and set the following properties:
    def InterpreterAdditionalInfoInputSet(contactHandle)
    mode PersonVendor typeis Interpreter ? "Interpreter" : null

    The mode statement enables the Interpreter Specialty field to show in the Additional Info section when the contact type is Interpreter.

What to do next

Add a new ABContact subtype to ContactManager