Select Page
Geo Location Prompt for MicroStrategy Mobile 9.3.1:
The Geo Location prompt lets users answer a prompt by using their device’s current geographical location. Geo Location prompts are typically used to filter data in a Map widget. For example, a Map widget displays several locations as markers on the map display. You can choose to display only those map markers that are in the user’s current city.
The location name that is returned by a Geo Location prompt is based on Google’s geocoding. The prompt determines the user’s longitude and latitude using the mobile device’s GPS receiver, and passes this information to Google Maps to return information about the user’s location.
There are two ways to get the values for a Geo Location prompt:
  1. Create a prompt that automatically uses the device’s current latitude and longitude. While creating the prompt, you must define twovalue prompts, one for latitude and one for longitude.
  2. Create a prompt that filters an attribute element list using the current geographical location, by defining an attribute element prompt with the display style set to Geo Location.
The following procedure describes how to create a Geo Location prompt using a device’s current latitude and longitude (value prompts):
  1. Latitude
    1. Create a value prompt in MicroStrategy Web 9.3.1
    2. Definition: Numeric prompt
    3. Check box for “Prompt answer is required”
    4. Set Display style to Geo Location and set Location coordinate to Latitude
    5. Save prompt
  2. Longitude
    1. Create a value prompt in MicroStrategy Web 9.3.1
    2. Definition: Numeric prompt
    3. Check box for “Prompt answer is required”
    4. Set Display style to Geo Location and set Location coordinate to Longitude
    5. Save prompt
  3. Latitude Metric to retrieve latitude coordinate
    1. Create a metric in MicroStrategy Desktop 9.3.1
    2. Insert a function
    3. Choose the Max function, click Finish
    4. Drag in the value prompt for latitude
    5. Save Metric
       
  4. Longitude Metric to retrieve longitude coordinate
    1. Create a metric in MicroStrategy Desktop 9.3.1
    2. Insert a function
    3. Choose the Max function, click Finish
    4. Drag in the value prompt for longitude
    5. Save Metric
       
  5. Create report with the following:
    1. Store (..MicroStrategy TutorialPublic ObjectsReportsMicroStrategy Platform CapabilitiesMicroStrategy MobileiPhoneComponent ObjectsStores – MapStore Attributes) in the rows
    2. The latitude and longitude metric save from steps 3 and 4
    3. Save the report
    4. Run the report on a supported Mobile device
Note: The report created above does not have any function other than providing the prompt to retrieve the latitude and longitude of the current location.  There are no checks between the Store latitude and Store longitude and the values of the Geo Location prompt.
Warnings: Note that the value prompts need to be created in MicroStrategy Web for the user to choose a “Geo Location” style for theprompt.  This option will not be available in MicroStrategy Desktop 9.3.1.

TN44056: How to Create a Geo Location Prompt for MicroStrategy Mobile 9.3.1

Secured By miniOrange