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
About this task
In this step, you update the input sets used by the shared contacts detail view.
Procedure
- In Guidewire Studio™ for ClaimCenter, navigate in the Project window to .
-
Open
ContactBasicsDV.Personand click the top line in the screen,Detail View: ContactBasicsDV, to open the Properties tab. -
For the
modeproperty, addInterpreterto the list of modes, as follows:Person|PersonVendor|Adjudicator|UserContact|Doctor|Attorney|Interpreter - In the same Project window folder, navigate to .
-
Right-click
DoctorAdditionalInfoInputSet.Doctorand click Copy. - Right-click again and choose Paste.
-
In the Copy dialog box,
enter the new name
InterpreterAdditionalInfoInputSet.Interpreter.pcf,
and then click OK.
The new widget opens in the editor.
-
In the Project window, open
InterpreterAdditionalInfoInputSet.Interpreter. -
In the editor, select the new widget by clicking its identifier at the top of
the widget:
InputSet: InterpreterAdditionalInfoInputSetto open the Properties tab. -
Verify that
Interpreteris set in themodeproperty. -
Click the Code tab and
replace the existing code with the following Gosu statement:
property get Interpreter() : Interpreter {return contactHandle.Contact as Interpreter;}
-
Select the
Medical Licenseinput widget and change it to anInterpreter Specialtywidget by setting the following properties:editable true id InterpreterSpecialty label displaykey.Web.ContactDetail.Interpreter.InterpreterSpecialty required false value Interpreter.InterpreterSpecialty -
Select the
Medical Specialtywidget and delete it. -
If it exists, select the
Board Certifiedwidget and delete it. -
In the same Project window
location, , open
AdditionalInfoInputSet.PersonVendor. -
In the editor, select the new widget by clicking its identifier at the top of
the widget:
InputSet: AdditionalInfoInputSetto open the Properties tab. -
Click the
modeproperty and add theInterpretermode to the list:PersonVendor|Attorney|Doctor|Interpreter -
Drag a new
InputSetRefwidget from the Toolbox and drop it below the widget containing the input setAttorneyAdditionalInfoInputSet. -
Click the new
InputSetRefwidget and set the following properties:def InterpreterAdditionalInfoInputSet(contactHandle) mode PersonVendor typeis Interpreter ? "Interpreter" : null The mode statement enables the
Interpreter Specialtyfield to show in the Additional Info section when the contact type isInterpreter.
