GATE_UI_FIELD_INTERCEPTOR

Description: A code extension of this type is used to provide Groovy interception (a Groovy hook) for the fields in the gate transaction panel in a gate form. You can use a GATE_UI_FIELD_INTERCEPTOR (on page 1) code extension to read data from N4 or perform calculations and automatically fill in certain fields in the gate forms.

Abstract Base Class: com.navis.external.road.AbstractGateFormFieldInterceptor

Method: You can edit the following methods:

Both these methods do the same thing in the background. After N4 executes the code extension, the gate form fields are filled in based on the field values in the Map returned by these methods. If the Map is null/empty, then the code extension does not do anything.

The Transaction Mode of the GATE_UI_FIELD_INTERCEPTOR code extension type is NONE. This restricts a code extension of this type from making database calls, which may degrade the UI performance, when populating the fields in the Gate UI.

This may be sufficient in situations where the code extension just needs to perform some calculations based on the fields in the UI. However, if you do need to access the database in the code extension, you can invoke a "TRANSACTED_BUSINESS_FUNCTION" from this code extension in the executeAction() method that is invoked from the Custom Transaction Action button.

Interface: com.navis.external.road.EGateFormFieldInterceptor

Module: Road

Version Added: 3.1

Requires Code Extension Name or Name Pattern: Yes

Code Extension Name or Name Pattern: CustomGateFormFieldInterceptor

Navis recommends that you add only one code extension to handle the customization for all gate stages and gate transaction types.

Where to Specify Code Extensions of this Type: Executed when the user clicks the Custom Transaction Action button included on a gate form. For more information, see Configure Groovy Interception at the Gate Transaction Level (on page 1) in the Navis N4: Customization Administrator Guide or the online help.

System-Seeded Code Extensions Using this Type: CustomGateFormFieldInterceptorSample (on page 1)

 

Fields supported by the GATE_UI_FIELD_INTERCEPTOR code extension type

A code extension based on the GATE_UI_FIELD_INTERCEPTOR code extension type can be used to intercept and customize the following gate transaction fields: