Add get and set methods to policy location
Before you begin
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
-
In Studio, open
gw.policylocation.PolicyLocationEnhancement.gsx. - Search for Shared and revisioned.
-
Copy the
getand set methods forAddressLine1, and paste it in the file. -
Modify the pasted code. The get and set methods for
FloodPlainare:/** * 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) }
