Portlet Factory, Version 6.1.2
Data Field Modifier builder
Use the Data Field Modifier builder to modify one or more fields created by a Data Page builder call.
If a Data Page builder call creates one or more elements in the form structure, you can use the Data Field Modifier builder to perform the following operations.
- Prevent elements from being displayed in the form.
- Alter the behavior of elements in the form from their default behavior (for example, change a field into an input such as a radio box).
- Alter the display and layout of elements in the form.
- Format, translate, and validate data in fields.
This builder allows detailed individual customization of a specific page element. To be able to encode and reuse the customization of fields that are defined in a schema and apply them in a standard way, consider using the Rich Data Definition builder instead of this builder.
Key inputs
In most common applications of this builder, these are the inputs you need:
- Specify in the Field Selector Tool input whether to search for available fields by name, type, or both name and type. In the related inputs, you can hide elements, specify label generation, and indicate whether the formatting applies to repeated elements.
- If a field that you are modifying is a container, specify the inputs in Container Settings. You can add labels and HTML controls, and specify data paging.
- Use the Field Settings inputs to determine how fields are rendered, for example, whether data entry is allowed or whether an action is associated with the field.
- If a field that you are modifying is not a container, you can use the inputs in Formatting to format, translate, and validate data in the field. In the Formatter Class input, specify the Java class that contains the methods to use. IBM® WebSphere Portlet Factory supplies the following Standard Formatter class to get you started.
com.bowstreet.builders.webapp.pageautomation.StandardFormatter
Key objects this builder creates
Use the Design panel in the model editor to see the results of this builder in your model.
Samples
The following sample shows you the use of the Data Field Modifier builder./models/samples/datapage/DataFieldModifier.modelThe model shows the modification of fields and containers and lets you contrast unmodified and modified forms.
Parent topic: Builder help
- About using the builder call editor
The builder call editor allows you to specify all the input values to a builder call.
- Data Field Modifier builder inputs
This topic describes the inputs for the Data Field Modifier builder.
- Formatting and validation of individual fields
The Data Field Modifier builder supports using arguments with the methods on the Formatter class.
- Techniques for data entry validation
You can manage the validation of user input on a data entry page created by Data Page builder or builders that use the Data Page builder.
- Overview: creating forms
You can create forms in IBM WebSphere Portlet Factory applications in several ways.
- Formatting Date and Time values
IBM WebSphere Portlet Factory Designer provides several builders you can use to control the formatting of date, time, and datetime values.
- Page Automation HTML templates
The Data Page builder, along with the other builders that use Data Page, can automatically generate HTML for displayed pages. You can control the look and feel of the generated HTML by using Page Automation HTML Templates.
- Data Page builder
Use the Data Page builder to create forms that either display data, prompt the user to enter data, or are a combination of the two operations.
- Paging Assistant builder
The Paging Assistant builder provides the ability to navigate through a data set.
- The Internet's first Regular Expression Library
Library | Support |