Dynamic Unit Converter

Content Type: Widget
Categories: Utility,User Interface,Data

Overview

The Functionality of the Dynamic Unit Converter text box can be implemented as follows:

  • The Input Decimal Value attribute and Input Conversion Value take an decimal number in type of Decimal attribute also whenever there is a change in the value, it will automatically convert and show in the text box.
  • On change and On Leave action which will be triggered when there is a change in the value and when the text box is focused out respectively.
  • Decimal Precision attribute take an integer will determine on how many decimal needs to be displayed in the decimal part.
  • With the help of Visibility Attribute you can define whenever this widget show or hide.

Documentation

FOR PLATFORM-SUPPORTED CONTENT


Please see in the Mendix documentation for details.


Description

As the name suggest ,this widget calculate unit conversion dynamically. It takes three attributes first one for Input Decimal Value in the form of Decimal Attribute, second one for Input conversion Rate in the form of Decimal Attribute and the third one for decimal precision in the form of integer Attribute.


Typical usage scenario

Sometimes We have to calculate units in our application.

A typical use case for the Dynamic Unit Converter widget in Mendix would be in an application that requires users to input values in different units of measurement. For example, an application that calculates the area of a room may require users to input the length and width of the room in different units such as feet, meters, or centimeters. The Dynamic Unit Converter widget can be used to convert these values into a common unit of measurement, such as square meters, in real-time.

Another use case for the Dynamic Unit Converter widget could be in an application that requires users to input values in different currencies. The widget can be used to convert these values into a common currency, such as USD or EUR, in real-time.

The Dynamic Unit Converter widget is highly customizable and can be configured to support a wide range of units and conversion factors. It can also be integrated with other widgets and data sources in Mendix to create more complex applications.

The most profitable thing is this widget did not override your last given attribute value.



Configuration

To use this widget you have to create a dataview / listview put it in and Decimal Input Value and Input Conversion Rate Attribute must be in Decimal and Decimal Precision Attribute must be in Integer. And you can give decimal or integer value in Decimal attribute.




 


 

Releases

Version: 2.0.4
Framework Version: 9.18.1
Release Notes: Few Bug Fixes
Version: 2.0.3
Framework Version: 9.18.1
Release Notes: Few UI Bugs fixed
Version: 2.0.2
Framework Version: 9.18.1
Release Notes: Label added
Version: 2.0.1
Framework Version: 9.18.1
Release Notes: Bug fixes
Version: 2.0.0
Framework Version: 9.18.1
Release Notes: Few Bug fixes