5 Designing Apps

This chapter describes how to use the design features of Mobile App Designer to build purposeful, engaging apps based on your data.

More Learning Sources:

Video icon Video: Starting and Exploring BI Mobile App Designer

Tutorial: Creating Mobile Apps with Oracle BI Mobile App Designer Version

Tutorial: Creating an Advanced Mobile App with Oracle BI Mobile App Designer

5.1 Inserting Images

You can add images to your app pages using any of these methods:

  • Static image: Upload a static image that is saved in the app. An uploaded image file must be in one of the following graphic file formats: GIF, JPEG, PNG, or BMP. The image file cannot be larger than 10 MB.

  • Static URL: Specify a static link to a URL where an image is stored. At run time the image is retrieved from the stored location.

  • Dynamic URL: When the image URL is provided in a data field, specify the field that contains the URL. The value of the data field is evaluated at runtime enabling dynamic insertion of an image.

To insert an image:

  1. Click Insert, and then drag the Image component to the page.

    Inserting Image
  2. In the Insert an Image dialog, specify one of the following sources for the image:

    • Select the image from a local directory: Click Browse to specify the file name and directory of the image on a local or mapped drive to upload the image.

    • Enter the URL for the image: Enter the URL where the image is stored.

    • Select the data field for the image and for the alternative text:

      Image URL: Select the field from the data that contains a URL of an image.

      Alternative Text: If the data includes a field that contains alternative text for the image, then select that field to display alternative text.

    Figure 5-1 Insert Image Dialog

    Insert image dialog
  3. Add alternative text for the image. Click the Properties pane and enter text in the Alternative Text field as shown in Figure 5-2.

    Figure 5-2 Entering Alternative Text for an Image in the Properties Pane

    Entering alternative text
  4. Optionally resize the image in one of these ways:

    • Drag the right bottom corner of the image. To preserve the aspect ratio when resizing an image, press and hold the Shift key before starting to drag the corner.

      Figure 5-3 Resizing an Image

      Resizing an image
    • Modify the width and height in the Properties pane. The Properties pane enables you to enter precise height and width values in pixels, centimeters, inches, or points.

      Figure 5-4 Setting Image Dimensions from the Properties pane

      Setting image dimensions on Properties pane

5.2 Inserting Frames

Use frames to divide your app page into sections for the precise positioning of components. When you start from a Blank page, typically you insert a frame before you begin inserting components. When you choose a preformatted template you can edit a default frame by selecting the frame and using the Frame properties. You can insert a frame inside another frame.

To insert a frame:

  1. Select the area of the page where you want to insert the frame. On the Insert Component menu click Frame.

    Inserting Frame
  2. Enter the number of rows and columns for the frame and click OK.

Figure 5-5 shows the Insert Frame dialog.

Figure 5-5 Insert Frame Dialog

Setting rows and columns for a frame

Figure 5-6 shows the inserted frame.

Figure 5-6 Example of a Frame Inserted in the Design Area

2 X 2 frame inserted to design area

Features of frames include:

  • By default, frame columns are sized equally across the insertion area and frame row height defaults to the height of one row of text.

    When you insert a component to a frame, the frame automatically resizes to accommodate the component.

  • You can adjust the column width and height by either positioning the mouse pointer over the border and dragging the blue resize bar, or by changing the frame column properties in the Properties pane.

  • You can insert a frame inside another frame.

When you select a frame cell, the Frame Cell properties display to enable additional customization of fonts, alignment, borders, and background colors.

5.2.1 Adding a Border or Background Color

By default, the gridlines are displayed in the design area only and are not shown during run time.

To display the gridlines in your app:

  1. Select the frame to display the Frame Cell properties.

    Click the Border icon.

    Set Border command
  2. Choose the border style from the Border dialog. See Section 8.7, "Setting Borders" for more information about the Border dialog.

To add a background color to a frame cell:

  1. Click the Fill color bar to launch the Color Picker.

    Background color toolbar icon
  2. Select a color and click OK.

    See also: Using the Color Picker.

5.2.2 Inserting Additional Rows and Columns

To insert additional rows or columns to a frame:

  1. Select the frame cell that is the focal point to display its properties.

  2. Click the appropriate command button under Insert:

    Insert commands
  • Add a Row above

  • Add a Column to the right

  • Add a Row below

  • Add a Column to the left

5.2.3 Joining and Unjoining Cells

To join frame cells horizontally or vertically:

  1. Select multiple adjacent cells by holding down the Ctrl key and clicking each frame cell.

  2. Click the Join command button.

    Joining two frame cells

To unjoin cells that have been joined:

  1. Select the joined cell and click the Unjoin button.

5.3 Inserting Tables

A default table includes a header, data columns, and a total row. The table supports "group left" functionality (outlines) that merges fields with the same values as well as subtotals, grand totals, and custom calculations.

For detailed information about table options see Section 8.1, "Working with Tables."

