Jump to content
  • Support for DataSourceProvider for SubReports


    csharbel
    Assigned User teodord
    CategoryBug report
    PriorityImmediate
    ReproducibilityAlways
    ResolutionFixed
    SeverityBlock
    StatusClosed

    Hi

     

    We have created a DataSourceProvider and a DataSource abstraction over WebServices, but to our dismay we find that there is no provision for passing a JRDataSourceProvider to the SubReport.

     

    Currently you can only pass a Connection. Another alternative provided is the original DataSource itself. Support for a DataSourceProvider is critical to us. Also from a conceptual (abstraction) perspective it makes more sense to support a JRDataSourceProvider than a Connection.

     

    This is very critical to us. Also are there any other alternatives.

     

    Thanks,

    Sharbel Cherian

     



    User Feedback

    Recommended Comments

     

    Hi,

     

    I don\'t think this is a bug as we did not say anywhere that the JRDataSourceProvider could be used as you thought it would.

    This interface was created in order to allow GUI tools to configure data source providers that would help users pick report fields using wizards and things like that.

     

    I think you need to look into the newer JRQueryExecuter interface. There are several implementations of this interface in the core JR library. You can see how query executers could recognize parameters of their own and use them to create instances of the JRDataSource interface at runtime.

     

    I don\'t think we need to modify JRXML or the existing API in order to allow passing a JRDataSourceProvider instance as this could be achieved by registering a custom made query executer that would recognize such a subreport parameter in the Map sent at fill time.

     

    In any case, this should be posted as a feature request and not a bug.

    As a feature request, we can further track it.

    As a bug, it will probably be closed soon.

     

    Thank you,

    Teodor

     

    Link to comment
    Share on other sites

     

    Hi,

     

    Please post this as a feature request, if you still think we need to do something about it and the suggested workaround is not good enough.

     

    Thank you,

    Teodor

     

    Link to comment
    Share on other sites


×
×
  • Create New...