Describe the bug
Table datasource command parameter is not updating programmatically via report parameter
To Reproduce
Steps to reproduce the behavior:
- Create a report parameter
UserId
- Create a table datasource with command parameter
UserId
- Assign Expression
[UserId] to command parameter UserId
- Set the
UserId report parameter value via code:
report.SetParameterValue("UserId", userId);
- Get the table datasource:
var connection = report.Dictionary.Connections.First();
var ds = connection.Tables.First();
await ds.InitAsync();
var count = ds.Table.Rows.Count;
Expected behavior
The datasource should be filtered based on UserId parameter value after calling ds.Init(), but the command parameter value is empty.
Of course, I can set command parameter via ds.Parameters, but report parameter should be working too.
Describe the bug
Table datasource command parameter is not updating programmatically via report parameter
To Reproduce
Steps to reproduce the behavior:
UserIdUserId[UserId]to command parameterUserIdUserIdreport parameter value via code:report.SetParameterValue("UserId", userId);Expected behavior
The datasource should be filtered based on
UserIdparameter value after callingds.Init(), but the command parameter value is empty.Of course, I can set command parameter via
ds.Parameters, but report parameter should be working too.