Creating a mobile application

Successfully developing a mobile application usually requires several steps before actually developing an app: (1) determine business goals; (2) storyboarding and planning; (3) creating templates; (4) creating suitable data; and finally, (5) mobile app development.

Determine business goals

In this step, mobile developers need to know the requirements. Who are the users? What kind of visualizations are needed? Are there any specific functionality requirements? How many apps need to be created? In addition, you will also need to know:

  • The goals of the app and the business process
  • Primary task and users
  • What data is being accessed
  • Assess and prioritize requested features

For example, we need to create an app that will help an organization analyze sales performance, and to help buyers with visits:

Audience

Task

Goal

Executives

Trend analysis

Company trend of sales over time

Executives

Regional Managers

Product analysis

Sales performance of product: by categories and brands

Regional Managers

Customer analysis

Revenue performance by customer in region

Buyers

Supplier location

Sales visits by buyers

Buyers

Supplier analysis

Performance of supplier

Buyers

Supplier information

Contact information for the buyer

Storyboarding and planning

The second step is storyboarding and planning. The storyboard is to visualize the whole workflow based on the requirements, by providing the screens and the organization of the screens using paper, or software like Visio; storyboarding helps keep the conversation going between IT and business users.

Planning is to decide detailed objects requirements, and how to navigate in the app:

Storyboarding and planning

For example, after discussing the storyboard with business users, we decide to build two separate apps for different users. For executives and managers, we build Sales Performance App; for buyers, we build Buyer Visit App. Details are shown in the following image:

Storyboarding and planning

Creating an iPad Landscape template

First, we need a suitable document template. There are two ways to do this. MicroStrategy has many prebuild templates, including the iPad Landscape template. They are hidden, but you can unhide them and start using them. Alternatively, you can create the template yourself. Let us see how to unhide templates, and how to create new templates.

Unhide document templates

Certain document templates are hidden; to unhide them, follow these steps:

  1. Open MicroStrategy Developer, click Tools | Preference.
  2. Click Developer | Browsing, unselect Display hidden objects, click OK.
  3. Now you can see hidden folders and other objects. Choose the Object Templates folder, choose Document folder; you should see some templates are hidden.
  4. Right-click a hidden template, unselect Hidden, click OK:

    Unhide document templates

Creating templates

Before you start, you certainly need to log in to a project, and make sure you select to display Pixels instead of Inches. To do this, click User Preference on the top-right of the web interface, click Preferences | General, under Language, click Advanced Options, and choose Pixels for Measurement Units:

Creating templates

Templates are nothing more than regular documents. When you put a document into the template folder, it serves as a template. Follow these steps to create an iPad Landscape Template:

  1. Click Create Document.
  2. Click Tools | Document Properties.
  3. Under Layout Properties | Sections, uncheck all except Detailed Header.
  4. Under Page, input 2048 for Width, 1536 for Height, and Landscape for Orientation. Click OK:

    Creating templates

Adjust the view to make your canvas look correct:

  1. Click Tools | Manage views.
  2. Set Resolution to 2048 X 1536 , and Orientation to Landscape Only.
  3. Drag the right-hand side and bottom edges of the canvas to the proper place.
  4. Under Document Home, choose Fit Page. Save the document:

    Creating templates

Dataset creation

Dataset creation is no different than generating ordinary reports; however, because of the limitations in processing power, network bandwidth, and in memory for mobile devices, it is a good idea to keep the datasets small.

In this chapter, we import and use the following datasets:

Dataset creation

Panel stack and panels for Sales Performance App

In this section, we create the skeleton for the Sales Performance App, which is made up of the main panel stack, and panels:

  1. Create a document based on the iPad Retina Landscape template and save it as Sales Performance App.
  2. Click INSERT, click Panel Stack, draw a panel stack on canvas, right-click on panel stack, and click Properties and Formatting.
  3. Set Properties | Layout | Size, Width2048, Height1536.
  4. Click Add Panel and repeat five times, then rename the added panels to Home, Product, Region, Trends, and Customer.
  5. Right-click on Main Panel Stack and click Create Panel Selector.
  6. Right-click on the panel selector in Properties and Formatting, set the Properties | Layout | Selector | DHTML Style from default Drop-down to Button Bar, and click OK.
  7. Adjust Position, and Size to proper values:

    Panel stack and panels for Sales Performance App

    Panel stack and panels for Sales Performance App

The result is a blank panel stack containing five panels and a panel selector.

Creating a Home page for Sales Performance App

We want to create a home page, a dashboard showing the sales overviews and KPIs:

Creating a Home page for Sales Performance App

It has four parts: a profits pie chart, a time series graph of revenue, KPIs, and a bar chart for top 5 sales. We will show how to create these parts.

Creating a profit pie chart for Home

The result we want to achieve is as follows:

Creating a profit pie chart for Home

Here are the steps to create it:

  1. Click INSERT, click Grid, and draw the grid on the canvas.
  2. Drag Year, Category, and Profit into the grid.
  3. Right-click on Year and click Create Selector Control.
  4. Right-click on the selector control, set the Properties | Layout | Selector | DHTML Style to Button Bar, and adjust it to the proper width and height.
  5. Right-click on the grid, click View Mode | Graph View, click on Graph, and change to Pie chart:

    Creating a profit pie chart for Home

