This is a migrated thread and some comments may be shown as answers.

Cascading Parameters Default Value

2 Answers 220 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 14 Oct 2016, 09:44 AM

Good Morning,

 

Apologies if this has been asked before but I had difficulty finding a solution.

I have a report parameter who's datasource (I'm using object data source) is dependent on three parameters above it (Location, Date & Line Number). Once these have been selected, it generates the available values for my job parameter but I would like the first index of the available values to be automatically selected.

 

Currently it states 'Please input a valid value' but the display shows the first displayMember from the available values (Picture attached). On a side note, I also can't select the first value from the list straight away, I need to get to the second value and go back to the first to get it to register.

Any help would be appreciated.

Many thanks,

Andrew

2 Answers, 1 is accepted

Sort by
0
Accepted
Stef
Telerik team
answered on 18 Oct 2016, 01:19 PM
Hi Andrew,

The attached demo report illustrates cascading parameters, where data is obtained from AdventureWorks database. the report can be previewed in the Standalone Report Designer of R3 2016 or later. Parameters work correctly.


It looks like the controlling parameters have default values. Please debug the data-retrieval method of the last parameter and if it gets suitable data based on the values passed by the controlling parameters.

In order to provide you more accurate suggestions, please post the report definition, allowing us to create a demo report locally, or open a support ticket and send us the report, including the data-retrieval method and test data.

Regards,
Stef
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Andrew
Top achievements
Rank 1
answered on 18 Oct 2016, 01:56 PM

Thanks Stef,

After looking at the example report you provided, I got the answer..

For anyone else who has this problem:

Set the value of your cascaded report parameter to :- =First(Fields.XYZ) with XYZ being the name of the valueMember of your datasource.

 

Many thanks,

Andrew

Tags
General Discussions
Asked by
Andrew
Top achievements
Rank 1
Answers by
Stef
Telerik team
Andrew
Top achievements
Rank 1
Share this question
or