Video tile :: configuration examples

Ex 1 : Embed a video from a platform

Use this video tile to embed a video from Youtube, Vimeo, or Dailymotion. Choose a video provider from the drop-down menu, and copy/paste the video ID (series of numbers and letters that can be found in the URL of the video)

tile_video
id: ""
name: "Toucan Toco"
type: "video"
provider: "youtube"
videoId: "TmY_8E6WobA"

Ex 2 : Video from report selection

You might want to change your video depending on the selected report ! No worries we have a way to do just that :)

Use the following steps :

  • Add a new column in your reports/views dataset. Let’s call it “VideoID” for the example. For each value of your reports/views dataset, add in this new column the ID of the video you want to display.
  • Create a video type tile
  • Change the videoID to : <%= appRequesters.report.VideoID %>
  • This syntax is called templating : take a look at our documentation to see how it works :)
  • What you have to know : Make sure you have a “VideoID” column in the dataset containing your reports/views and that the option completeObjectMode is on true in your report configuration in the optional parameters (see image).
complete object mode option

The complete object mode will allow you to select values from any of your report dataset column using templating. Your “VideoID” column should contain the exact name of your VideoIDs.

country VideoID
France TmY_8E6WobA
USA tlw_SokMbEQ

There you go :) When you will select a report, the video will change.