Pending Review
Last Updated: 07 May 2025 13:20 by Robert
Robert
Created on: 07 May 2025 13:20
Type: Bug Report
0
Issues when using the objectDataSource wizard in the Web Report Designer
I am encountering issues when using the objectDataSource wizard in the Web Report Designer that are not issues with the Standalone Report Designer. The Telerik Reporting version is 19.0.25.313. I created an object data source class that returns "Widgets" in a DataSet and a report "Demonstrate objectDataSource issues in Web Report Designer.trdx" to demonstrate the issues.

1. The data member list in "Choose a data member" (step 2) of the objectDataSource wizard in the Web Report Designer does not appear to be in alphabetical order as it is in the Standalone Report Designer. When there are many data members it is hard to pick the one you want when not ordered alphabetically.

2. For a data member that returns a DataSet result, a table row has to be returned for the design time feature to generate a data schema. In the Standalone Report Designer a returned row is not necessary, all that is required is a returned DataSet with a Table with Columns setup. It would be easier when using Web Report Designer to not require data returned to establish the data source data schema. In the WidgetDataSource a fake row is returned for the sake of having the data schema generated.

3. In the Web Report Designer objectDataSource wizard, once the "Preview data source results" (step 4) are ready and the Finish button is clicked, there is another call to the data source member but instead of using the Design-Time Values for the member, the values in the Value column appear to be used. If report parameters are already assigned to the data source parameters the string of the Value (e.g. "= Parameters.StartDate.Value") is used instead of the report parameter value. I think the data member call to generate the data schema should be the Design-Time Values again. In order to get the data schema generated I had to use the same values for Value column as in the Design-Time Values value. After the data source parameters are assigned to report parameters then it breaks the generation of the data schema later when the report is opened again in the Web Report Designer and there is an error (e.g. Error An error occurred while loading the data schema for "Widgets". ("Message"."String was not recognized as a valid DateTime.").

4. In the Report Previewer for the Web Report Designer there does not seem to be a way to provide a null value to a nullable data source parameter. For the GetWidgets member the FromEffectiveDate parameter is a nullable DateTime. After the data source is configured the data source parameter DataType is set to String, it did not resolve to nullable DateTime. Even after I change the data source FromEffectiveDate parameter to DataType of DateTime it cannot accept a null value from a DateTime report parameter, it seems to be interpreted as string instead of null. In the Standalone Report Designer there is no problem having a DateTime report parameter passing null to a nullable DateTime data source parameter; after reconfiguring the data source in the Standalone Report Designer the DataType for the data source parameter is <DataType>System.Nullable`1[System.DateTime]</DataType> instead of <DataType>System.DateTime</DataType> as from the Web Report Designer.

5. This is not a specific objectDataSource wizard issue but rather a general issue in the Web Report Designer. I cannot create a Report Parameter with the same name as a data source parameter or CSV data source field. Trying to do so results in an error message (Error Could not change property 'Name'. Name 'FromEffectiveDate' already exists). This issue can be demonstrated in the Web Report Designer Demo page: create a parameter for the yearDataSource data source, try to create a report parameter with the same name to get the error. Using report parameter names that are also data source parameter names works fine in the Standalone Report Designer.
0 comments