Dynamically Changing Tile Color
  • 12 May 2022
  • 1 Minute to read
  • Dark
    Light

Dynamically Changing Tile Color

  • Dark
    Light

Article Summary

Example Lab Article
While Example Lab projects are resources for public use, articles and assets are not actively maintained. Screenshots and features are from the specified version below. These references may become dated as new versions are released.


Overview

Example Lab Details

Version8.1.0 Revision 69234
Root FolderDynamic Tile Color
Modules None
DependenciesNone

This Example Lab project demonstrates how to create and update the background color of a Tile based on its selection.


Explanation

This example contains two Reports, a Page and a Flow. The Page contains a Simple Tiles and Report Viewer control. The Simple Tiles control contains the Flow that generates two Tiles and sets a Report in the Report Viewer, In the Flow, the Get Page Variable step is used to retrieve the Report ID. The Create Data step creates two DesignerColor objects, which will be mapped to the two tiles. The String Match step checks if the retrieved Report ID matches with the Data Bus Value for the Create Tile Data steps. If a match is found, the Set Tile steps will update the DesignerColor objects, which are then mapped in the Create Tile Data steps, updating the background color for the tile. In addition, the related Report will be shown in the Report Viewer.

Reference Articles


Project Download

The examples attached were developed to be instructional and were not developed as officially supported components. For more information or to engage our service team to develop fully supported, production quality solutions, please contact services@decisions.com. Import the project below to a Decisions environment on version 8.1 or later using our Importing/Exporting article.





Was this article helpful?