Skip to content

Mission 9 - Multi Page Apps

Estimated time for completing this mission: 15 mins

Learning Objective

Learn to use multiple pages for your app using the header menu.

Background Information

In order to build complex apps it can be useful to create multiple pages.

BLOX used in this mission:

Logic BLOX

  • MyData/FinalData
  • Basics/Start
  • Database/Table
  • Database/GroupBy
  • Charts/Line Chart

App BLOX

  • Table
  • Chart
  • Panel
  • Label
  • Button (2x)

Goal

startBlox

Chart Page

startBlox

Table Page

startBlox

Chart Logic View

startBlox

Table Logic View

Data

We will use FinalData from the earlier missions. If you would like to download the data set, click here: FinalData.xlsx.

Steps

Please refer to Navigation Guide to perform the steps below

App Designer:

Switch pages

  1. Create a new app called Multi Page in the Module4 folder
  2. Create two pages via the left side bar
  3. drawing
  4. Place two buttons into the header area on top of the canvas
  5. Enter the header logic on top of the logic section on the left side bar
  6. Connect each button with its desired page. You can do this by double-clicking on each button and then select Go to Page for the "Action On Click" field and then chose the target page from the "Go to page" field
  7. drawing
  8. Add a logic for each page as shown in the previous missions
  9. One should output a line chart of the sales and the other should output a table
  10. As a challenge, you have to create a table containing "STATUS", "ORDERDATE" and "SALES" from the final dataset
  11. Hint Take a look at the screenshot above to implement the table logic. Select the three columns as outputs, connect them to a "Table" BLOX and then connect the result to a "Page/Table" component.
  12. Then, implement the other logic according to the image above (one with the line chart)
  13. In the "Group By" BLOX, specify ORDERDATE and sum as parameters
  14. Next, in the "Line Charts" BLOX, specify X as "ORDERDATE", Y as "SALES" and set the first two options to yes
  15. Finally, run the app and test the navigation buttons to switch pages

Results and Summary

Resulting App

Well done! Now let's move on to the next mission!