Fields

The Fields interface acts as a parent object for all fields or process attributes within a form, an integration service or a workflow process. Individual fields or process attributes are accessed using their field/process attribute name. When the name is not a valid Java identifier e.g. it begins with a numeric, the element can only be accessed using the #getField(String) method.

When running an event that forms part of a deployed component, only fields from the component can be accessed.

All included fields can be iterated using the following code:

 for ( var field in Iterator(fields.iterator()) )
 {
    log(field.elementName);
 }   
 
Examples:
 fields.FIELD1.value = "Test";
 fields.getField("2FIELD").value = 123;
 

Fields Functions

getField Fields.getField( fieldName ) Returns the Field with name fieldName.

Field Types

Fields is a collection. A Field can be one of these types:

WebFormField
WebFormTableColumn