Appboard/old/getting started tutorial: Difference between revisions

imported>Mike.berman
(→‎Conclusion: fix typo)
imported>Jason.nicholls
 
(17 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{DISPLAYTITLE:Getting Started Tutorial}}
[[Category:AppBoard old]]
==Audience==
==Audience==


Line 11: Line 13:
==Installation==
==Installation==


The AppBoard system requires that a turnkey server is installed on an AppBoard server by a system administrator.  This guide assumes that the installation has been completed and you are able to access the AppBoard builder in a web browser.  For help with Installing AppBoard, see [[AppBoard_Installation|Installation]].
The AppBoard system requires that a turnkey server is installed on an AppBoard server by a system administrator.  This guide assumes that the installation has been completed and you are able to access the AppBoard builder in a web browser.  For help with Installing AppBoard, see [[appboard/old/installation|Installation]].




The requirements for running the AppBoard Builder are:
The requirements for running the AppBoard Builder are:
# A supported web browser running a supported version of Flash player.  To check the supported versions, see [[System_Requirements|System Requirements]]
# A supported web browser running a supported version of Flash player.  To check the supported versions, see [[appboard/old/installation/system_requirements|System Requirements]]
# Connectivity to the AppBoard data server
# Connectivity to the AppBoard data server


==Accessing the Builder==
==Accessing the Builder==


[[File:builder.png]] In your browser, you can navigate to the home URL of your AppBoard system.  This will be a URL such as a URL such as http://appboardhost:8080/enportal/visualizer/Appboard_Builder.html.  If you are prompted to log in, use the following default administrator credentials:
[[File:Builder.png]] In your browser, you can navigate to the home URL of your AppBoard system.  This will be a URL such as http://appboardhost:8080/enportal/visualizer/Appboard_Builder.html.  If you are prompted to log in, use the following default administrator credentials:


Username: administrator
Username: administrator
Line 33: Line 34:


'''Action: In your browser, navigate to the AppBoard home URL and log in to AppBoard.'''
'''Action: In your browser, navigate to the AppBoard home URL and log in to AppBoard.'''


==Exercise Summary==
==Exercise Summary==
Line 42: Line 42:
# Creating a filtered data collection
# Creating a filtered data collection
# Creating a dashboard
# Creating a dashboard
# Adding widgets to a dashboard
# Adding Widgets to a dashboard
# Re-arranging the layout of a dashboard
# Re-arranging the layout of a dashboard
# Configuring actions to trigger changes to a widget and launching other dashboards
# Configuring actions to trigger changes to a Widget and launching other dashboards




Line 54: Line 54:
# Create a Board displaying a US map, with pins on the state capitals, as well as an associated data grid displaying detailed information about each state
# Create a Board displaying a US map, with pins on the state capitals, as well as an associated data grid displaying detailed information about each state
# Configure an action to filter the pins on the map to only display for Northern states with a large population
# Configure an action to filter the pins on the map to only display for Northern states with a large population
# Re-arrange the layout of the widgets
# Re-arrange the layout of the Widgets
# Configure an action to launch a new Board when a pin is clicked on the US map, displaying a data grid listing the counties in the state that was clicked
# Configure an action to launch a new Board when a pin is clicked on the US map, displaying a data grid listing the counties in the state that was clicked


Line 60: Line 60:
==Data Sources==
==Data Sources==


The first step in creating a dashboard is defining a data source that will be used by the Widgets.  The “Data Sources” Builder Mode displays the Data Source Administration panel, where you can Add and Edit data sources.
The first step in creating a dashboard is defining a data source that will be used by the Widgets.  The “Data Sources” Builder Mode displays the Data Source Administration panel, where you can add and edit data sources.


Data Sources define connections to data warehouses, such as databases, file systems, web services and system APIs. The basic purposes of a Data Source are to define a connection to the outside data, provide an Appboard "namespace" for the data, and provide security measures such as filtering against the incoming data.
Data Sources define connections to data warehouses, such as databases, file systems, web services and system APIs. The basic purposes of a Data Source are to define a connection to the outside data, provide an Appboard "namespace" for the data, and provide security measures such as filtering the incoming data.


In this section, you will create a mapping in AppBoard to a data source file.  The file is a table of comma-separated-values (CSV) that lists the states in the United States of America and contains data such as population and map coordinates of the state capital.
In this section, you will create a mapping in AppBoard to a data source file.  The file is a table of comma-separated-values (CSV) that lists the states in the United States of America and contains data such as population and map coordinates of the state capitals.


'''Action: Click Data Sources to display the Data Source Administration panel'''  
'''Action: Click Data Sources to display the Data Source Administration panel'''  




There are many different types of data sources that are supported by AppBoard.  You can also write your own custom data adapters, if needed.  In this guide, a sample CSV (comma separated value) file will be used as a data source.
AppBoard supports a variety of data sources.  You can also write your own custom data adapters, if needed.  In this guide, a sample CSV file will be used as a data source.




