Kde se definuje HTML pro vypis v přehledu všech reportů
Dále tam je potřeba definovat elementy Description a Title jako v hlavičce
xml co se zobrazuje v detailu reportu nebo resource TitleResourceKey="TicketBasicReport" DescriptionResourceKey="TicketBasicReportDescription"
Definice funkce
V definici reportu je sekce Selection
<Section xsi:type="ItemSection">
<HTMLTemplate>
<div class="card card-body bg-danger-400
has-bg-image">
<div class="media mb-3">
<div class="media-body">
<h6 class="font-weight-semibold mb-0">Services status</h6>
<span class="opacity-75">April, 19th</span>
</div>
<div class="ml-3 align-self-center">
<i class="icon-pulse2 icon-2x"></i>
</div>
</div>
<div class="progress bg-danger-600 mb-2"style="height:
0.125rem;">
<div class="progress-bar bg-white"style="width: 80%">
<span class="sr-only">80% Complete</span>
</div>
</div>
<div>
<span class="float-right">80%</span>
Partly operational
</div>
</div>
</HTMLTemplate>
</Section>
Definice fuknce
Dále je definována sekce pro detail reportu
<Section xsi:type="ContentSection">
<DataSources>
<DataSourceIdent="CountUser">
<SQL>
SELECT COUNT(ID) as CountUser FROM
dbo.Account WHERE [State] = 1 #FILTER#
</SQL>
</DataSource>
<DataSource Ident="Main">
<SQL>
SELECT ID, FullName, Email FROM
dbo.Account WHERE [State] = 1 #FILTER#
</SQL>
</DataSource>
</DataSources>
<HTMLTemplate>
<div class="row">
<div class="col-md-12">
Pocet: [FOR
Source="CountUser"][%CountUser%][/FOR]
</div>
</div>
<table>
<tr>
<th>ID</th>
<th>Jmeno</th>
<th>Email</th>
</tr>
[FOR Source="Main"]
<tr>
<td>[%ID%]</td>
<td>[%FullName%]</td>
<td>[%Email%]</td>
</tr>
[/FOR]
</table>
</HTMLTemplate>
</Section>