如何修改从 ax 2009 导出到 Visual Studio 的报表库的默认位置
我有 Microsoft Dynamics AX 2009 的开发、测试和生产环境。我还在每个环境中设置了 SSRS 报告。将报表库导出到 Visual Studio 时,AX 会将项目保存到默认位置。该位置对于所有环境都是相同的。我想修改这个位置,以便我可以为每个环境拥有不同的位置。我找不到这个默认位置的设置位置。
I have a DEV, TEST, and a Production environment for Microsoft Dynamics AX 2009. I have set up SSRS reporting as well in each environment. When exporting a report library to Visual Studio, AX saves the project to a default location. This location is the same for all environments. I would like to modify this location so that I can have a different location for each environment. I can not find where this default location is set.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
项目导出位置的路径位于 /Client/bin/Microsoft.Dynamics.Framework.ReportsDeployment.dll
此方法公开路径:
类 Microsoft.Dynamics.Framework.Deployment.Reports.ExportOperations使用 换句话说,路径是硬编码的,并且与当前用户相关。无法通过添加一些X++代码或者其他参数来区分,只能通过不同用户登录来区分。
The path to the location where the projects are exported is found in the /Client/bin/Microsoft.Dynamics.Framework.ReportsDeployment.dll
The Class Microsoft.Dynamics.Framework.Deployment.Reports.ExportOperations expose the path using this method:
In other words, the path is hard coded, and is relevant to the current user. It can not be differentiated by adding some X++ code or other parameters, only by logging in as a different user.
对于 AX 2009 环境,您最好使用默认路径和名称,而是通过拥有多个 SSRS 实例(每个环境一个)来分隔环境。它将产生更少的问题,并且比覆盖默认路径更容易、更安全、更快捷的解决方案。如果您需要将它们全部放在同一个盒子上,只需多次运行 SSRS 安装并创建新的命名 SSRS 实例即可。
祝你好运!
For a AX 2009 environment, you are better off using the default paths and names, and instead separate the environments by having multiple SSRS instances, one for each environment. It will generate less issues, and will be an easier, safer and quicker solution than overriding the default paths. Just run the SSRS installation multiple times and create new named SSRS instances, if you need them all on the same box.
Good luck!