[[File:datasource.png]] '''Action: Perform the following steps to add a data source:'''
[[File:Datasource.png]] '''Action: Perform the following steps to add a data source:'''
# '''Click the Add button'''
# '''Click the Add button'''
# '''In the “Name” box, enter “sample.USA_States”'''
# '''In the “Name” box, enter “sample.USA_States”'''
Line 78: Line 78:
# '''Under the file type, select “CSV File”'''
# '''Under the file type, select “CSV File”'''
# '''Click the “Add Data Source” button.  The “Connect” screen will be displayed.'''
# '''Click the “Add Data Source” button.  The “Connect” screen will be displayed.'''
# '''Under “filePath”, enter “${application.home}/data/pkg/appboard/test/stateCapitals.csv”'''
# '''Under “File Path”, enter “${application.home}/data/pkg/appboard/test/stateCapitals.csv”'''
# '''Click Next.  The “Explore” screen will be displayed with a list of data files found.'''
# '''Click Next.  The “Explore” screen will be displayed with a list of data files found.'''
# '''Under “Primary Key” for USA_States, select “StateID”'''
# '''Under “Primary Key” for the "stateCapitals" folder, click the Edit button and select “StateID”'''
# '''Click Next.  The “Associate” screen will be displayed'''
# '''Click Next.  The “Associate” screen will be displayed'''
# '''Click Finish and click OK on the "Success" dialog.  On the Main Menu, click Data Sources again to display the Data Source Administration panel and confirm that the Data Source “sample.USA_States” is now listed.'''
# '''Click Finish and click OK on the "Success" dialog.  Now on the Data Sources page under the Data Source Administration panel, confirm that the Data Source “sample.USA_States” is now listed.'''
 


Associations are logical connections between two pieces of data; often referred to as "foreign-keys" in databases. For example, a collection of records about the individual states within the United States could be associated with a collection of records about the individual counties in each state. The county would have a "stateId" field that defined the state in which the county resides. Therefore a one-to-many association can be created between a state and counties.


Associations are logical connections between two pieces of data; often referred to as "foreign-keys" in databases. For example, a collection of records about the individual states within the United States could be associated with a collection of records about the individual counties in each state. The county would have a "stateId" field would define the state in which the county resides. Therefore a one-to-many association can be created between a state and counties.


==Data Collections==
==Data Collections==


A "Data Collection" is a group of data sources that are available for the widgets in the system to use.  Data Collections allow you to configure filtered data sets from the raw data in a Data Source.  For example, you can create server-side or client-side filters that restrict the data that will go into your widgets.
A "Data Collection" is a group of data sources that are available for the Widgets in the system to use.  Every time a Data Source is created, a Data Collection is made using all of the data from the data source.  Creating your own Data Collections allows you to configure filtered data sets from the raw data in a Data Source.  For example, you can create server-side or client-side filters that restrict the data that will go into your Widgets.


In this section, you will create a filtered data collection from your raw data source.  The filter will select the states in the Northern part of the USA.
In this section, you will create a filtered data collection from your raw data source.  The filter will select the states in the Northern part of the USA.


[[File:datacollection.png]] '''Action: Perform the following steps to add a Data Collection:'''   
[[File:Datacollection.png]] '''Action: Perform the following steps to add a Data Collection:'''   


# '''Click Data Collections to display the Data Collections panel'''   
# '''Click Data Collections to display the Data Collections panel'''   
# '''Click the Add button'''  
# '''Click the Add button'''  
# '''In the “Data Collection Name” box, enter “sample.Northern_States”'''
# '''In the “Data Collection Name” box, enter “sample.Northern_States”'''
# '''For Data Source, select “sample.USA_States”'''
# '''For Data Source, select “sample.USA_States.StateCapitals”'''
# '''Click Next.  The “Client Side Filter” screen will be displayed'''
# '''Click Next.  The “Client Side Filter” screen will be displayed'''
# '''Click the “+” next to Add Rule and select “Simple Property Comparison”'''
# '''Click the "Add Rule" button and select “Simple Property Comparison”'''
# '''For “Property”, select “Latitude”'''
# '''For “Property”, select “Latitude”'''
# '''For the comparison type, select “>”'''
# '''For the comparison type, select “>”'''
Line 108: Line 107:
# '''In the Data Collections panel, confirm that the “sample.Northern_States” collection is listed'''
# '''In the Data Collections panel, confirm that the “sample.Northern_States” collection is listed'''
# '''Click the “Preview” button in the row of the new data collection to launch the data viewer.  Observe that there are 23 rows representing states with latitude greater than 40.'''
# '''Click the “Preview” button in the row of the new data collection to launch the data viewer.  Observe that there are 23 rows representing states with latitude greater than 40.'''


==Stacks and Boards==
==Stacks and Boards==


A "Board" represents a dashboard of information.  Each board will consist of one or more widgets.  A Board typically displays a suite of information that is related in some meaningful way, and which will be appropriate to present as a visualization to an AppBoard end-user.
A "Board" represents a dashboard of information.  Each Board will consist of one or more Widgets.  A Board typically displays a suite of information that is related in some meaningful way, and which will be appropriate to present as a visualization to an AppBoard end-user.


