Tworzenie raportu KPI z bazy danych .s3db (edycja .xml)

Z Solvertech
Verze z 30. 9. 2022, 12:06, kterou vytvořil Jana.safferova (diskuse | příspěvky) (založena nová stránka s textem „<span style="color: rgb(51,153,102);"><Query Type="SelectQuery" Name="ServedJobStatistics"></span><br /> <span style="color: rgb(51,153,102);"> <Tables></span><br /> <span style="color: rgb(51,153,102);"> <Table Name="ServedJobStatistics" /></span><br /> <span style="color: rgb(51,153,102);"> <Table Name="SolutionStatistics" /></span><br /> <span style="color: rgb(51,153,102);"> <Table…“)
(rozdíl) ← Starší verze | zobrazit aktuální verzi (rozdíl) | Novější verze → (rozdíl)
Skočit na navigaci Skočit na vyhledávání
Jiné jazyky:

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>