Configuring linked addresses for contacts
In the default configuration, you can link to addresses in the following types of contacts:
PrimaryNamedInsuredonPolicyPeriodAccountHolderonAccountNamedInsuredonAccount
The gw.address.LinkedAddressUIHelper class contains methods related to linked addresses.
The getContactsAvailableAsLinks method creates a list of contacts with linkable addresses. To build this list, the method calls getPeriodContacts and getAccountContacts.
The getPeriodContacts method returns the list of contacts on the policy period that have linkable addresses. In the default configuration, this method returns the primary named insured, unless the primary named insured is the current contact. Modify this method if you need to link to addresses on other types of contacts on the policy or related to revisioned data.
The getAccountContacts method returns the list of contacts on the account that have linkable addresses. In the default configuration, this method returns the account holder and named insureds. Modify this method if you need to link to addresses on other types of contacts on the account.
The LinkAddressInputSet PCF file displays the list of addresses for contacts in the following order:
- Account holder
- Primary named insured
- Name insureds
You can specify a priority order when you add a contact to the list. Within each type of contact, the LinkAddressInputSet PCF file displays the list of addresses in priority order starting at 1.
Linked address API
The Address class provides the following methods for working with linked addresses:
linkAddressunlinkupdateLinkedAddressesisLinkedToAddress
As always, use the safeRemoveAddress method in gw.contact.ContactEnhancement when you remove an address. This method safely removes a link to another address.
See also