A "Stack" is a collection of Boards that contain related information. For example, a Stack named "States" might have two boards, one that lists all of the states in the US and another Board that shows only the details of a single state. Stacks are generally used for drill-down purposes. So clicking on a state in the US level Board would reveal the details of that state in the single state details Board.
A "Stack" is a collection of Boards that contain related information. For example, a Stack named "States" might have two boards, one that lists all of the states in the US and another Board that shows only the details of a single state. Stacks are generally used for drill-down purposes. Clicking on a state in the US level Board would reveal the details of that state in the single state details Board.


In this section, you will create a Stack (and a Top-level Board) that will be used for displaying widgets with information about the states in the USA.
In this section, you will create a Stack (and a Top-Level Board) that will be used for displaying Widgets with information about the states in the USA.


[[File:stack.png]] '''Action: Perform the following steps to create a Stack:'''
[[File:Stack.png]] '''Action: Perform the following steps to create a Stack:'''


# '''Click Stacks and Boards to display the Stacks and Boards Administration panel'''
# '''Click Stacks and Boards to display the Stacks and Boards Administration panel'''
Line 130: Line 128:
==Widgets==
==Widgets==


A "Widget" is a visual element that can be placed on a Board. For example, the "Data Grid Widget" gives a visual representation of tabular data in a familiar spreadsheet format.  Boards contain one or more Widgets, each displaying part (or all) of the data to be visualized.  Widgets are viewed by the Widgets wizard or during the Boards step of the Stacks & Boards wizard. These wizards are invoked via links in the left side tool palette of the Appboard Builder interface.
A "Widget" is a visual element that can be placed on a Board. For example, the "Data Grid Widget" gives a visual representation of tabular data in a familiar spreadsheet format.  Boards contain one or more Widgets, each displaying part (or all) of the data to be visualized.  Widgets are viewed by the Widget wizard or during the Boards step by the Stacks & Boards wizard. These wizards are invoked via links in the left side tool palette of the Appboard Builder interface.


In this section, you will create a map widget that displays a USA map.  You will place pins on the map where the state capitals are located, for only the states in the northern part of the USA.  You will then configure an action to filter the display when one of the pins is clicked, to only show states with a total population that is greater than 2,000,000 residents.
In this section, you will create a map Widget that displays a USA map.  You will place pins on the map where the state capitals are located for the northern states only.  You will then configure an action to filter the display when one of the pins is clicked, to only show states with a total population that is greater than 2,000,000 residents.


[[File:widget.png]] '''Action: Perform the following steps to create a Widget:'''
[[File:Widget.png]] '''Action: Perform the following steps to create a Widget:'''
# '''Click Widgets to display the Widgets Administration panel'''
# '''Click Widgets to display the Widgets Administration panel'''
# '''Click the “Add” button to create a new Widget'''
# '''Click the “Add” button to create a new Widget'''
# '''In the “Name” box, enter “Northern_States_Map”'''
# '''In the “Name” box, enter “Northern_States_Map”'''
# '''For “Board”, select “USA_States_Stack”'''
# '''For “Board”, select “USA_States_Stack”'''
# '''Select the widget type “Maps” and select “USA”'''
# '''Select the Widget type “Maps” and select “Vector Map”'''
# '''Click “Add Widget”'''
# '''Click “Add Widget”'''
# '''Perform the following on the “Configure” panel to configure the widget:'''
# '''Perform the following on the “Data” panel to configure the Widget:'''
#* '''For “Data Collection”, select “sample.Northern_States”'''
#* '''For “Data Collection”, select “sample.Northern_States”'''
#* '''For "Map Type" select "US"'''
#* '''For “Adornment Label Field”, select “Capital”'''
#* '''For “Adornment Label Field”, select “Capital”'''
#* '''For “Latitude Field”, select “Latitude”'''
#* '''For “Latitude Field”, select “Latitude”'''
#* '''For “Longitude Field”, select “Longitude”'''
#* '''For “Longitude Field”, select “Longitude”'''
#* '''Observe that some data points are now displayed in the preview panel'''
#* '''Observe that some data points are now displayed in the preview panel'''
#* '''Zoom in on the map and drag as needed so it shows the United States'''
#* '''You may change the default pin shape and color here.  You may also add filters that determine the pin appearances.'''
#* '''Select a “Default Color” for the pin markers on the map, by scrolling as needed to the section labeled "Pin Appearance" and clicking on the "Pin Color" toolObserve the change in the pin color on the map in the preview panel'''
#* '''Click “Next”The “Trouble Bubble” screen will be displayed'''
#* '''Click “Next”.  The “Options” screen will be displayed'''
#* '''Click “Next”.  The “Options” screen will be displayed'''
#* '''Click “Next”.  The “Actions” screen will be displayed'''
#* '''Click “Next”.  The “Actions” screen will be displayed'''
#* '''Click the “+” next to “Add Action”'''
#* '''Click the “Add Event Action” button and select "Apply a Filter to a Data Collection" from the drop-down list'''
#* '''For “On selection of”, select “sample.USA_states”'''
#* '''Next to “On selection of”, make sure "any" and “sample.USA_states.StateCapitals” are selected'''
#* '''For “perform action”, select “Apply a Filter to a Data Collection”'''
#* '''For “Filter data collection”, select “sample.Northern_States”'''
#* '''For “Filter data collection”, select “sample.Northern_States”'''
#* '''Click the “+” next to “Add Rule” and select “Simple Property Comparison”'''
#* '''Click the “Add Rule” button and select “Simple Property Comparison”'''
#* '''For “Property”, select “Population”'''
#* '''For “Property”, select “Population”'''
#* '''For the comparison type, select “>”'''
#* '''For the comparison type, select “>”'''
Line 161: Line 159:
#* '''Add a second Rule in the same manner, setting “Latitude” “>” “40”'''
#* '''Add a second Rule in the same manner, setting “Latitude” “>” “40”'''
#* '''Click Finish'''
#* '''Click Finish'''
# '''On the main panel, click “Builder” to display the “USA_States_Stack” stack.  Observe the widget displaying the Northern states. Zoom as desired.'''
# '''On the main panel, click “Builder” to display the “USA_States_Stack” stack.  Observe the Widget displaying the Northern states.'''
# '''Click on a pin in the map to activate the event which will filter the map to only display capitals for northern states with Population > 2,000,000'''
# '''Click on a pin in the map to activate the event which will filter the map to only display capitals for northern states with a Population > 2,000,000'''
# '''Click the Edit button to additionally edit the widget colors and other presentation elements'''
# '''Click the Edit button to additionally edit the widget colors and other presentation elements'''