To insert a table:

  1. Click Insert, and then drag the Table component to the page.

    Add table

    Figure 5-7 shows an inserted, empty data table. Notice that the Table properties now display.

    Figure 5-7 Example of an Inserted, Empty Data Table

    Example of inserted table
  2. To add data columns to the table, select a field from the Data Source pane and drag it to the table.

    Figure 5-8 shows adding columns to the table. Notice that when you drop a field on the table the sample data immediately displays.

    Figure 5-8 Example of Columns Added to a Table

    Adding columns to a table
  3. Continue to drag the fields from the Data Source pane to form the columns of the table. If you must reposition a column that you have already added, select it and drag it to the correct position.

    To resize columns, position the cursor over the column border until the cursor switches to a handler, then drag the column border to the desired width. Notice that as you drag the column edge the width in pixels displays to enable precise sizing.

    Figure 5-9 Resizing Table Columns

    Resizing a table column

Some formatting is applied to the table, specifically:

5.3.1 Customizing Tables

Edit the table properties using the Properties pane. As you select different areas of the table, notice that the Properties pane changes to display specific for properties for the area selected. The following palettes are available to customize the display of your table. For details see Section 8.1, "Working with Tables."

  • Table

  • Table Column Header

  • Column

  • Total Cell

5.4 Inserting Pivot Tables

A pivot table provides views of multidimensional data in tabular form. It supports multiple measures and dimensions and subtotals at all levels. Figure 5-10 shows a pivot table.

Figure 5-10 A Pivot Table

Sample pivot table

5.4.1 Inserting a Pivot Table

To insert a pivot table:

  1. On the Insert tab, drag the Pivot component to the page. Figure 5-11 shows the empty pivot table structure.

    Figure 5-11 Inserted Pivot Table Structure

    Inserted pivot table structure
  2. Drag and drop data fields from the Data Source pane to the row, column, and data positions.

    To create multiple dimensions, precisely drop each level to its position in the pivot table structure as shown in Figure 5-12.

    Figure 5-12 Dragging Data Fields to the Pivot Table

    Draggng data fields to pivot table

    You can stack multiple dimensions in both rows and columns.

    Stacking multiple rows to pivot table
  3. Optionally resize the pivot table by clicking and dragging the handler in the lower right corner of the pivot table, as shown in Figure 5-13.

    Figure 5-13 Resizing Pivot Table

    resizing a pivot table

For more details about pivot table options, see Section 8.2, "Working with Pivot Tables."

5.5 Inserting Stacked Tables

Stacked Tables enable you to show tabular data in a single column, stacked format. This feature is particularly useful for phone apps when you need to display a set of key values for quick access on this smaller device. This option is also useful to display tabular data within a tile.

Figure 5-14 Example of a Stacked Table on a Phone

Stacked table on phone

Notice how the stacked table enables quick viewing of key data. Data can also be easily grouped.

Figure 5-15 Example of Stacked Table in a Tile Layout on Tablet

Surrounding text describes Figure 5-15 .

To insert a stacked table:

  1. Click Insert, and then drag the Stacked Table component to the page.

    Insert Stacked Table

    The component is inserted.

    Figure 5-16 Inserted Stacked Table

    Empty Stacked Table
  2. Drag data fields from your Data Source to the table.

    Figure 5-17 Adding fields to the stacked table

    Adding field to a stack table
  3. Continue to drag the fields you want displayed in the stacked table. If you want to reposition a field that you have already added, select it and drag it to the correct position.

  4. Format or group the fields as desired. Each field in the table can be formatted separately. Select a field in the table to edit its properties.

    Figure 5-18 Select a field to format in the Properties pane

    Surrounding text describes Figure 5-18 .

5.6 Inserting Charts

The Mobile App Designer supports a variety of chart types and styles to present rich visualizations of your data.

After you insert a chart, you can edit the chart properties using the Properties pane.

5.6.1 Inserting a Chart

To insert a chart:

  1. From the Insert menu, drag the Chart component to the page.

    By default a vertical bar chart is inserted and the Chart properties are displayed, as shown in Figure 5-19.

    Figure 5-19 Default Chart and Chart Properties

    Default chart and toolbar
  2. To change the chart type, click the Chart Type list to select the chart type required for your app. Figure 5-20 shows changing the chart type to Pie.

    Figure 5-20 Changing the Chart Type

    Changing the chart toolbar
  3. Drag the data fields from the Data Source to the appropriate areas in the chart. Where you drag a data element depends on the chart type and on the information you want to display.

    For example, a vertical bar chart includes the following options:

    • Label

    • Value

    • Series

    The chart immediately updates with the preview data, as shown in Figure 5-21

    Figure 5-21 Dragging Data Fields to a Chart

    Dragging data fields to the chart
  4. To resize the chart, drag and drop the resize handler on the lower right corner of the chart, as shown in Figure 5-22.

    To preserve the aspect ratio when resizing a chart, press and hold the Shift key before dragging the handler.

    Figure 5-22 Chart Resize Handler

    Chart resize handler

5.6.2 Changing the Formula Applied to a Chart Measure Field

By default, the chart displays a sum of the values of the chart measure. You can change the formula applied to a chart measure field using the Measure properties.

To change the chart measure field formula:

  1. Select the measure field in the chart. This displays the Measure properties as shown in Figure 5-23.

    Figure 5-23 Changing the Chart Measure Field Formula

    Changing the chart measure field formula
  2. Click the Data tab and select a formula from the Formula list. To include a more complex formula, use a Calculated Field. See Calculated Fields.

5.6.3 Sorting by an Alternative Field

You can sort the chart label or series by an alternative field in your data or by a calculated field. For example, assume you insert the following chart that shows Revenue by Month:

Month names surted alphabetically

The Month names sort alphabetically by default, which is undesirable.

