0

I want to get data from non-master datasource based on a parameter value.

Let's say we have 2 datasources in report: * datasource1 - main dataprovider * datasource2 - from which I need to get additional data

And also we have a report parameter, which is bound to the datasource2 to populate dropdown when report is opened.

I need that whenever user picks one of the option from parameter dropdown and submits, to grab corresponding item data from datasource2 and put in the report.

Is it possible? I didn't find any answer on the internet.

1 Answer 1

0

it will be possible if you leave single datasource but with two tables/datamembers, for example DevExpress SqlDataSource may have number of Queries, in the needed label you may write the expression

iif(Parameters.UseDefault, OptionalTable.DefaultValue, DataTable.ValueColumn)

is this helpful for your scenario?

2
  • I am not using SQLdatasource and can't use. I am using object datasource directly (I'm not sure if it's correct naming for it but hope you understood) and hence it's not fix for me, but thanks for the response
    – wol
    Apr 28, 2018 at 6:17
  • so you may create an aggregated object datasource with two list-properties - first with your main data and the second one with additional data. unfortunately, there is no solution out of the box
    – k0st1x
    Apr 28, 2018 at 10:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.