Short Description:A smart and lightweight unit conversion Forge component that lets users convert values from one unit to another with ease. Supports dynamic conversions based on user-defined source and target units. Just provide the current unit, target unit, and the value — UnitXChanger does the rest.
UnitXChanger is a reusable and extensible unit conversion component built for OutSystems applications. It allows developers to perform on-the-fly conversions between various units of measurement (e.g., length, volume,gas, weight, temperature, etc.) by simply specifying:
Source Unit
Target Unit
Input Value
This component abstracts the complexity of unit conversion logic and supports dynamic behavior, making it adaptable to a wide range of use cases, such as forms, calculators, dashboards, and reporting tools.
Dynamic unit conversion between different types of units.
Simple input: current unit, target unit, and value.
Extendable unit definitions via the Service Action : UnitOfMeasures from UnitXChanger_Service module.
Centralized logic using a Service Action: UnitXChanger from UnitXChanger_Service module.
UnitXChanger from UnitXChanger_Service module.
Easy integration into any module with minimal setup.
Add Dependency:
In your target module, add a dependency from the Forge component for:
Service Action: UnitXChanger
UnitXChanger
Service Action: UnitOfMeasures
UnitOfMeasures
Prepare Your Data:
Ensure the Units data from UnitOfMeasures service action is seeded with relevant name and symbols.
Units
UnitOfMeasures service action
Call the Action:
From your screen action or logic flow, call the UnitXChanger service action, passing the appropriate unit IDs and value.
Use the Result:
Display or store the converted result as needed.
UnitXChanger is a reusable and extensible unit conversion component built for OutSystems applications. It allows developers to perform on-the-fly conversions between various units of measurement (e.g., length, weight, temperature, etc.) by simply specifying:
Extendable unit definitions via the UnitOfMeasures entity.
Centralized logic using a Server Action: UnitXChanger.
Server Action: UnitXChanger
Entity: UnitOfMeasures
Ensure the UnitOfMeasures table is seeded with relevant name and symbols.
From your screen action or logic flow, call the UnitXChanger server action, passing the appropriate unit IDs and value.