EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

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


Community Admin

• Strategy


This KB article explains how to create Geo Location Prompts for MicroStrategy Mobile

Geo Location Prompt for Strategy Mobile 9.4.x-10.x:

ka04W000000ObHnQAK_0EM440000002Uvg.png

 
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 two value 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):

  • Latitude
    • Create a value prompt in Strategy Web 9.4.x-10.x
    • Definition: Numeric prompt
ka04W000000ObHnQAK_0EM440000002Uvr.png
    • Check box for "Prompt answer is required"
ka04W000000ObHnQAK_0EM440000002Uvf.png
    • Set Display style to Geo Location and set Location coordinate to Latitude
ka04W000000ObHnQAK_0EM440000002Uvn.png
    • Save prompt
  • Longitude
    • Create a value prompt in Strategy Web 9.4.x-10.x
    • Definition: Numeric prompt
    • Check box for "Prompt answer is required"
    • Set Display style to Geo Location and set Location coordinate to Longitude
    • Save prompt
       
  • Latitude Metric to retrieve latitude coordinate
    • Create a metric in Strategy Developer 9.4.x-10.x
    • Insert a function
ka04W000000ObHnQAK_0EM440000002Uvp.png
    • Choose the Max function, click Finish
ka04W000000ObHnQAK_0EM440000002Uvl.png
    • Drag in the value prompt for latitude
ka04W000000ObHnQAK_0EM440000002Uvc.png
    • Save Metric
       
  • Longitude Metric to retrieve longitude coordinate
    • Create a metric in Strategy Developer 9.4.x-10.x
    • Insert a function
    • Choose the Max function, click Finish
    • Drag in the value prompt for longitude
    • Save Metric
       
  • Create report with the following:
    • Store (..\Strategy Tutorial\Public Objects\Reports\Strategy Platform Capabilities\Strategy Mobile\iPhone\Component Objects\Stores - Map\Store Attributes) in the rows
    • The latitude and longitude metric save from steps 3 and 4
    • Save the report
    • 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 Strategy Web for the user to choose a "Geo Location" style for the prompt.  This option will not be available in Strategy Developer 9.4.x-10.x​.
44056


Comment

0 comments

Details

Knowledge Article

Published:

July 20, 2017

Last Updated:

March 30, 2019