Genpact Cora Knowledge Center

Support

Add a Dashboard to a Form

Overview

It is helpful to include a dashboard in a form to help end users better understand a statistic, situation, and so on.

Use the following code to add a dashboard to a form.

Example

<%@ Control %>
<%@ Register TagPrefix="sq" TagName="AnalyticsDashboardControl"
 Src="~/_controltemplates/Flowtime/AnalyticsDashboardControl.ascx" %>
<sq8:Form runat="server" ID="Form1" DataSourceID="Form1DataSource" DataKeyNames="fldId" RenderMode="PlaceHolder"><ContentTemplate>
 <div class="sqf-layout">
 <div class="sqf-layout-row sqf-header">
 <h1><sq8:Text runat="server">Task1</sq8:Text></h1>
 <small><sq8:Text runat="server">Form description...</sq8:Text></small>
 </div>
 <div class="sqf-layout-row sqf-section">
 <div class="sqf-section-body sqf-container">
 <div class="sqf-row">
 <div class="sqf-col-xs-12 sqf-control-group-v">
 <sq:AnalyticsDashboardControl runat="server" ID="AnalyticsDashboardControl" Transport="flowtime" ThemeName="Default" Mode="Auto" DataStreamName="Default/!!!AdvancedTiles" Layout="!!!AdvancedTiles"></sq:AnalyticsDashboardControl>
 </div>
 </div>
 </div>
 </div>