Additional country and address configurations
Before you begin
Procedure
-
You must add the country to a method of the AddressFormatter
class.
Add a new case option to the switch statement of the AddressFormatter.internalFormat method to handle the formatting of the address string for the new country.
-
If you extend the Address entity to add a new column, you
must also incorporate this column into the following class, enhancement, or
configuration file:
- gw.address.AddressFormatter
- Add a new
caseoption to theswitchstatement of the AddressFormatter.internalFormat method to handle the formatting of the address string for the new country. Address.en- Modify the definition of the display name through the Entity Names editor. See Using the Entity Names editor for details.
- AddressOwnerFieldID.gs
- Add a variable for the new
Addresscolumn to this class. - gw.policylocation.PolicyLocationEnhancement
- Do the following:
- Modify the PolicyLocation.addressString method as needed and populate any added column before calling the AddressFormatter class.
- Add the
getandsetvalues for the new internal address columns.
- gw.policyaddress.PolicyAddressEnhancement
- Do the following:
- Modify the PolicyAddress.addressString method as needed and populate any added column before calling the AddressFormatter class.
- Add the
getandsetvalues for the new internal address columns. - Add the new columns to the
copyToNewAddressandcopyFromAddressfunctions.
What to do next
See also
