I would like to connect my Visual Studio against different dynamics ax environments. In particular the following two:
- Development Environment
- Production Environment
The purpose is to develope SSRS reports. In the production environments there are some reports which are not available in development and it would be complicated to create them. Not meaning that I'm going to develop against production (who would do such a thing?! ;-) ).
I found a tutorial which shows how to connect to a specific AOS by pointing visual studios start up parameter to an AXC file:
Tutorial for VS connection to specific AOS
When I follow the steps from the tutorial and open AX it seems that VS has connected to the correct AOS instance. See the following screenshot, showing two AOS instances one connected to Development the other to Production:
Also when I open the report from Production and from Development I can see that they are different in design, because there have been made some changed in Development.
Problem is: When I try to open a report with sample data, it always fetches the data from my Development environment. I also noticed that the SSRS report parameter @AX_UserCompany is always the company from my AX user settings in Development.
I know that VS is using my active directory user to authenticate against the AOS, but why is it always using the Development settings, even when VS is started with the Production AXC file as startup?
My question is: How is it possible, that VS pulls the SSRS report design from Production but the data from Development and what has to be done to retrieve both (Design and Data) from Production?
Any input is appreciated.