In this section, you will create a data grid widget to be displayed alongside the map widget.  It will show details about each state.  
 
 
In this section, you will create a data grid Widget to be displayed alongside the map Widget.  It will show details about each state.  


'''Action: Perform the following steps to create a second Widget:'''
'''Action: Perform the following steps to create a second Widget:'''
Line 172: Line 172:
# '''In the “Name” box, enter “Northern_States_Info”'''
# '''In the “Name” box, enter “Northern_States_Info”'''
# '''For “Board”, select “USA_States_Stack”'''
# '''For “Board”, select “USA_States_Stack”'''
# '''Select the widget type “Tables” and select “Basic Table”'''
# '''Select the Widget type “Lists & Tables” and select “Basic Table”'''
# '''Click “Add Widget”'''
# '''Click “Add Widget”'''
# '''Perform the following on the “Configure” panel to configure the widget:'''
# '''Perform the following on the “Data” panel to configure the Widget:'''
#* '''For “Data Collection”, select “sample.Northern_States”'''
#* '''For “Data Collection”, select “sample.Northern_States”'''
#* '''Under “Columns”, click “Add”'''
#* '''Under “Columns”, click “Add Column”'''
#* '''Under “Data Field”, select “State”'''
#* '''Under “Data Field”, select “State”'''
#* '''For the "Renderer" and "Customize" columns, use the default values (no changes needed)'''
#* '''For the "Renderer" and "Customize" columns, use the default values (no changes needed)'''
#* '''Repeat steps B-C, until all of the fields are added and shown in the Preview panel below'''
#* '''Repeat steps 7.2-7.4, until all of the fields are added and shown in the Preview panel below'''
#* '''Click Next, Next, and Finish to exit the Widget configuration panels'''
#* '''Click Next, Next, and Finish to exit the Widget configuration panels'''
# '''Click Builder and observe that the board now shows a map widget and table widget'''
# '''Click Builder and observe that the Board now shows a map Widget and table Widget'''
 


==Layout==
==Layout==
Since you have created a dashboard with two widgets, you may want to organize how the widgets are presented on the screen.
Since you have created a dashboard with two Widgets, you may want to organize how the Widgets are presented on the screen.




[[File:board.png]] '''Action: Perform the following steps to modify the layout of a board:'''
[[File:Board.png]] '''Action: Perform the following steps to modify the layout of a Board:'''
# '''Grab the label bar of the lower widget and drag the lower widget above the upper widget until you observe a change in color.  Release the widget and observe that the order of the widgets is swapped.'''
# '''Grab the label bar of the lower Widget and drag the lower Widget above the upper Widget until you observe a change in color.  Release the Widget and observe that the order of the Widgets has been swapped.'''
# '''Grab the label bar of the lower widget and drag the lower widget to the right of the upper widget until you observe a change in color.  Release the widget and observe that the widgets are now side by side.'''
# '''Grab the label bar of the lower Widget and drag the lower Widget to the right of the upper Widget until you observe a change in color.  Release the Widget and observe that the Widgets are now side by side.'''
# '''Under “Board Options” in the left panel, choose “FreeFlowLayout”'''
# '''Under “Board Options” in the left panel, choose “FreeFlowLayout”'''
# '''Drag the widgets around to any desired layout configuration'''
# '''Drag the Widgets around to any desired layout configuration'''
# '''Grab the lower-right corner to make the widgets bigger or smaller'''
# '''Grab the lower-right corner to make the Widgets bigger or smaller'''




