Determine which component is targeted in ConnectDataSourceToData
Posted: Wed Feb 21, 2024 3:32 pm
Hello !
I implement Stimulsoft Designer into our solution and give it access to a custom data source.
So I implemented Custom StiDataAdapterService with specific StiDatabase and StiDataSource.
My question concerns the ConnectDataSourceToData method which is poorly documented.
I have determined that this method is called for each data source for each component.
My problem is determining which component is targeted for a specific call.
Right now I'm iterating over each dictionary.Report.GetComponents() and skipping the ones where Component.Page != Report.CurrentPage.
The problem is that in a single page there can be multiple components targeting the same Datasources but with different required columns and/or filters which have a serious impact on performance.
Could you please help le ?
I implement Stimulsoft Designer into our solution and give it access to a custom data source.
So I implemented Custom StiDataAdapterService with specific StiDatabase and StiDataSource.
My question concerns the ConnectDataSourceToData method which is poorly documented.
I have determined that this method is called for each data source for each component.
My problem is determining which component is targeted for a specific call.
Right now I'm iterating over each dictionary.Report.GetComponents() and skipping the ones where Component.Page != Report.CurrentPage.
The problem is that in a single page there can be multiple components targeting the same Datasources but with different required columns and/or filters which have a serious impact on performance.
Could you please help le ?