Index | Prev | Next

Data transformation via conversion link

Many types of conversion links go beyond the “simple-to-status type” or “status type-to-simple” model used in kitControl “Conversion” components. The figure below shows one example.
Figure 65.   Example link from statusBoolean to statusNumeric
Image

In the example above, the statusBoolean “out” of a BooleanWritable is linked to the statusNumeric “In16” slot of another component. With no other configuration, this transforms the boolean “active” value to a numeric “1”, a boolean “inactive” value to a numeric “0”, and passes through a “null” value.

This sort of “value transform” may be useful in downstream logic. Note before AX-3.6, this type of conversion was often done via a custom Program component.

To reverse this example, you can link the statusNumeric “out” of a component to a statusBoolean slot of another component, for example a kitControl “Logic” component. See the figure below.

Figure 66.   Example link from statusNumeric to statusBoolean
Image

In this case, the background “Status Numeric To Status Boolean” converter works like this:

  • Numeric value of “0” is boolean “false”.
  • Numeric value not “0” is boolean “true” (note this means value > 0, and also a negative value, i.e. < 0).

Many other link converters are used in various link combinations, including many string-related ones and time-related ones.

For more details, see the following topics:

  • “Supported conversion link types” for a matrix of allowed links by data types.
  • “Converter components” for details on the converter that is automatically selected.
  • “Converter properties” for information on possible converter properties.
  • “Conversion link "From" notes” for details on linking from some specific data types.

Related Links

  • Conversion Links (Parent Topic)
  • Index | Prev | Next