Creating a revenue time series graph for Home

The following is the result we want:

Creating a revenue time series graph for Home

Here are the steps to create it:

  1. Click INSERT, click Grid, and draw the grid on the canvas.
  2. Drag Year, Category, and Revenue into the grid.
  3. Right-click on Category and click Create Selector Control.
  4. Right-click on the selector control, set the Properties | Layout | Selector | DHTML Style to Button Bar, and adjust it to the proper width and height.
  5. Right-click on the grid, click View Mode | Graph View, click Graph, and change to Pie chart.
  6. Take manual control of Property and Formatting | Properties | Selector | Targets:

    Creating a revenue time series graph for Home

Creating KPI for Home

The following is the result we want:

Creating KPI for Home

The steps to create it are as follows:

  1. Drag metrics Profits, Units Sold, and Revenue on to the canvas.
  2. Double-click the textbox and input necessary text.
  3. Right-click on the textbox, click Properties and Formatting, and change text sizes.

Creating a top 5 units sold bar chart for Home

The result we want is as follows:

Creating a top 5 units sold bar chart for Home

Here are the steps to create it:

  1. Click INSERT, click Grid, and draw the grid on the canvas.
  2. Drag Year, Subcategory, and Units Sold into the grid.
  3. Change into interactive edit mode and sort by Units Sold.
  4. Change into edit mode, right-click on Subcategory, and click Edit View Filter.
  5. Click Add New Condition, Units Sold, Highest, and input 5 for the value.
  6. Right-click on the grid, choose View Mode | Graph View, click Graph, and choose Horizontal Bar:

    Creating a top 5 units sold bar chart for Home

Creating a Product page for Sales Performance App

The result we want to achieve is as follows:

Creating a Product page for Sales Performance App

Here are the steps to create it:

  1. Click INSERT, click Grid, and draw the grid on the canvas.
  2. Drag Category, Call Centre, Month, and Units Sold into the grid.
  3. Right-click on Category and click Create Selector Control.
  4. Right-click on the grid, click Properties and Formatting, and click Properties | Widget | Widget Selection | Widget | Mobile | Microcharts:

    Creating a Product page for Sales Performance App

Creating a Region page for Sales Performance App

The result we want to achieve is as follows:

Creating a Region page for Sales Performance App

Here are the steps to create it:

  1. Navigate to the Region panel.
  2. Click INSERT | Widgets | Mobile | Heat Map.
  3. Drag Region, Call Centre, Units Sold, and Revenue into the grid:

    Creating a Region page for Sales Performance App

Creating a Trend page for Sales Performance App

The result we want is as follows:

Creating a Trend page for Sales Performance App

Here are the steps to create it:

  1. Navigate to the Trends panel.
  2. Click INSERT | Widgets | Mobile | Time Series.
  3. Drag Month, Metrics, Revenue, and Units Sold into the grid.
  4. Note that Time Series Widgets can only be viewed in mobile mode (we cheated on the previous result graph):

    Creating a Trend page for Sales Performance App

Creating a Customer page for Sales Performance App

The result we want is as follows:

Creating a Customer page for Sales Performance App

Here are the steps to create it:

  1. Navigate to the Customer panel.
  2. Click INSERT | Widgets | Mobile | Map.
  3. Drag Zip Code, Customer Latitude, Customer Longitude, Avg Revenue per Customer, and Transactions Per Customer into the grid.
  4. Right-click on the grid, click Properties, set Select Latitude to Customer Latitude, set Select Longitude to Customer Longitude, and set Selection display attribute to Zip code.
  5. Note that Map Widgets can only be viewed in mobile mode:

    Creating a Customer page for Sales Performance App

Prompts in mobile applications

Prompts in mobiles work basically the same as those in Web. Numeric value prompts display in different ways depending on the data involved, for example, date and time picker, Boolean switch, and numeric stepper. There are two prompts native to mobile:

  • Geo Location prompt: This can work both by entering a value or choosing from an element list, for example, a list of cities
  • Barcode Reader prompt:

Prompts in mobile applications

Prompts can help filter out unwanted records, to target only the information of interest.

Views in mobile applications

Multiple versions of an app can be created with multiple layouts of views. A layout can have multiple views. Multiple views are useful for different screen sizes and orientation. Views do not share objects with other layouts. Views reduce design time and maintenance. Multiple views do not have to show the same data, that is, if you rotate the screen, you want to see some new content.

To add views, click Tools | Document Properties | Advanced | Layout Properties | Mobile | Support orientations: Portrait and Landscape.

To manage views, right-click on the object and click Manage views. You can create one view for portrait only, and create a second view for landscape only, by using Views Editor:

Views in mobile applications

Linking

Links enable navigation to reports and documents. There are three ways to provide linking: Links Editor, Document Links, and URL API.

One thing to note is that intra-document links only work for mobiles; testing should be done on the device. External apps can be opened: mail, text messaging, phone, and so on.

Using Buyer Visit App as an example, on the home page, we have a Location button, which is linked to a Buyer App - Location document. Here is how to create it:

  1. Insert a button, Location.
  2. Right-click on the button and click Properties and Formatting.
  3. Click Properties | Button | Actions.
  4. Under Links, specify Buyer App - Location to run this report or document:

    Linking

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset