Tworzenie raportu KPI z bazy danych .s3db (edycja .xml)
Jeśli tworzysz raport KPI na podstawie szablonu i masz dane w bazie danych .s3db, musisz dodać pola, edytując plik .xml w uwadze ++ (lub innym edytorze).
Procedura
1) dowiedz się, czy xml zawiera niezbędną tabelę, z której chcę rysować dane, jeśli nie, dodaj ją do <Nazwa tabeli="xxx" />
<Query Type="SelectQuery" Name="ServedJobStatistics">
<Tables>
<Table Name="ServedJobStatistics" />
<Table Name="SolutionStatistics" />
<Table Name="RouteStatistics" />
<Relation Type="Inner" Parent="ServedJobStatistics" Nested="SolutionStatistics">
<KeyColumn Parent="Solution" Nested="OID" />
</Relation>
<Relation Type="Inner" Parent="ServedJobStatistics" Nested="RouteStatistics">
<KeyColumn Parent="Route" Nested="OID" />
</Relation>
</Tables>
2) dodam nazwy niezbędnych kolumn
<Columns>
<Column Table="ServedJobStatistics" Name="Latitude" />
<Column Table="ServedJobStatistics" Name="Longitude" />
</Columns>
3) dodaj format danych dodanej kolumny
<ResultSchema>
<DataSet Name="SQL Data Source 1">
<View Name="ServedJobStatistics">
<Field Name="Latitude" Type="Decimal" />
<Field Name="Longitude" Type="Decimal" />
</View>
</DataSet>
</ResultSchema>