| Summary: | Customize Datasource properties from rptlibrary does not work | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Philippe Marsteau <pmarsteau> |
| Component: | BIRT | Assignee: | Birt-Report-inbox <Birt-Report-inbox> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | bluesoldier, rlu |
| Version: | 2.6.2 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Philippe Marsteau
this is expected behavior. 1. if library data set is drag and drop to the design. The design dataset refers to the library dataset. And the design dataset uses the library datasource indirectly. 2. to use the report datasource, the report dataset must uses the report datasource instead of referring to a library dataset. If that is expected behaviour, this is inconsistent with data set or report item design and behavior. If I drag a data set from library, and customize property, even if this comes from library, customized properties will be considered. This defeats the concept of extension (report data source extends library data source, that is reuse behavior from library but overrides some properties of it. Asking dev to use report data set to be able to use report data set is equivalent to disable reuasbility of data set and data source (what libraries are designed for). And there is no way to customize datasource property of extended data set (dragged from library) in the report to use data source from report. So bottom line: - either I cannot reuses data set queries from libraries at all - or I must edit library if a specific report needs to use another schema/database. Really, really bad design. To me still considered as a bug since inconsistent with behavior of other overridden elements extended from libraries. (In reply to comment #1) > this is expected behavior. > > 1. if library data set is drag and drop to the design. The design dataset > refers to the library dataset. And the design dataset uses the library > datasource indirectly. > > 2. to use the report datasource, the report dataset must uses the report > datasource instead of referring to a library dataset. set as wont fix (In reply to comment #2) > If that is expected behaviour, this is inconsistent with data set or report > item design and behavior. If I drag a data set from library, and customize > property, even if this comes from library, customized properties will be > considered. This defeats the concept of extension (report data source extends > library data source, that is reuse behavior from library but overrides some > properties of it. Asking dev to use report data set to be able to use report > data set is equivalent to disable reuasbility of data set and data source (what > libraries are designed for). And there is no way to customize datasource > property of extended data set (dragged from library) in the report to use data > source from report. > the dataset with datasource is the same case like the table with dataset. For the given case, the suggestion is to customize the report data source then let the report dataset uses the report datasource. for any item that is dragged from the library, the customized properties are considered. But no way to guess whether the user wants to use the library datasource or the report datasource. In general, if report dataset is from the library, assume that the user doesn't want to change its library datasource. (In reply to comment #4) Could you describe a step by step instructions how to customize a datasource from library used by a dataset dragged from library in a report so the customized version of the datasource is used by the customized version of the dataset in the report (instead of the datasource from library)? I tried and the library datasource was always used, even if the dataset was customized to use another datasource (or if the datasource was customized). Maybe that is the real bug? When I create a plain new datasource, extending the dataset from library does not allow me to choose the report datasource. If the report datasource has the same name than the datasource present in the library, then the one of the library is used, no matter the customization. Again I may do it wrong, so please share the detailed step-by-step instruction and expected behaviors. As of today, the bug is NOT resolved. I could create a plain new dataset copied from datasource (instead of inherited from) but that is not the desired functionality. Desired functionality is to reuse datasets from library with minimal changes, and have at report level, the ability to select a different datasource. > (In reply to comment #2) > > the dataset with datasource is the same case like the table with dataset. For > the given case, the suggestion is to customize the report data source then let > the report dataset uses the report datasource. > > for any item that is dragged from the library, the customized properties are > considered. > But no way to guess whether the user wants to use the library datasource or the > report datasource. In general, if report dataset is from the library, assume > that the user doesn't want to change its library datasource. |