Converter Filter
Use the Converter Filter part to convert incoming form data into a Smalltalk object. This part is useful because data submitted from a form always arrives in string format.
To use the Converter Filter part, first set the Converter Filter's converter property to the appropriate converter for the type of object you want to convert the data into. Then connect the incoming string data to the Converter Filter's string attribute. The Converter Filter's object attribute represents the Smalltalk object resulting from the conversion.
If the incoming string data cannot be converted to the specified data type, the errorMessage attribute contains an error message string.
To add a Converter Filter part, select the Models Category ( Models Category icon), then the Converter Filter part ( Converter Filter icon). You can also add the part using the Add Part dialog and specifying the class name, AbtConverterFilter.
Converter Filter Properties
The Converter Filter part has the following properties:
object
 
converter
Use the converter property to specify the converter to use for the part. A converter is an object that manages the conversion of other objects to and from their display format for certain visual parts, such as a Text part.
object
Use the object property to set the initial value of the Converter Filter's object attribute. The initial value must be compatible with the converter type specified by the converter attribute.
partName
In the Part name field, type the name you want to use to describe the part. For non-visual parts, this text appears under the icon for the part on the free-form surface.
The name of the part can consist of alphanumeric characters, and must be unique from all other parts on the layout surface.
This field is optional. If you do not specify a part name, VA Smalltalk generates a unique name based on the class name of the part.
Last modified date: 06/24/2018