devexpress-reporting
Version:
DevExpress Reporting provides the capability to develop a reporting application to create and customize reports.
26 lines (25 loc) • 973 B
JavaScript
/**
* DevExpress HTML/JS Reporting (designer\internal\errorPanel\_designerErrorProvider.js)
* Version: 24.2.6
* Build date: Mar 18, 2025
* Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED
* License: https://www.devexpress.com/Support/EULAs/universal.xml
*/
import { sendRequest } from '@devexpress/analytics-core/analytics-internal';
import { Disposable, PrepareRequestArgs } from '@devexpress/analytics-core/analytics-utils';
import * as ko from 'knockout';
import { HandlerUri } from '../../utils/settings';
export class DesignerErrorProvider extends Disposable {
collectErrors() {
return sendRequest(HandlerUri(), 'getDesignErrors', PrepareRequestArgs({
'XtraReportsLayoutSerializer': this._report.serialize()
})).done((result) => {
this.errors(result);
});
}
constructor(_report) {
super();
this._report = _report;
this.errors = ko.observableArray([]);
}
}