Make changes so suburb field uses autofill

Before you begin

Complete the step Add a suburb field to the GlobalAddress entity before you perform this step.

Procedure

  1. Press Ctrl+N and enter AddressFillableExtension, and then press Enter to open this class.
  2. Add the following lines of code:
    property get Suburb() : String
    property set Suburb(value : String)
  3. Press Ctrl+N and enter AddressFillableExtensionImpl, and then press Enter to open this class.
  4. Add the following line of code:
    var _Suburb : String as Suburb
  5. Press Ctrl+N and enter UnsupportedAddressFillable, and then double-click UnsupportedAddressFillable in the search results to open this class.
  6. Add the following lines of code:
    override property get Suburb(): String {
      return _unsupportedBehavior.getValue<String>()
    }
    override property set Suburb(value: String) {
      _unsupportedBehavior.setValue("Surburb")
    }
  7. Press Ctrl+N and enter AddressAutofillableDelegate, and then press Enter to open this class.
  8. Add the following lines of code:
    override property set Suburb(value : String) { _af.Suburb = value }
    override property get Suburb() : String { return _af.Suburb }
  9. Press Ctrl+N and enter AddressEntityDelegate, and then press Enter to open this class.
  10. Add the following lines of code:
    override property get Suburb() : String {
      return _ao.Address.Suburb }
    override property set Suburb(value : String) {
      _ao.Address.Suburb = value }

What to do next

The next step is Add a New Zealand locale type and suburb zone type.