HowTo: Using the SD PhysicalMeasures Control for Smart DevicesOfficial Content

The Physical Measures control lets you to easely manage physical measures such as height, weight, volume, temperature, etc. Also enables each user of the application to choose in which metric system he wants to work.

In this article it is explained the most important concepts of the Physical Measures control and there is an example on how to use it.

This control applies to attributes and variables.

Let's start by defining the following Transaction object with Work With for Smart Devices object (WWSD) applied (see about this here: Applying Work With for Smart Devices Pattern).

PhysicalMeasureTrn

Once we have applied the WWSD pattern we need to enable the Physical Measures control. To do this go to Section (General), select the attribute and choose "SD PhysicalMeasure" value to Control Type Property. You must do this both in the View and Edit layouts.

SD - SD PhysicalMeasure to attribute

This will enable Measure Type property, as seen in the image. For our example, we choose Height.

Now we are done, just hit F5.

Doing this, the user of the app will have the possibility to choose the unit for the height (feets or meters) at the moment of insert or update the value.

Snapshots

In iPad

PhysicalMeasureIpad

(The field above the wheels shows the current value, not the one selected in the wheels.) 

In Android

PhysicalMeasureAndroid

 

Availability

This control is only supported in iOS and Android devices.

Videos

Start Video Work With for Smart Devices – General Aspects and List layout
Start Video WorkWith for Smart Devices – Detail Layout