Dependent Variable did not refresh value

Stimulsoft Reports.NET discussion
Post Reply
yuns
Posts: 9
Joined: Wed Feb 07, 2024 3:43 am

Dependent Variable did not refresh value

Post by yuns »

Hi,

I have the following data
Year, Month
2023, 12
2023, 11
2023, 10
2022, 5
2022, 4

I created 2 variables (Year and Month) with 'Month' is dependent on 'Year'
Both of which has the initial selection set to First and both sort by descending

When I first load the report, my Year is set to 2023, and month is set to 12 (Which is correct)
However, when I change Year to 2022, Month is still displayed 12 (but the dropdown selection is updated to 5 and 4).
It does not dynamically change to 5. Is there a way around this?
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Dependent Variable did not refresh value

Post by HighAley »

Hello,

We have checked this feature.
The values are updated.

Maybe the Allow User Values option is enabled?
Then the value will be the same.

Thank you.
yuns
Posts: 9
Joined: Wed Feb 07, 2024 3:43 am

Re: Dependent Variable did not refresh value

Post by yuns »

Hello,

do you have a sample report that you can show me?

Does the data type makes a different?
Because I have another scenario where my master variable is a string, and my second variable is an int (which is dependent on my master variable), and a third variable which is also an int (Which is dependent on my second variable)
Lech Kulikowski
Posts: 6271
Joined: Tue Mar 20, 2018 5:34 am

Re: Dependent Variable did not refresh value

Post by Lech Kulikowski »

Hello,

Please check the sample report:
https://demo.stimulsoft.com/#Net/Parame ... tParameter

Thank you.
yuns
Posts: 9
Joined: Wed Feb 07, 2024 3:43 am

Re: Dependent Variable did not refresh value

Post by yuns »

Hello,

Thank you for the link.
I manage to do it on my end. However, is there a way for 1 variable to have 2 dependencies?
Lech Kulikowski
Posts: 6271
Joined: Tue Mar 20, 2018 5:34 am

Re: Dependent Variable did not refresh value

Post by Lech Kulikowski »

Hello,

Unfortunately, no.

Thank you.
Post Reply