To sort chronologically, you can sort by an alternative field:

  1. Select Label or Series as appropriate.

  2. On the Data properties pane, select Ascending or Descending.

  3. From the Sort by menu, select the Data field or Calculated Field by which you want to sort. Choosing alternativy sort field

5.6.4 Changing the Series Color in a Bar or Line Chart

You can customize the appearance of your line or bar chart by updating the colors displayed.

To change the color of the lines or bars in a chart:

  1. Select the measure field in the chart. This displays the Measure properties as shown in Figure 5-24.

    Figure 5-24 Changing the Color in a Bar Chart

    Showing Chart Measure properties
  2. Click the Color box for the series member that you want to customize.

  3. Use the Color Picker to select the color you want displayed in the chart. Repeat for each series member.

    Figure 5-25 Selecting New Bar Colors Using the Color Picker

    Surrounding text describes Figure 5-25 .

5.6.5 Changing the Width and Style of the Lines in a Line Chart

You can customize the appearance of your line chart by customizing the width and style of the lines.

To change the width of the lines in a line chart:

  1. Select the measure field in the chart. This displays the Measure properties.

    From the Type list, select Line as shown in Figure 5-26.

    Figure 5-26 Selecting Line Type Chart

    Select Measure field in chart
  2. To customize the line width, update the pixel setting as shown in Figure 5-27.

    Figure 5-27 Setting the Line Width to 5 Pixels

    Surrounding text describes Figure 5-27 .
  3. To customize the Line Style, choose from Solid (default), Dash, Dotted, or Dot-Dash.

    Figure 5-28 Selecting New Bar Colors Using the Color Picker

    Updating the Line Style

5.6.6 Setting the Treatment for Null Values

By default, null values are treated as a zero value. Depending on the nature of your data you may want to turn off this setting.

To turn off Treat Null Values as Zero:

  1. Click within the chart to display the Chart properties tab.

  2. Scroll to bottom of the Chart properties tab and deselect the Treat Null Values as Zero.

    Treat Null Values as Zero Checkbox

5.7 Inserting Maps

Use maps to show how data is distributed across geographic locations. Mobile App Designer offers two types of maps from the components menu:

Map Type icons

Choose Region Map when your data includes the regional identifies for how you want your data grouped -- such as U.S. States, world countries, Canadian provinces, Japanese prefectures, Australian territories, and so on. Mobile App Designer provides a set of maps with preset region identifiers to match to your data.

Choose Geo Map when your data includes latitude and longitude values.

5.7.1 Region Maps

Region maps include at least one preset region identifier that specifies how data is mapped to a region. For example, the region identifiers for the US States map are:

  • the full state name (for example, "Florida")

  • the two-letter state abbreviation (for example, "FL")

So if your data identifies the state as "Florida" or "FL" the mapping engine aggregates that data for Florida on the map.

If your data does not include the region identifiers shown for the provided maps, you can edit the map files to meet your requirements.

To edit the map files to add identifiers that match your data, see Chapter 6, "Customizing Region Maps." To use custom maps with custom identifiers, see Section A.7, "Adding Custom Maps."

To insert a Region map on your app page:

  1. Click Insert Component, and then drag Region Map to the area of the page you want to insert it.

    Insert Region Map
  2. On the Properties pane, select the Map Region.

    Selecting the Map Type
  3. Drag the data source field for which the data is to be aggregated to the Group field.

    Group is the geographical entity for which data is aggregated. For example, in a United States map you would aggregate the data by state.

    Figure 5-29 Dragging State from the Data Source to the Map Group Field

    Assigning a Data Field to Aggregation Level

    The values in your data for this field must match a supported region identifier for the map. For example, if you choose the US States map, the data field you assign to Group must contain either the full state names (such as "Wyoming") or the two-letter state abbreviations (such as "WY").

    Some examples are shown in the following table:

    Map Type Group Level Identifiers for the Group Level
    World Countries Country Country Name, for example: "France"

    ISO3 three-letter country code, for example: "FRA"

    ISO2 two-letter country code, for example: "FR"

    US States State Full state name, example: "Wyoming"

    Two-letter state abbreviation, example: "WY"

    US Counties County Two-letter state abbreviation _county name, for example: "IL_COOK" and "CA_ORANGE"
    All others Varies See http://www.oracle.com/technetwork/middleware/bi-foundation/map-code-2408077.html

    If your data does not include a supported identifier, you can edit the map files. See Chapter 6, "Customizing Region Maps."

Selecting a Marker Type

The Marker specifies how the data displays on your map. You can choose either Area or Circle.

Figure 5-30 Selecting a Marker Type

Surrounding text describes Figure 5-30 .

Area - In Area maps, the color of the region signifies the aggregated value. Drop the data value to be aggregated in the Color field. In the following example, the color of each State signifies the aggregated Profit.

Figure 5-31 Assigning a Data Field to Area Marker Color

Surrounding text describes Figure 5-31 .

You can assign up to three measures to the Color field and specify distinct properties for each.

Circle - A circle displays at each location in the data that corresponds to the Aggregation Level. Circle markers can represent two dimensions by color and size.

In the following example, the color of the circle represents Profit while the size of the circle represents Sales.

Figure 5-32 Adding Values to the Color and Size Attributes for the Circle Marker Map

Surrounding text describes Figure 5-32 .

