When a user creates a new dashboard in the designer, you can automatically register data for it through the onCreateReport event.

Preparing the data. Read or create the data source, register it in the dashboard dictionary, synchronize the schema, and render with the supplied records.
$designer->onCreateReport = 'onCreateReport';
$designer->process();
function onCreateReport(args) {
    let dataSet = new Stimulsoft.System.Data.DataSet("Demo");
    dataSet.readJson(jsonData);
    args.report.regData("Demo", "Demo", dataSet);
    args.report.dictionary.synchronize();
}
The handler runs whenever a new dashboard is created, registering a dataset so authors start with the right data.

Используя этот сайт, вы соглашаетесь на использование файлов Cookie для аналитики и персонализированного контента. Файлы Cookie хранят полезную информацию на вашем компьютере, чтобы помочь нам повысить эффективность и удобство использования. Для получения дополнительной информации, пожалуйста, прочтите Конфиденциальность и Использование Cookie.