==Switching to a Child Board==
==Switching to a Child Board==
Every stack in AppBoard begins with a Top-Level board, sometimes referred to as a “Parent Board” or “Summary Board”.  The Board you created in the exercises above is a Top-Level Board.  You will often want actions on the Top-Level Board to launch Child Boards, which will present Widgets containing data that is filtered or more detailed in some way.
Every stack in AppBoard begins with a Top-Level Board, sometimes referred to as a “Parent Board” or “Summary Board”.  The Board you created in the exercises above is a Top-Level Board.  You will often want actions on the Top-Level Board to launch "Child Boards".  Child Boards present Widgets containing data that is filtered or more detailed in some way.


In this section, you will modify the action that occurs when the user clicks on a pin in the map.  Earlier, you configured the click action to filter the map to only display pins for states with population greater than 2,000,000 residents.  Now you will modify the action so that a new Board will be launched when a pin is clicked.  The new Board will display a data grid listing all of the counties for the state that was clicked on the map.
In this section, you will modify the action that occurs when the user clicks on a pin in the map.  Earlier, you configured the click action to filter the map to only display pins for states with a population greater than 2,000,000 residents.  Now you will modify the action so that a new Board is launched when a pin is clicked.  The new Board will display a data grid listing all of the counties for the state that was clicked on the map.


'''Action: Perform the following steps to create an action that will switch to a Child Board:'''
'''Action: Perform the following steps to create an action that will switch to a Child Board:'''
# '''Click Data Sources and create a new Data Source called “sample.USA_Counties” from the CSV file stateCounties.csv, with Primary Key = “CountyID”.'''
# '''Click Data Sources and create a new Data Source called “sample.USA_Counties” from the CSV file stateCounties.csv, with Primary Key = “CountyID”.'''
# '''Create a Data Collection called “sample.CountyData” with Data Source = “sample.USA_Counties”'''
# '''Under "File Path", enter "${application.home}/data/pkg/appboard/test/stateCounties.csv".'''
# '''Click Builder to display USA_States_Stack, containing a map and table widget'''
# '''Click Builder to display USA_States_Stack, containing a map and table Widget'''
# '''On the USA_Map widget, click the Actions (lightning bolt) icon to open the Actions editor in the Widget Wizard'''
# '''On the Northern_States_Map Widget, click the Actions (lightning bolt) icon to open the Actions editor in the Widget Wizard'''
# '''Click “x” to delete all of the existing actions'''
# '''Click “x” to delete all of the existing actions'''
# '''Perform the following steps to define a new action:'''
# '''Perform the following steps to define a new action:'''
#* '''Click the “+” next to “Add Action”'''
#* '''Click the “Add Event Action” button and select "Switch to a Board" from the drop-down list'''
#* '''For “On selection of”, select “sample.USA_states”'''
#* '''Next to “On selection of”, make sure you have selected "any" and “sample.USA_states.StateCapitals”'''
#* '''For “perform action”, select “Switch To a Board”'''
#* '''Click the “Add Board” button'''
#* '''Click the “Add Board” button'''
#* '''For “Title”, enter “County Table”'''
#* '''For “Title”, enter “County Table”'''
#* '''For “Parent Board”, select “USA_States_Stack”'''
#* '''For “Parent Board”, select “USA_States_Stack”'''
#* '''For “Context Data Type”, select “sample.USA_States”'''
#* '''Check the box next to “Context Data Type” and select “sample.USA_States.StateCapitals”'''
#* '''For “Context Label Field”, select “StateLabel”'''
#* '''For “Context Label Field”, select “StateLabel”'''
#* '''Click “Add Board” to exit the Add Board dialog'''
#* '''Click “Add Board” to exit the Add Board dialog.  Make sure the County Table Board is now selected in the Action.'''
#* '''Click the “+” next to “Add Action”'''
#* '''Click the “Add Event Action” button and select "Apply a Filter to a Data Collection" from the drop-down list'''
#* '''For “On selection of”, select “sample.USA_States”'''
#* '''For “On selection of”, select "any" and “sample.USA_States.StateCapitals”'''
#* '''For “perform action”, select “Apply a Filter to a Data Collection”'''
#* '''For “Filter data collection”, select “sample.USA_Counties.stateCounties”'''
#* '''For “Filter data collection”, select “sample.CountyData”'''
#* '''Click the “Add Rule” button and select “Widget Interaction Comparison”'''
#* '''Click the “+” next to “Add Rule” and select “Widget Interaction Comparison”'''
#* '''Select the following for the Widget interaction properties:'''
#* '''Select the following for the widget interaction properties:'''
#** '''“Selected Data has a Property”: “StateLabel” “=”'''
#** '''“Selected Data has a Property”: “StateLabel” “=”'''
#** '''“filtered data property”: “StateLabel”'''
#** '''“filtered data property”: “StateLabel”'''
# '''Click “Finish” to exit the Actions editor in the Widget Wizard'''
# '''Click “Finish” to exit the Actions editor in the Widget Wizard'''
# '''Click Widgets and create a new Widget called “County Data Table” on the Board “County Table” of type Basic Table'''
# '''Click Widgets and create a new Widget called “County Data Table” on the Board “County Table” and select the "Basic Table" option under the "Lists & Tables" tab'''
# '''Configure the Widget to display one or more fields from the Data Collection “sample.CountyData”'''
# '''Configure the Widget to display one or more fields from the Data Collection “sample.USA_Counties.stateCounties”'''
# '''Click Next, Next, and Finish to exit the Widget configuration panels'''
# '''Click Next, Next, and Finish to exit the Widget configuration panels'''
# '''Click Builder to again display USA_States_Stack, containing the map and table widget'''
# '''Click Builder to again display USA_States_Stack, containing the map and table Widget'''
# '''Click on a pin in the map, and observe that AppBoard launches a child board displaying the county data for those counties in the state that you selected'''
# '''Click on a pin in the map, and observe that AppBoard launches a child Board displaying the county data for those counties in the state that you selected'''
 