Like the Area marker, you can select up to three measures for color and size. You can choose different properties for each measure (such as color, cut point, and # of steps). At run time, you can then view different combinations.

Figure 5-33 Multiple Measures Shown for Circle Marker

Surrounding text describes Figure 5-33 .

5.7.2 Setting Region Map Properties

Properties you can set for maps include:

5.7.2.1 Setting the Initial Zoom Level and Map Center

You can configure the initial zoom level of the map when a user first opens it.

To configure the initial zoom level:

  1. Select the map to display the map properties.

    Initial Settings Properties
  2. Select Initial View.

  3. Zoom in by increasing the Level (up to 18). Zoom out by decreasing the Level.

5.7.2.2 Customizing the Base Map Display

You can customize your map to display a legend, the zoom buttons, and geographical labels.

Figure 5-34 Some Map Display Options

Maps showing display options

To set display options:

  1. Select the map to display the map properties.

  2. To display the Zoom Button, select Always Display.

    Display options group
    • Legend - displays the legend to show the value of the markers. When Area marker is used, the color scale displays. When Circle marker is used, circle size scale displays as well.

      You can set the Location of the legend to be the Top or the Bottom of the map,

    • Display Labels - displays the label (for example, Country Name or State Abbreviation) for each geographic element. The label used can be configured in the map configuration file (see Section A.7, "Adding Custom Maps").

5.7.2.3 Setting the Color Distribution of Circle or Area Markers

Use the color distribution properties to specify how the marker color is distributed across the data points.

Cut Point

The Cut Point sets the way the color distribution is calculated based on either an equal range of values or equal number of members.

Scale

By default the scale is Linear.

If your data points are mostly distributed near the maximum value, choose Power to enhance the color distinction between the higher numbers.

If your data points are mostly distributed near the minimum value, choose Square Root to enhance the color distinction between the lower members.

Scale cannot be set when the Cut Point is set to equal number of members.

Set 0 as Center Value

Sets 0 as the center point of the color distribution.

# of Steps

Number of color steps between the lowest and highest values.

Color Type

When set to Sequential, choose the Start and End colors to display. The lowest value displays the Start color and the highest values displays the End color. Values in between display color between the two according to your selections for Cut Point, Scale, and Number of Steps.

When set to Diverging, choose Start, Center, and End colors. The Center color is the mid point of the data values. The higher values diverge from the Center toward the End color, the lower values diverge from the Center color toward the Start color.

Opacity

Set the slider to configure the opacity level.

5.7.2.4 Setting the Size Distribution of Circle Markers

You can configure how the circle size represents your data.

Scale

By default the scale is Linear.

If your data points are mostly distributed near the maximum value, choose Power to enhance the size distinction between the higher numbers.

If your data points are mostly distributed near the minimum value, choose Square Root to enhance the size distinction between the lower members.

Min Size / Max Size

Manually set the start (lowest value) and end (highest value) size of the circles in pixels.

5.7.3 Geo Maps

Use Geo Maps when your data includes latitude and longitude values.

  1. Click Insert Component, and then drag Geo Map to the area of the page you want to insert it.

    Insert Geo Map
  2. Drag and drop your latitude and longitude data fields to the map.

    Drag and drop coordinate fields

    Your map now shows a single dot per coordinate location.

    Geo dots
  3. Drag the data source field for which the data is to be aggregated to the Group field.

    The Group is the geographical entity for which data is aggregated. The following example shows the same data For example, in a United States map you would aggregate the data by state. Table 5-0 shows how you can group your location coordinates by different elements in your data. In this case, City or State.

    Figure 5-35 Examples of Group by City or State

    Surrounding text describes Figure 5-35 .

5.7.4 Setting Geo Map Properties

Properties you can set for maps include:

5.7.4.1 Setting the Initial Zoom Level and Map Center

You can configure the initial zoom level of the map when a user first opens it.

To configure the initial zoom level:

  1. Select the map to display the map properties.

    Setting Initial View
  2. Select Initial View.

  3. Zoom in by increasing the Level (up to 18). Zoom out by decreasing the Level.

Geo Maps: Use Current Location as Initial View

This option is enabled for Geo Maps only (maps that use latitude and longitude values).

Use Current Location

When you select Use Current Location as the Initial View, the app detects the user's current location from the browser and uses it as the center point of the map. For example, if you design a Sales app using latitude and longitude data, then when your app user gets off a plane in Seattle and views the app, the map is centered in Seattle. Another user of the same app in Miami will see her map centered in Miami.

Figure 5-36 Geo Map Showing Current Location

Surrounding text describes Figure 5-36 .

5.7.4.2 Enabling Display of Zoom Buttons and Legend

You can customize whether your map displays the zoom buttons and legend.

To set display options:

  1. Select the map to display the map properties.

  2. To display the Zoom Button, select Always Display.

    Geo Map display options
    • Legend - displays the legend to show the value of the color and size markers.

      You can set the Location of the legend to be the Top or the Bottom of the map,

5.7.4.3 Setting the Color Distribution of Circles

Use the color distribution properties to specify how the marker color is distributed across the data points.

Cut Point

The Cut Point sets the way the color distribution is calculated based on either an equal range of values or equal number of members.

Scale

By default the scale is Linear.

If your data points are mostly distributed near the maximum value, choose Power to enhance the color distinction between the higher numbers.

If your data points are mostly distributed near the minimum value, choose Square Root to enhance the color distinction between the lower members.

Scale cannot be set when the Cut Point is set to equal number of members.

Set 0 as Center Value

Sets 0 as the center point of the color distribution.

# of Steps

Number of color steps between the lowest and highest values.

Color Type

When set to Sequential, choose the Start and End colors to display. The lowest value displays the Start color and the highest values displays the End color. Values in between display color between the two according to your selections for Cut Point, Scale, and Number of Steps.

When set to Diverging, choose Start, Center, and End colors. The Center color is the mid point of the data values. The higher values diverge from the Center toward the End color, the lower values diverge from the Center color toward the Start color.

Opacity

Set the slider to configure the opacity level.

5.7.4.4 Setting the Size Distribution of Circle Markers

You can configure how the circle size represents your data.

Scale

By default the scale is Linear.

If your data points are mostly distributed near the maximum value, choose Power to enhance the size distinction between the higher numbers.

If your data points are mostly distributed near the minimum value, choose Square Root to enhance the size distinction between the lower members.

Min Size / Max Size

Manually set the start (lowest value) and end (highest value) size of the circles in pixels.

5.8 Inserting Lists

The List component displays all values of a data field in a vertical or horizontal interactive list that behaves as a filter for the other components on the page. Tap a list item to update the results in all other tables, charts, or other visualizations on the page. Figure 5-37 shows a page that displays two charts and a table. The list component across the top of the page displays order status. Tapping an order status updates the other components to show only results for the item tapped.

Figure 5-37 Example of Horizontal List

Horizontal filter

You can define default values for the list to be applied when a user first opens the page. This feature is useful when the unfiltered data set is large.

5.8.1 Inserting a List

To insert a list:

  1. Click Insert Component and then select List.

    Selecting filter

    This inserts an empty list to the design area.

    Figure 5-38 An Inserted List

    Inserted Filter
  2. Drag an element from the Data Source pane and drop it on top of the empty list in the layout.

    Figure 5-39 shows a list of Region values.

    Figure 5-39 A List Showing Region

    Filter component showing order status
  3. To change the size of the list in the page, click and drag the handler in the bottom right corner.

    Changing size of filter
  4. (Optional) Customize the appearance of the list and set defaults. See Customizing Lists.

5.8.2 Customizing Lists

Use the List Properties set to:

5.8.2.1 Enable Multiple Selection or Single Selection

By default the List supports multiple selection, but you can restrict it to single selection by choosing the Selection Type.

Choosing Selection Type

5.8.2.2 Specify Default Values for the List

You can configure your list to display only specific values when users first open the app page.

To specify default values:

  1. Select the List to display its Properties.

  2. In the Default Value property, choose whether to Include or Exclude the specified values.

    Figure 5-40 Choosing the Default Value Type

    Choosing the Default Value Tyoe
  3. Enter the default values. Enter multiple values separated by a comma. (Important: Do not enter spaces between the values.)

    Figure 5-41 Entering Default Values for a List

    The Default Value properties

5.8.2.3 Change List Orientation

The list can display either horizontally across the page or frame or vertically down the page. To change the orientation of the list:

  1. Select the List component on the page to display its Properties.

  2. Under Orientation, select Horizontal or Vertical.

    Figure 5-42 shows the Orientation property.

    Figure 5-42 Changing List Orientation to Vertical

    Changing the filter orientation

5.8.2.4 Customize Font and Background Styles

You can customize the list font and background styles for selected and nonselected modes.

To customize the font and background style when no list items are selected:

  1. Select the list component in the design area to display its Properties.

  2. Set the following properties in the Font region:

    • Font type and Font weight

    • Font Size

    • Border

    • Background Color

    • Font Color

      Figure 5-43 Customized List Background Color

      Customizing the filter background color

The Selected Values properties control the appearance of the item in a list when it is selected. By default, the selected item displays as dark grey.

To customize the font and background style of the selected item:

  1. Select the list component in the design area to display its Properties.

  2. Set the following properties in the Selected Values region:

    • Font type, Weight, and Style

    • Font size

    • Font Color

    • Fill color when selected

    Filter font customization options

5.8.2.5 Specify List Sort Order and Sort by Field

To specify the list sort order, click the Data tab on the Properties pane and choose Ascending, Descending, or None.

To sort by a different field than the display field, you can choose a different Sort by Field. In the following example, the list uses Month Name as the filter field, but uses Month Number as the Sort by field to achieve the correct chronological sorting of months.

Figure 5-44 Setting the List Sort Order and Sort by Field

Setting List sort order

5.9 Inserting Sliders

A slider enables you to interactively filter charts and tables on a page by a data field range of values by dragging the slider handle along a horizontal bar. In the following example as you move the slider to the right the charts refresh to include only members with salaries greater than the value the slider is resting on.

Figure 5-45 Annual Salary Shown as a Slider

Example of a slider and charts

You can choose from several operators such as greater than, less than, or is between. Sliders support numeric and date data fields only. Text fields are not supported.

5.9.1 To Insert a Slider:

  1. Click Insert and then drag the Slider component to the app page.

    Insert Slider
  2. Drag a numeric or date field to the Slider on the app page.

    Dragging a data field to the slider
  3. In the Properties pane, select the Operator for your slider. Supported operators are:

    • is equal to

    • is less than

    • is greater than

    • is less than or equal to

    • is greater than or equal to

    • is between

    Slider Properties

5.9.2 Customizing Sliders

You can apply the following customizations to your slider using its Properties:

  • Edit the Text field to change the display name on the slider

  • Apply formatting to the numeric or date field. Choose a predefined format, or enter a custom format. See Section 8.6.1, "Apply Data Formatting."

  • Adjust the width and height of the slider on the app page.

  • Apply a filter to the slider. Click the Data tab and select the filter to apply. See Applying Filters.

5.10 Inserting Data Fields

You can insert a data field to display in your app by simply dragging it from the Data Source pane to the app page where you want it to display. To position data fields more precisely, or to insert fields side-by side, insert a frame first. See Inserting Frames.

5.10.1 Insert Data Fields

To insert a data field:

  1. Select the area in the page where you want to insert the field.

  2. Drag the field from the Data Source pane to the position in the app page.

5.10.2 Display Data Fields Side-by-Side

To display data fields side-by-side as shown in Figure 5-46, insert a Frame first to position the data fields.

Figure 5-46 Data Fields Displayed Side-by-Side

Data fields displayed side-by-side
  1. Select the area of the page to display the data fields. In this example, the area is a Tile.

  2. On the Add Component menu, drag the Frame component to the desired position on the page (in this example, to the first tile).

    Inserting a Frame
  3. In the Frame dialog, enter 1 Row and 2 Columns.

    Insert Frame dialog

    The Frame displays in the page.

    Inserted Frame
  4. Drag the data fields from the Data Source pane to the frame cells where you want the data to display.

    Inserting data fields to the Frame

5.11 Inserting Text or Rich Text

Use the Text or Rich Text component to enter free-form text in the layout.

The differences between Text and Rich Text:

Text:

  • Supports the Light font weight in addition to Bold and Normal.

  • All formatting must be applied to the entire string.

  • Has fewer formatting options, shown here:

Figure 5-47 Properties Available for Text

Text component properties

Rich Text:

  • Does not support the Light font weight.

  • Formatting can be applied differently to parts of the string.

  • Has more formatting options, including insertion of date and time, shown here:

Figure 5-48 Properties Available for Rich Text

Surrounding text describes Figure 5-48 .

To insert text:

  1. From the Add Component menu, select Insert Text or Insert Rich Text.

  2. Double-click the default inserted text to enter your text.

  3. Use the Properties pane to customize the text display.

5.11.1 Display Text Items Side by Side

By default, when you insert a text item to a frame cell, the text box spans the length of the frame cell.

Figure 5-49 Default Text Field Span

Default text span

To arrange text fields side by side with data fields or other text fields, use a frame to align the elements. You can insert multiple frames inside outer frames.

Example: To display a data field in line with the text item:

  1. Insert a frame.

    Inserting a Frame
  2. Specify the columns and rows. This example uses a single row frame with two columns.

    Frame Dialog
  3. Select the frame cell and insert a text component.

    Inserting the Text component
  4. Enter your text string in the Text field, for example: Total Profit.

  5. Drop a data field inline with the text as shown in Figure 5-50.

Figure 5-50 Data Item Inline with Text Item

Data item inline with text item

5.12 Calculated Fields

The calculated fields feature enables you to create a calculated field using common expressions and then use it throughout your app. You define calculated fields by applying formulas or functions to the existing data fields in your app. You then drag this calculated field to the component in your app (charts, tables, tiles, sidebars, pivot tables) just as you would any other field in your data source.

Video icon Video: Adding Calculated Fields and Filters

5.12.1 Adding Calculated Fields

To create a calculated field:

  1. On the left-side accordion pane, click Calculated Fields.

    Figure 5-51 Opening the Calculated Fields Pane

    Opening the Formula pane
  2. Click Add Calculated Fields.

    Create new Formula
  3. In the Calculated Fields dialog, enter a Name for your calculated field.

  4. Select the functions and data fields to construct the calculated field:

    Double-click the function name to add it to the calculation box. To add data fields, select the field and then use the shuttle button to position it in your formula.

    When you select a function, the Syntax, Description, and an Example display on the right.

    Calculated Fields dialog

    The expression is validated as you enter it.

  5. When you click OK the expression displays in the Calculated Fields list.

    Calculated Fields

5.12.2 Adding Calculated Fields to App Components

To add a calculated field to a component, simply drag and drop it from the Calculated Fields pane the same way you would a data field from the data source pane. Add calculated fields to tables, charts, lists, maps, pivot tables, sidebars, exploration page filters, and tile pages.

Figure 5-52 Dragging a Calculated Field to a Table

Dragging a calculated field to a table

5.12.3 Editing Calculated Fields

To edit a calculated field:

  1. Open the Calculated Fields pane.

  2. Click the Edit icon.

    Edit a calculated field
  3. In the Calculated Fields dialog, edit the calculation and click OK. See Adding Calculated Fields for descriptions of the dialog fields.

5.13 Filtering Data

You can create named filters and then apply these filters either to the entire app or just to specific components in the app, such as charts, tables, and tiles.

  • Example: Apply the filter to the entire app:

    Apply the filter to the entire app when you want the app to include only a subset of the data from your data source. For example, if your data includes results for three brands FunPod, BizTech, and HomeView and you want an app that shows only results for FunPod, you can create a filter for Brand and apply it to all components in the app.

  • Example: Apply the filter to specific components

    Apply the filter to only specific components when you want your entire app to include data from your full set of data but only certain components to be filtered. For example, on one page of your app you want to show a chart that shows data for each specific brand only. In this case, create a filter for each Brand (FunPod, BizTech, and HomeView) and apply one each Brand filter to its chart on the app page.

Filters can be based on:

  • static values (for example, Sales > 10,0000)

  • data field values (for example, Sales > Target Sales)

  • values supplied by Variables

Watch the following video for more tips:

Video icon Video: Adding Calculated Fields and Filters

Use the following procedures to add filters to your apps:

5.13.1 Creating Filters

To create a filter:

  1. On the left-side accordion pane, click Filters to open the Filters pane.

    Figure 5-53 Opening the Filters Pane

    Surrounding text describes Figure 5-53 .
  2. Click Add Filter.

    Global Filter Dialog
  3. Enter a Name for your filter.

  4. To filter all components in your app by this filter, select Apply to all the components in the App. When you select this option you do not need to apply the filter again.

    Add Filter Dialog
  5. Select the Data Field, Operator, and Value to define the filter.

    Table 5-1 Fields to Define Filters

    Field Description

    Data Field

    Select the data field to define the filter. All fields from your data source are available.

    Operator

    The available operators depend on the data type of the Data Field selected (numeric, text, or date). Not all operators listed display for each data type. Select the operator to define the qualifying criteria for your filter:

    is equal to

    is not equal to

    is less than

    is greater than

    is less than or equal to

    is greater than or equal to

    is between

    is in top

    is in bottom

    is null

    is not null

    is in

    is not in

    contains

    not contain

    starts with

    ends with

    is in last N days

    is in next N days

    Value

    In the Value field, specify one or more values to use when applying the filter or condition. You can enter:

    • Static value

      for example:

      Brand

      is equal to

      FunPod

    • Data Field

      for example:

      Revenue

      is less than

      Target Revenue.

    • Variable - filter by a value supplied by a variable. See Creating Variables.


5.13.2 Applying Filters

You can apply filters to any page component. If you selected Apply to all the components in the App the filter is automatically applied throughout your app and you can skip this step.

For Filters based on a Variable value: The value of the variable can either be set by default in the variable definition or set from an Analytics page. When the variable value is updated on an Analytics page, it is applied to all components in your app that use the variable value as a filter.

To apply a filter to a chart, table, tile, or map:

  1. Select the chart, tile, table, or map in the work area to display the properties for the component.

    Applying a filter
  2. On the Properties palette, select the Data tab.

  3. On the Data tab, click Add Filter.

  4. Choose the filter to apply from the list.

    Selecting a filter
  5. To apply more filters to the component, click Add Filter again and select another filter from the list. Filters are applied in the order you select them.

5.13.3 Editing Filters

To edit a filter:

  1. Open the Filters pane.

  2. Click the Edit icon.

    Surrounding text describes filter_glob_edit.gif.
  3. In the Filters dialog, edit the criteria and click OK. See Creating Filters for descriptions of the dialog fields.

5.14 Creating Variables

Variables are used exclusively on the Analytics page. Use the Analytics page to create "what if?" scenarios that enable user input of values to drive the visualizations on the page. You create variables to hold the data that users can input, and then use the variable as an argument in a calculated field or filter.

For example, you could create a variable for interest rate. You then create a calculated field that uses the value of your interest rate variable to calculate interest on a given input. Add this variable to an Analytics page to enable your apps users to input different values for interest rate.

See Analytics Pages for details on how to use variables in your apps.

To create a variable:

  1. On the left-side accordion pane, click Variables.

    Click Variables
  2. Click Add Variable.

    Add Variable
  3. Enter a Name for your variable

  4. Select the Variable Type.

    • Input Field

      Input Field Variable
      • Select a Data Type: Number or Text. (Date is not supported in this release.)

      • Enter a Default Value.

    • Text Area

      Variable Type: Text Area
      • The Data Type is preset as Text.

      • Enter a Default Value.

    • List of Values

      List of Values as Static or Data Field

      The values can be a static list that you enter or from a data field.

      • Choose Static and enter a comma-separated list of values; or choose Data Field and then select the data field to supply the values.

      • Enter a Default Value.

    • Slider

  5. To use your Variable in your app

5.15 Customizing Background Images

You can add an image to an app page background and configure the display characteristics of the image. Use a background image when you want to layer other app components on top of it.

To add a background image to a page:

  1. Select the page to enable the Page properties. The example in Figure 5-52 shows the Page properties.

    Figure 5-54 The Page Layout Properties

    Page Layout toolbar
  2. Under Background Image, click Select Image to choose an image.

  3. In the Insert an Image dialog, specify the source for the image:

    • Select the image from a local directory: Click Browse to specify the file name and directory of the image on a local or mapped drive to upload the image.

    • Enter the URL for the image: Enter the URL where the image is stored.

    • Select the data field for the image URL and for the alternative text:

      Image URL: Select the field from the data that contains a URL to an image.

      Alternative Text: If the data includes a field that contains alternative text for the image, then select that field to display alternative text.

    Figure 5-55 Insert an Image Dialog

    Insert an Image Dialog
  4. Click Insert to insert the image to the app page. By default, the image is scaled to fit the page.

    Inserted image

You can now add app components on top of the background.

5.15.1 Sizing the Background Image

To configure the size of the background image:

  1. Select the page to enable the Page properties

  2. Select a fit option from the menu.

    Choosing a scaling option
    • Actual Size - displays the image according to the actual pixel dimensions.

    • Scale to Fit - expands the image maintaining the scale until one dimension reaches the edge. If one dimension reaches the edge of the canvas and the other dimension has not, then that area of the canvas is not covered.

    • Scale to Fill - expands the image maintaining the scale to cover the entire canvas. If one dimension extends past the canvas for the other dimension to reach the edge, the image dimension that extends past the canvas is cropped.

    • Repeat - repeats the image at actual size to fill the canvas. Use this option to use a small image to create a pattern or texture in the background.

5.16 Adding Sidebars

A sidebar provides pop-up detail information when you tap a chart, a map, or tile on ta page. The following figure shows a page with sidebar enabled. Tapping a value on the page, such as the city of Miami on the map, launches the sidebar on the right side of the page showing detail information for the selection.

Video icon Video: Adding Detail Information Using Sidebars and Subpages

Figure 5-56 Sidebar Displaying Details

Surrounding text describes Figure 5-56 .

To close the sidebar, click the close icon in the upper right corner.

Use the sidebar when you want to provide a set of detail information about the values shown on your page and still maintain the context by staying on the app page. If you want to provide a full set of drill-down visualizations, consider using a subpage instead (see Main Pages and Subpages).

Design Note:

A page can support either a sidebar or a subpage, but not both. When designing your page, consider the amount and type of information you want to display from each touch point. If you want to supply a simple table-style list of additional data, then a sidebar is most likely appropriate. If you want to supply additional visualizations, such as charts and tables driven by the touch point, then a subpage would be more appropriate.

Note the following about sidebars:

  • A sidebar is enabled at the page level. If you want every page of your app to display a sidebar, you must set up the sidebar for each page.

  • The sidebar is activated at run time when you tap a value on a chart, a map, or a tile.

  • You can define one sidebar per page; therefore, all items that can activate the sidebar display the same set of fields. In the example in Figure 5-56 the fields Customer, City, Sales, and so on display when you tap a value on either the charts or the map.

To add and customize a sidebar to your app page see the following sections:

5.16.1 Inserting a Sidebar

To add a sidebar to an app page:

  1. Select the app page.

    selecting the app page
  2. On the Properties pane, set the Sidebar property to True. After you set the property, the Sidebar indicator displays in the upper right corner of the page, as shown in the following figure.

    Setting the Sidebar property to true
  3. Click the Sidebar indicator to open the sidebar panel for editing.

    Sidebar open for editing
  4. Drag the data elements that you want to provide detail for from the Data Source pane to the Sidebar panel.

    Dragging data to the sidebar panel

    The sidebar presents the data as a table. You can customize how the data displays and also apply grouping.

  5. (Optional) Adjust the label field size for the sidebar label column. To adjust the space allowed for the label field

5.16.2 Adjusting the Label Field Width

By default the label field width is 100 pixels. The label field width is set for the entire sidebar and cannot be adjusted individually for data fields.

To adjust the label column width for the sidebar:

  1. Click the edge of the sidebar component to select the entire component.

  2. In the Properties pane, enter the width in pixels for the label field.

    Figure 5-57 Setting the Sidebar Label Width Property

    Sidebar Label Width property

5.16.3 Customizing the Fields in the Sidebar

You customize each field in the sidebar individually. When you select a field, the Field properties display. Use the Field Properties set to group data fields and customize the display. You can perform the following for a data field in the sidebar:

5.16.3.1 Group By a Data Field

The Group By feature groups occurrences of the specified data field together, aggregating the values of the other fields. For example, suppose in your sidebar you place the data fields:

  • Customer

  • Product

  • Quantity Ordered

If you Group By Customer, the sidebar shows one entry per customer with all the customer products grouped below the single entry. See the example in Figure 5-58. The ungrouped sidebar shows multiple entries for a single customer, the grouped entry creates one entry per customer.

Figure 5-58 Examples showing ungrouped and grouped data

Grouped and ungrouped data

To group the fields in your sidebar:

  1. Select the data field in the sidebar to display its Properties.

  2. Select Group By.

    Group by Property in sidebar

5.16.3.2 Apply a Formula

By default, numeric fields are summed. You can change the formula in the Properties pane to a basic predefined formula.

To change the formula:

  1. Select the data field in the sidebar to display its Properties.

  2. Click the Data tab.

  3. Choose from the list of formulas. The following formulas are supported: No Formula, Blank Text, Count Distinct, Sum, Average, Maximum, and Minimum.

    Sidebar formulas

To apply a more complex formula to a data field, use the Calculated Fields feature to create the field then add it to the sidebar. See Calculated Fields.

5.16.3.3 Customize Data Formatting

Customize the formatting applied to a number, date, or currency field. See Section 8.6.1, "Apply Data Formatting."

5.16.3.4 Customize Labels, Fonts, and Background

Use the Properties for the sidebar Field for customizations such as:

  • Edit the label shown. The default label comes from the data, for example "Quantity ordered new". Use the Label property to edit the display name.

  • Edit font, font color, font background for both the data and the label.