Icon

01.Game_Data_App - Solution

In this exercise you will finalize a Game Data App adding the Page 3-Form and Page 4-Dashboard. You will practice the creation of a component, view customization using CSS, the configuration of the Flow Chart View and the creation of a simple interactive dashboard.
Annotations and comments
  • Session 3 - Building and Deploying a WebPortal Data App Exercise 01.Game_Data_App
  • Learning objective: In this exercise you'll learn how to build and deploy a data app with components, CSS customization, interactivity, and other configurations. Workflow description: This workflow finishes the implementation of a Game Data App by adding the Page 3-Form, and Page 4-Dashboard. The result is a customized and interactive application that is ready to be deployed as a data app on KNIME Business Hub. You'll find the instructions to the exercises in the yellow annotations.
  • The first two pages are already configured. Page 1 shows a Welcome page while setting up the game session, and Page 2 let the user play the game (3 iterations)
  • Page 3 Show match results and collect user feedback
  • Page 4a Show an interactive dashboard with game statistics
  • Page 1 Set up the match
  • Page 2 Play the game
  • (Optional) Page 4b
  • Step 8. Deployment Upload this workflow to KNIME Business Hub Right click the workflow in the Space Explorer and select Upload to Hub. Make sure to reset the workflow before upload In the Hub browser UI Create a new space version of the space containing the workflow Create a deployment of this workflow as Data app Execute the Data app from the list of deployments
  • Step 7. Validate user input data You want to check whether the user entered valid data or just left the default entries. With a Row Filter node, remove the entry if the email address is "example@email.com" (default) Define a conditional path by adding an Empty Table Switch node. Connect the first port of the Empty Table Switch node (non-empty table) to Page 4a - the user sees the dashboard Connect the second port of the Empty Table Switch node (empty table) to Page 4b - the user sees an error message
  • Table style
  • syntax check
  • correct syntax
  • Header
  • css_header
  • colors
  • image size
  • logo image in base64 format.
  • predefined colors text
  • predefined colors background
  • predefined colors flowchart bg
  • predefined colors flowchart activation
  • Background Color Code
  • image base64 format
  • text Color Code
  • flowchart bg Color Code
  • flowchart activation Color Code
  • newsletter
  • scan values
  • age
  • rate
  • sort alphabetically
  • feedback
  • First name
  • Last name
  • Email
  • read countries
  • Provide info
  • rate text
  • country
  • use dummy data if no current match results
  • read local match_results.csv
  • round score
  • dummy results
  • column rename
  • user journey data
  • Show match results
  • Trigger: Location information column should contain unique values.
  • Information column
  • color axis column
  • location Information Column
  • JS Map
  • select theme
  • Region
  • select resolution
  • Chart title
  • Chart subtitle
  • library
  • Display wrong or correct attempts
  • wrong/correct
  • pivot correct
  • check table spec (wrong/correct att. cols might be missing)
  • read internal match_results.csv
  • replace internal match_results.csv
  • 0: incorrect 1: correct 2: missing answer
  • Compare guess
  • Incorrect
  • Correct
  • Points=maxIterations
  • Points = -1
  • Points=0
  • Enable username and session variables
  • rename to correct-name
  • Select image column
  • Select names column
  • Show image
  • Filter first entry
  • Export correct name
  • score so far
  • calculate current round
  • Rename names column
  • list options
  • number of options
  • n-options -1
  • missing-answer
  • shuffle options
  • Randomize entries
  • default: 0 for first execution
  • Display round number
  • Display current score
  • use first active input if both of them are active
  • append to existing results
  • don't write same row twice
  • extract ordered column names
  • fix column order
  • exclude if missing-answer==1
  • current match results
  • check if email changed from default
  • results_match_spec.csv for table structure
  • write new results_match.csv used for this match
  • rename column to username
  • unique session identifier with date&time
  • upload dataset
  • display game logo
  • Read logo
  • read default file
  • Welcome message
  • context.workflow.user

Nodes

Extensions

Links