CTC WCF Services Generator - Custom Controls
Custom Controls are controls that extend Standard Controls to implement specific requirements.

Custom Controls are used for substituting Standard Controls on the generated Service Model when the requirements demand a behaviour that cannot be satisfied by the standard controls. This is achieved using the CTC Configurator. See the CTC WCF Services Configurator documentation for further details.

Included with the CTC WCF Services Generator are two Custom Controls. These can be used out of the box or changed to suit local requirements. The source code of the Custom Controls is part of the installation package.
The following lists the Custom Controls that are delivered as part of the CTC WCF Services Generator:
Custom ControlDescription
Boolean Custom Type Control This extends the standard Alpha Type control.

A Boolean Custom Type Control allows representation of a data item to the client application as a boolean, and would be used when the value of a data item can only be one of two different values.

The default control template is:
<IspecDataItem Order="[ORDER]" PropertyName="[PROPERTYNAME]"
  DataType="ClientDataTypes.BooleanType" TrueValue=""
  FalseValue="" />

This allows specification of the values that represent the true and false values of the data item.

For further details see the CTC WCF Services Generator.
Enum Custom Type Control This extends the standard Alpha Type control.

An Enum Custom Type Control allows representation of a data item to the client application as an enum type, and would be used when the value of a data item can only be one of a list of values.

The default control template is:
<EnumItem Order="[ORDER]" PropertyName="[PROPERTYNAME]"
  EnumType="[ENUMTYPE]">
  <Enum Key="xxxx" Value="yyyy" />
  ...
  <Enum Key="xxxx" Value="yyyy" Default="true" />
</EnumItem>

This allows specification of one or more Enum elements that represent the list of possible valid values of the data item.

Enumerations are included in the Service Contract which makes it easy for the client application to know the possible values for a property and return a valid value in the service request message.

For further details see the CTC WCF Services Generator.