Skip to main content
All docs
V25.1
  • 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.v25.1.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
    reportUrl String

    A URL of report that the Report Designer opens.

    dataSources IDictionary<String, Object>

    A dictionary of data sources available in the Report Designer.

    controllerUri String

    The URI of the controller action that processes Report Designer requests.

    previewControllerUri String

    The URI of the controller action that processes Report Designer preview requests.

    queryBuilderControllerUri String

    The URI of the controller action that processes Query Builder requests.

    settings ClientSideModelSettings

    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.

    See Also