Community
Participate
Working Groups
decription: "OK" should be enabled when type a valid date time value for date type parameter steps to reproduce: 1. new a datetime type parameter 2. set its display type as edit box 3. preview the report 4. Input parameter box pops up 5. Type "10/03/2001 10:05:30 AM" in parameter value box actual result: "OK" button is still disabled expected result: "OK" should be enabled when type a valid date time value for date type parameter
Created attachment 26583 [details] test report test report
I trace the code of InputParameterDialog and find the reasone of this issue. Plese check the code on line 868-869. The original code is ReportParameterConverter converter = new ReportParameterConverter( parameter.getFormat( ),Locale.getDefault( ) ); But the saved date value is local independency. I tried following code, ReportParameterConverter converter = new ReportParameterConverter( parameter.getFormat( ),Locale.US ); It's working. Could you please review this code?
Currently the default valued stored in the report design is locale dependant. This is a serious bug needed to be fixed. I upgrade its serverity to major.
A proper fix for this issue is to store locale independent values for all parameter values including default values. Before viewer make this change, we need to make sure that model has changed the parameter's default value's type to String from expression.
fixed
Verified in build 20060106.