Hi everyone!
I need to add another data provider as a data source to model mapping for Sales Invoice printout. I had one that we used when we printed all invoices with SSRS and it was a class defined as below (where X is an example prefix):
[SRSReportParameterAttribute(classStr(SalesInvoiceContract))]
public class XSalesInvoiceSummaryDP extends SrsReportDataProviderBase
It did work great in SSRS as it was included as a DataSource on the report. Now when I try to include it in model mapping as an object data source (as original SalesInvoiceDP is being referenced there as an object) with SRS attribute support option selected I can't seem to get it to actualy run. ProcessReport, init, construct and nothing like that is being called when I attach the debugger.
I have created a dummy data provider that extends SrsReportDataProviderPreProcess to no avail, now I'm trying with extending SalesInvoiceDPBase but before I'll get my results I'd like to ask if you can point me to the right direction.
So my question is: how to properly create a class that will be used as a data provider for ER report (I'm experimenting on Sales Invoice, but I think that isn't important) and in a way that it will be used in proper context (in my case in the context of a particular customer invoice)?