The CTC WCF Services Generator includes a number of standard Data Type controls that determine how the data items on an ispec are generated. Standard Data Type controls included are:
|
Alpha Type Control
|
|
Controls the generation of data items defined as alpha-numeric.
This includes Alpha and String types.
|
|
Boolean Type Control
|
|
Controls the generation of data items painted as a single Push Button or a single CheckBox that contain true/false values specified at design time.
|
|
CopyFrom Type Control
|
|
Controls the generation of a CopyFrom area. A CopyFrom area is generated as a .NET class with a property for each data item in the first copyfrom row.
|
|
Date Type Control
|
|
Controls the generation of data items defined as date. A date is generated as a .NET DateTime type. At runtime, dates are converted to/from the appropriate ispec date format.
|
|
Decimal Type Control
|
|
Controls the generation of data items defined as numeric with decimal. This includes Number,
Signed, Credit, + and - types.
|
|
Enum Type Control
|
|
Controls the generation of data items painted as controls such as Push Button, Radio Button, List Box and Combo Box that contain a list of values specified at design time. This creates a .NET Enum type containing a list of valid values for a data item. This is then included in the Service Contract, making it easy for the client application to know the possible values for a property.
|
|
Kanji Type Control
|
|
Controls the generation of data items defined as Kanji.
|
|
List Type Control
|
|
Controls the generation of data items painted as a List Box or Combo Box that at runtime creates a dynamic list. A .NET class is created for the list with a property for each column in the list.
|
|
Maint Type Control
|
|
Controls the generation of the Maint field on standard component ispecs.
|
|
Numeric Type Control
|
|
Controls the generation of data items defined as numeric without decimal. This includes Number,
Signed, Credit, + and - types.
|
|
Wide Type Control
|
|
Controls the generation of data items defined as Wide.
|
Using the CTC Configurator, the properties of a data type control can be customized by modifying the default template of a data type control to suit specific requirements.
The CTC Configurator provides a Properties Editor, which allows the user to edit the complete set of properties for a control. As an example, shown below is the default template for the CopyFrom Type Control. For a CopyFrom Type, you can specify the comparison to be performed at runtime to eliminate empty rows of a CopyFrom area being sent to the client application.

Data Type Control Properties Editor
See also the
Custom Controls.