Tea Houses Demo¶
For this portion of the tutorial, we will explore the Tea Houses demo. Select the tab labeled Tea and press Launch Demo.
The Tea Houses demo is a fictional collection of Tea Houses in Benin and the teas they offer.
The first screen you will see after launching the Tea Houses demo is a custom view.
Custom views are not limited to navigation and workflow interfaces. They can also be used to view data, create data visualizations, and modify data in the database. The Plot Demo and JGI Demo explore this more fully.
Press the button labeledto launch the List View of the available teas.
To see the raw data, we will switch to Spreadsheet View. Tap on the lined paper icon at the top of the screen. Here you’ll see all the possible view types. Select.
Return to the List View by using the lined paper icon as before and selecting. Tap the tea to launch a Detail View for that tea.
Next, we will see a combination of the detail and list view options. Back out until you hit the custom view with the three buttons. .. _tables-sample-app-detail-view-learn-more:
Detail With Sublist View¶
From the custom view with the three buttons, select View Tea Houses. This will launch another List View, this time showing the list of tea houses.
The Tea Houses table has been configured to use a Detail With Sublist View rather than a Detail View. Tap the Tea for All tea house to see this.
The bottom half of the screen renders the subordinate List View, which shows the list of teas available at the Tea for All teahouse. It is a separate page that is controlled by the top half.
Next we will see the Map View. Back out of the Detail With Sublist View to see the list of tea houses. Press the lined paper icon and choosefrom the menu.
All the fictional tea houses in Benin appear on the map. Pinch and squeeze or widen to zoom out and in, respectively. The tea house location is plotted based on what appeared in the Location_latitude and Location_longitude columns in the database. These can be viewed with the Spreadsheet View. When you click on a map marker, the List View will redraw with that marker's information at the top of the List View.
Edit Row With Survey¶
The final portion of the Tea Houses demo will be to edit data with Survey. Return to the List View by using the lined paper icon as before and selecting. Tap the tea house to launch a Detail With Sublist View for that tea. Tap the pencil icon in the upper right.
This will launch Survey to edit the Tea for All row in the Tea Houses data table.
This Survey form allows you to edit any and all of the data fields in the Tea for All entry. Navigate to the question that reads:
Which tea is the house specialty
Change the specialty to be Herbal. Complete the form and finalize the changes. When you return to the Tea for All detail page you will see the house specialty has been updated to Herbal.
Similarly, this action can be taken from a List View by using the + button in the upper right.
Tables and Survey are built to integrate seamlessly. Data can be visualized in Tables and edited in Survey, with your organizations complex workflow moving between as needed. A more complex example of this will be shown later in this tutorial with the Hope Demo.
This concludes the Tea Houses demo. Next we will open the Geotagger Demo.