Table of Contents

EntityViewParameters option

Overview

The parameters of the entity view will be used by the entity view used as the data source for the report.

How to use?

By Key/Value

var options = new ExecuteReportOptions("MyReport")
    .WithEntityViewParameter("MyStringParam", "MyValue")
    .WithEntityViewParameter("MyBooleanParam", true);

await this.ExecuteReportWithOptionsAsync(options);

By Dictionary

var parameters = new Dictionary<string, object>()
{
    {"MyStringParam", "MyValue"},
    {"MyBooleanParam", true}
};

var options = new ExecuteReportOptions("MyReport")
    .WithEntityViewParameters(parameters);

await this.ExecuteReportWithOptionsAsync(options);

For more details on EntityViewParameters, please refer to its documentation.

To configure these parameters from the Neos Studio report designer for preview and export scenarios, see Configure preview and export in the report designer.