HowTo: Using SD Geolocation Control in Smart Devices

Official Content
This documentation is valid for:

In this tutorial we will explain the meaning of SD Geolocation and how to use it.

SD Geolocation is a control applicable to a geolocation field. This control will show the geolocation field over a map, indicating the position with a pin.

This control can be applied to an attribute from a Transaction object based on Geolocation domain and also to a variable with same domain.

Example

For the following tutorial we will create a Transaction (called "TRNGeolocation") with two Attributes (Id and description) as shown on the image.

TRNGeolocation

Then we apply the Work With for Smart Devices object pattern to the Transaction (for further information see Applying Work With for Smart Devices Pattern).

GeolocationPattern

Let's change the Control Type property of the attribute "TRNGeolocationDescription" to SD Geolocation.

SDGeolocationPatternControl

To finish the tutorial create the following dashboard and add the WorkWithDevicesTRNGeolocation as an item.

DashboardGeolocation1

Done! Now we can deploy our application on different devices (don't forget to set your dashboard as main object).

Android

AndroidSDGeolocation1 AndroidSDGeolocation2

AndroidSDGeolocation3 AndroidSDGeolocation4

AndroidSDGeolocation5

iOS

iOSGeolocation1 iOSGeolocation2

In this case, we already have an item on the list.

iOSGeolocation3

Scope

Platforms: Android, iOS

See also