==Conclusion==
==Conclusion==
Line 238: Line 234:


Next, you may want to create some data files that replicate the type of data that you will be using to build AppBoard visualizations.  Once you have created some visualizations from sample data, you can then change the data source to be your live data source or feed, and exercise the full capability of AppBoard.
Next, you may want to create some data files that replicate the type of data that you will be using to build AppBoard visualizations.  Once you have created some visualizations from sample data, you can then change the data source to be your live data source or feed, and exercise the full capability of AppBoard.
==Next Steps==
To create users in the system, and assign the USA States sample stack to those users, continue to the [[enportal/old/provisioning_quick_start|Provisioning Quick Start Tutorial]] page.

Latest revision as of 06:51, 17 July 2014

Audience

The audience of this guide is a beginning AppBoard dashboard developer, or anyone interested in learning about the basic capabilities of AppBoard.


Overview

The Getting Started guide will present an overview of the major components in the AppBoard system, and walk you through creating your first dashboard. This guide is designed to provide a quick survey of the system, and it should take no more than 30 minutes to run through the examples provided. Links will be provided to more detailed documentation for each component of the system.


Installation

The AppBoard system requires that a turnkey server is installed on an AppBoard server by a system administrator. This guide assumes that the installation has been completed and you are able to access the AppBoard builder in a web browser. For help with Installing AppBoard, see Installation.


The requirements for running the AppBoard Builder are:

  1. A supported web browser running a supported version of Flash player. To check the supported versions, see System Requirements
  2. Connectivity to the AppBoard data server

Accessing the Builder

Builder.png In your browser, you can navigate to the home URL of your AppBoard system. This will be a URL such as http://appboardhost:8080/enportal/visualizer/Appboard_Builder.html. If you are prompted to log in, use the following default administrator credentials:

Username: administrator

Password: administrator

Domain: System

Template-tip.png
Case is important when logging in to AppBoard


Action: In your browser, navigate to the AppBoard home URL and log in to AppBoard.

Exercise Summary

In this exercise, you will go through all of the major steps for building a visualization suite in AppBoard:

  1. Connecting to a data source
  2. Creating a filtered data collection
  3. Creating a dashboard
  4. Adding Widgets to a dashboard
  5. Re-arranging the layout of a dashboard
  6. Configuring actions to trigger changes to a Widget and launching other dashboards


For this example, two sample data files are provided as part of the AppBoard product installation. One file lists the states in the United States of America and contains data such as population and map coordinates of the state capital. The other file lists the counties within each state, along with sample data for each county. This data provides an easy way to get started with AppBoard, without having to spend time gathering database information or connecting to a server.


The goals of this exercise are the following:

  1. Create a Board displaying a US map, with pins on the state capitals, as well as an associated data grid displaying detailed information about each state
  2. Configure an action to filter the pins on the map to only display for Northern states with a large population
  3. Re-arrange the layout of the Widgets
  4. Configure an action to launch a new Board when a pin is clicked on the US map, displaying a data grid listing the counties in the state that was clicked


Data Sources

The first step in creating a dashboard is defining a data source that will be used by the Widgets. The “Data Sources” Builder Mode displays the Data Source Administration panel, where you can add and edit data sources.

Data Sources define connections to data warehouses, such as databases, file systems, web services and system APIs. The basic purposes of a Data Source are to define a connection to the outside data, provide an Appboard "namespace" for the data, and provide security measures such as filtering the incoming data.

In this section, you will create a mapping in AppBoard to a data source file. The file is a table of comma-separated-values (CSV) that lists the states in the United States of America and contains data such as population and map coordinates of the state capitals.

Action: Click Data Sources to display the Data Source Administration panel


AppBoard supports a variety of data sources. You can also write your own custom data adapters, if needed. In this guide, a sample CSV file will be used as a data source.


Datasource.png Action: Perform the following steps to add a data source:

  1. Click the Add button
  2. In the “Name” box, enter “sample.USA_States”
  3. For the adapter type, select “File”
  4. Under the file type, select “CSV File”
  5. Click the “Add Data Source” button. The “Connect” screen will be displayed.
  6. Under “File Path”, enter “${application.home}/data/pkg/appboard/test/stateCapitals.csv”
  7. Click Next. The “Explore” screen will be displayed with a list of data files found.
  8. Under “Primary Key” for the "stateCapitals" folder, click the Edit button and select “StateID”
  9. Click Next. The “Associate” screen will be displayed
  10. Click Finish and click OK on the "Success" dialog. Now on the Data Sources page under the Data Source Administration panel, confirm that the Data Source “sample.USA_States” is now listed.


