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. Figure 3 shows one example.

Figure 3. Example link from statusBoolean to statusNumeric


Example link from statusBoolean to statusNumeric

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 Figure 4 below.

Figure 4. Example link from statusNumeric to statusBoolean


Example link from statusNumeric to statusBoolean

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

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: