As suggested in here :
https://www.devexpress.com/Support/Center/Question/Details/T288742
I get the XtraReport Parameter Value in my DetailReport_BeforePrint. (DetailReportBand)
When i change the multi-value selected (of type int[]) and click on submit :
In debug I see I go here :
int[] selectedIds = (int[])Filter.Value;
- The first time when i change :
selectedIds sometimes has the wrong value, (the old value)
- If I re-submit without changing values selected :
selectedIds has the good value.
Why ? …
Hi Laurent,
It is difficult to determine the exact cause of your issue without reviewing you report's source code files. Please send us your report's source code. Alternatively, provide us with a simple working project that illustrates the issue in action. With a small example project, it is much easier for us to verify that the code that calls ours is valid, and that the way our controls are being used is recommended. This way, we can concentrate our resources on the problematic area:
A request for simple example programs
Your time and cooperation are greatly appreciated.
Here a sample, based on previous question I made on the report and parameter subject there is a description of the items, and I added on "Test Report 2" the second filter simplied.
The problem is : I don't get the problem in this sample report maybe too simpified but I can't put the same complexity on this simplified report.
But ! I passed from 90% chance to have a bug on second time to a 5-10% chance by doing this :
instead of having a datamember T1 based on a List<T1> with T1.ComplexObject filled,
I based it on a List<T1> with T1.ComplexObject = null copy.
This 5-10% problem on Filter.Value at BeforePrint seems to me like a proof there is a problem with memory or complex object datasource…
You should investigate in it with complex entity objects.
In fact, I DID have success to have the same problem in this Sample as showed in the picture here.
To reproduce it, i clicked like 30 times quite fast changing the things selectionned everytime. This is a bug in all filter multi-value I think.
Hi Laurent,
>>To reproduce it, i clicked like 30 times quite fast changing the things selectionned everytime.
If possible, please provide us with a detailed video that illustrates how to reproduce this issue on the sample project you have provided. For example, use the Jing tool for this purpose. This will be very helpful for us. We are looking forward to hearing from you.
Sorry, the picture was the wrong one :
This captureBug.png is the proof the value submited is not the same as the value we got sometimes
Here the video.
See the bug at the end : not the same in report and in filter.
Can't prove more than this.
Hi Laurent,
Thank you for the video. It was very helpful. This issue seems to be caused by the fact that parameter values were submitted before the multi-select parameter's value is changed. The multi-select parameter's value is changed only after its dropdown is closed. So, in case the parameter values are submitted before the multi-select parameter's dropdown is closed, such an issue may arise.
I have forwarded this issue to our developers for further research. We will let you know once we make progress.