Associations are logical connections between two pieces of data; often referred to as "foreign-keys" in databases. For example, a collection of records about the individual states within the United States could be associated with a collection of records about the individual counties in each state. The county would have a "stateId" field would define the state in which the county resides. Therefore a one-to-many association can be created between a state and counties.

Data Collections

A "Data Collection" is a group of data sources that are available for the Widgets in the system to use. Every time a Data Source is created, a Data Collection is made using all of the data from the data source. Creating your own Data Collections allows you to configure filtered data sets from the raw data in a Data Source. For example, you can create server-side or client-side filters that restrict the data that will go into your Widgets.

In this section, you will create a filtered data collection from your raw data source. The filter will select the states in the Northern part of the USA.

Datacollection.png Action: Perform the following steps to add a Data Collection:

  1. Click Data Collections to display the Data Collections panel
  2. Click the Add button
  3. In the “Data Collection Name” box, enter “sample.Northern_States”
  4. For Data Source, select “sample.USA_States.StateCapitals”
  5. Click Next. The “Client Side Filter” screen will be displayed
  6. Click the "Add Rule" button and select “Simple Property Comparison”
  7. For “Property”, select “Latitude”
  8. For the comparison type, select “>”
  9. In the “Value” box, enter 40
  10. Click Finish
  11. In the Data Collections panel, confirm that the “sample.Northern_States” collection is listed
  12. Click the “Preview” button in the row of the new data collection to launch the data viewer. Observe that there are 23 rows representing states with latitude greater than 40.

Stacks and Boards

A "Board" represents a dashboard of information. Each Board will consist of one or more Widgets. A Board typically displays a suite of information that is related in some meaningful way, and which will be appropriate to present as a visualization to an AppBoard end-user.

A "Stack" is a collection of Boards that contain related information. For example, a Stack named "States" might have two boards, one that lists all of the states in the US and another Board that shows only the details of a single state. Stacks are generally used for drill-down purposes. Clicking on a state in the US level Board would reveal the details of that state in the single state details Board.

In this section, you will create a Stack (and a Top-Level Board) that will be used for displaying Widgets with information about the states in the USA.

Stack.png Action: Perform the following steps to create a Stack:

  1. Click Stacks and Boards to display the Stacks and Boards Administration panel
  2. In the left panel, under “Quick Actions”, click the “Add Stack” item
  3. For “Top-Level Board Title”, enter “USA_States_Stack”
  4. Click the "Add Stack" button
  5. Confirm that the Stack “USA_States_Stack” is now listed in the Stacks and Boards Administration panel
  6. In the left panel, click “Builder” to display the empty Stack


Widgets

A "Widget" is a visual element that can be placed on a Board. For example, the "Data Grid Widget" gives a visual representation of tabular data in a familiar spreadsheet format. Boards contain one or more Widgets, each displaying part (or all) of the data to be visualized. Widgets are viewed by the Widget wizard or during the Boards step by the Stacks & Boards wizard. These wizards are invoked via links in the left side tool palette of the Appboard Builder interface.

In this section, you will create a map Widget that displays a USA map. You will place pins on the map where the state capitals are located for the northern states only. You will then configure an action to filter the display when one of the pins is clicked, to only show states with a total population that is greater than 2,000,000 residents.

Widget.png Action: Perform the following steps to create a Widget:

  1. Click Widgets to display the Widgets Administration panel
  2. Click the “Add” button to create a new Widget
  3. In the “Name” box, enter “Northern_States_Map”
  4. For “Board”, select “USA_States_Stack”
  5. Select the Widget type “Maps” and select “Vector Map”
  6. Click “Add Widget”
  7. Perform the following on the “Data” panel to configure the Widget:
    • For “Data Collection”, select “sample.Northern_States”
    • For "Map Type" select "US"
    • For “Adornment Label Field”, select “Capital”
    • For “Latitude Field”, select “Latitude”
    • For “Longitude Field”, select “Longitude”
    • Observe that some data points are now displayed in the preview panel
    • You may change the default pin shape and color here. You may also add filters that determine the pin appearances.
    • Click “Next”. The “Trouble Bubble” screen will be displayed
    • Click “Next”. The “Options” screen will be displayed
    • Click “Next”. The “Actions” screen will be displayed
    • Click the “Add Event Action” button and select "Apply a Filter to a Data Collection" from the drop-down list
    • Next to “On selection of”, make sure "any" and “sample.USA_states.StateCapitals” are selected
    • For “Filter data collection”, select “sample.Northern_States”
    • Click the “Add Rule” button and select “Simple Property Comparison”
    • For “Property”, select “Population”
    • For the comparison type, select “>”
    • In the “Value” box, enter 2000000
    • Add a second Rule in the same manner, setting “Latitude” “>” “40”
    • Click Finish
  8. On the main panel, click “Builder” to display the “USA_States_Stack” stack. Observe the Widget displaying the Northern states.
  9. Click on a pin in the map to activate the event which will filter the map to only display capitals for northern states with a Population > 2,000,000
  10. Click the Edit button to additionally edit the widget colors and other presentation elements


