Skip to content

Reports - datasource command parameter is not updating #816

@Bykiev

Description

@Bykiev

Describe the bug
Table datasource command parameter is not updating programmatically via report parameter

To Reproduce
Steps to reproduce the behavior:

  1. Create a report parameter UserId
  2. Create a table datasource with command parameter UserId
  3. Assign Expression [UserId] to command parameter UserId
  4. Set the UserId report parameter value via code:
    report.SetParameterValue("UserId", userId);
  5. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions