Add get and set methods to policy location

Before you begin

Define revisioned field as syncable on policy location

About this task

The gw.policylocation.PolicyLocationEnhancement has get and set methods for syncable fields. To find these methods, open the file and search for Shared and revisioned. You can copy one of the existing methods and modify the code for your field.

Procedure

  1. In Studio, open gw.policylocation.PolicyLocationEnhancement.gsx.
  2. Search for Shared and revisioned.
  3. Copy the get and set methods for AddressLine1, and paste it in the file.
  4. Modify the pasted code. The get and set methods for FloodPlain are:
    /**
       * Shared and revisioned flood plain.
       */
      property get FloodPlain() : String {
        return AccountLocationToPolicyLocationSyncedField.FloodPlain.getValue(this)
      }
    
       /**
       * Shared and revisioned flood plain.
       */
      property set FloodPlain(arg : String) {
        AccountLocationToPolicyLocationSyncedField.FloodPlain.setValue(this, arg)
      }

What to do next

Add revisioned field to PolicyCenter user interface