ReportDesignerClientSideModelGenerator.GetJsonModelScriptAsync(String, IDictionary<String, Object>, String, String, String, ClientSideModelSettings) Method
Asynchronously generates a client-side Report Designer model based on specified data and serializes this model to JSON.
Namespace: DevExpress.XtraReports.Web.ReportDesigner
Assembly: DevExpress.XtraReports.v24.2.Web.dll
NuGet Package: DevExpress.Web.Reporting.Common
#Declaration
public Task<string> GetJsonModelScriptAsync(
string reportUrl,
IDictionary<string, object> dataSources,
string controllerUri,
string previewControllerUri,
string queryBuilderControllerUri,
ClientSideModelSettings settings
)
#Parameters
Name | Type | Description |
---|---|---|
report |
String | A URL of report that the Report Designer opens. |
data |
IDictionary<String, Object> | A dictionary of data sources available in the Report Designer. |
controller |
String | The URI of the controller action that processes Report Designer requests. |
preview |
String | The URI of the controller action that processes Report Designer preview requests. |
query |
String | The URI of the controller action that processes Query Builder requests. |
settings | Client |
The settings of the client-side Report Designer model. |
#Returns
Type | Description |
---|---|
Task<String> | A task that returns a JSON representation of the client-side Report Designer model. |