In this section, you will create a data grid Widget to be displayed alongside the map Widget. It will show details about each state.

Action: Perform the following steps to create a second Widget:

  1. Click Widgets to display the Widgets Administration panel
  2. Click the “Add” button to create a new Widget
  3. In the “Name” box, enter “Northern_States_Info”
  4. For “Board”, select “USA_States_Stack”
  5. Select the Widget type “Lists & Tables” and select “Basic Table”
  6. Click “Add Widget”
  7. Perform the following on the “Data” panel to configure the Widget:
    • For “Data Collection”, select “sample.Northern_States”
    • Under “Columns”, click “Add Column”
    • Under “Data Field”, select “State”
    • For the "Renderer" and "Customize" columns, use the default values (no changes needed)
    • Repeat steps 7.2-7.4, until all of the fields are added and shown in the Preview panel below
    • Click Next, Next, and Finish to exit the Widget configuration panels
  8. Click Builder and observe that the Board now shows a map Widget and table Widget

Layout

Since you have created a dashboard with two Widgets, you may want to organize how the Widgets are presented on the screen.


Board.png Action: Perform the following steps to modify the layout of a Board:

  1. Grab the label bar of the lower Widget and drag the lower Widget above the upper Widget until you observe a change in color. Release the Widget and observe that the order of the Widgets has been swapped.
  2. Grab the label bar of the lower Widget and drag the lower Widget to the right of the upper Widget until you observe a change in color. Release the Widget and observe that the Widgets are now side by side.
  3. Under “Board Options” in the left panel, choose “FreeFlowLayout”
  4. Drag the Widgets around to any desired layout configuration
  5. Grab the lower-right corner to make the Widgets bigger or smaller


Switching to a Child Board

Every stack in AppBoard begins with a Top-Level Board, sometimes referred to as a “Parent Board” or “Summary Board”. The Board you created in the exercises above is a Top-Level Board. You will often want actions on the Top-Level Board to launch "Child Boards". Child Boards present Widgets containing data that is filtered or more detailed in some way.

In this section, you will modify the action that occurs when the user clicks on a pin in the map. Earlier, you configured the click action to filter the map to only display pins for states with a population greater than 2,000,000 residents. Now you will modify the action so that a new Board is launched when a pin is clicked. The new Board will display a data grid listing all of the counties for the state that was clicked on the map.

Action: Perform the following steps to create an action that will switch to a Child Board:

  1. Click Data Sources and create a new Data Source called “sample.USA_Counties” from the CSV file stateCounties.csv, with Primary Key = “CountyID”.
  2. Under "File Path", enter "${application.home}/data/pkg/appboard/test/stateCounties.csv".
  3. Click Builder to display USA_States_Stack, containing a map and table Widget
  4. On the Northern_States_Map Widget, click the Actions (lightning bolt) icon to open the Actions editor in the Widget Wizard
  5. Click “x” to delete all of the existing actions
  6. Perform the following steps to define a new action:
    • Click the “Add Event Action” button and select "Switch to a Board" from the drop-down list
    • Next to “On selection of”, make sure you have selected "any" and “sample.USA_states.StateCapitals”
    • Click the “Add Board” button
    • For “Title”, enter “County Table”
    • For “Parent Board”, select “USA_States_Stack”
    • Check the box next to “Context Data Type” and select “sample.USA_States.StateCapitals”
    • For “Context Label Field”, select “StateLabel”
    • Click “Add Board” to exit the Add Board dialog. Make sure the County Table Board is now selected in the Action.
    • Click the “Add Event Action” button and select "Apply a Filter to a Data Collection" from the drop-down list
    • For “On selection of”, select "any" and “sample.USA_States.StateCapitals”
    • For “Filter data collection”, select “sample.USA_Counties.stateCounties”
    • Click the “Add Rule” button and select “Widget Interaction Comparison”
    • Select the following for the Widget interaction properties:
      • “Selected Data has a Property”: “StateLabel” “=”
      • “filtered data property”: “StateLabel”
  7. Click “Finish” to exit the Actions editor in the Widget Wizard
  8. Click Widgets and create a new Widget called “County Data Table” on the Board “County Table” and select the "Basic Table" option under the "Lists & Tables" tab
  9. Configure the Widget to display one or more fields from the Data Collection “sample.USA_Counties.stateCounties”
  10. Click Next, Next, and Finish to exit the Widget configuration panels
  11. Click Builder to again display USA_States_Stack, containing the map and table Widget
  12. Click on a pin in the map, and observe that AppBoard launches a child Board displaying the county data for those counties in the state that you selected

Conclusion

In this exercise, you have connected to data sources, created boards, and configured actions. This is the essence of AppBoard. Hopefully you have seen that data visualizations can be easily built and modified using the AppBoard Builder.

Next, you may want to create some data files that replicate the type of data that you will be using to build AppBoard visualizations. Once you have created some visualizations from sample data, you can then change the data source to be your live data source or feed, and exercise the full capability of AppBoard.


Next Steps

To create users in the system, and assign the USA States sample stack to those users, continue to the Provisioning Quick Start Tutorial page.