3/22/2010

Preventing Violation Type Editing

The City of Whitehall wanted a way to prevent users from changing the Violation Type of existing violations. This was accomplished with two scripts. Both scripts use "Zoning" as the Module and "Violations" as the Screen. The first script uses "Edit" as the Action and it disables the Violation Type drop down box when editing:

vlscreen.zp_pageframe1.page1.cmbVio_type.enabled = .F.

Another script is need for the “Add” Action to make sure the drop-down box works when you are adding new violations:

vlscreen.zp_pageframe1.page1.cmbVio_type.enabled = .T.