Creating Context-Enabled Tiles

The dashboard header component will pass all context values as query string parameters to all tiles on the fluid dashboard. Each tile can consume zero, one, or more of these query string parameters. In the component or iScript definition for the tile, use the QueryString property or the GetParameter method of the Request class to get the query string parameters passed by the dashboard header component.

Application developers can create tiles that are dynamically loaded into a section using the DynamicLoader application class. When a dynamic tile is created using the AddContentText() or AddContentHTML() method to provide content for the tile, this type of dynamic tile is not a context-enabled tile because it cannot consume the context values passed as query parameters from the dashboard header component. However, a dynamic tile can be a context-enabled tile if the tile's content is provided through a URL that uses the grouplet content URL setting that can consume the context values passed as query parameters from the dashboard header component.

In the following example, the dynamic tile uses the grouplet content URL to get the content:

&oTile = %This.CreateTileUsingTab("", "Information");
  &oTile.RowNum = %This.GetNextRowNumber();
  &oTile.GltURLType = "USCR";
  /* Tile content from URL */
  &oTile.GltContentUrl = GenerateScriptContentURL(%Portal, %Node, Record.WEBLIB_QENUI, Field.FUNCLIB, "FieldFormula", "IScript_GroupletDiag");
  %This.AddTileToSection(&oTile);