Cloud
Cloud-Dienstleistung für schnelle und effektive Analyse und Visualisierung von Daten für Ihr Business ohne eigene Applikationen zu erstellen oder zu programmieren.
@Component({
selector: "creating-new-data-connection-from-code",
imports: [Viewer],
template: `<sti-viewer [report]="report"></sti-viewer>`
})
export class CreatingNewDataConnectionFromCode {
report: Stimulsoft.Report.StiReport;
constructor() {
this.report = new Stimulsoft.Report.StiReport();
this.report.loadFile("Reports/SimpleList.mrt");
this.report.dictionary.clear();
var database = new Stimulsoft.Report.Dictionary.StiJsonDatabase("Demo", "Data/Demo.json");
this.report.dictionary.databases.add(database);
this.report.dictionary.synchronize();
}
}StiJsonDatabase is created with a name and a path to the JSON file, added to dictionary.databases, and dictionary.synchronize() rebuilds the data schema so the report can bind to it.