Hi, I want to call form data source method in my DP class SSRS report d365.
Dont forget that your report could be executed in batch mode and you dont have that form available there. So instead of calling a method from DP, call it from controller, get data and pass it to DP through the contract.
Hi,
You cam create a new method and "copy+paste" from data source method, as you are running your report from a form, the report controller class menuitem should have your datasource in properties and you should have the current record buffer somewhere. "Somewhere" the debugger will help you finding it.
Hi Vikash,
Could you, please, provide more information about your requirements?
You can call form the data source method only if you have form instantiated. But it's not possible to call form the data source method for SSRS report data providers.
If you want to re-use some code, you need to refactor it, move it to table\class level, and re-use in form and data provider. If it's MS code, you would need to ask MS to do this with an extensibility request. Or just copy-paste the code from the form.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Andrés Arias as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Sohaib Cheema 777 User Group Leader
André Arnaud de Cal... 630 Super User 2025 Season 2
Martin Dráb 602 Most Valuable Professional