AX2012小问题总结

来源:互联网 发布:魔法王座升阶数据 编辑:程序博客网 时间:2024/06/06 17:03

1、在从表通过View details导航到主表

需要设置两个地方,第一在EDT上建立关系比如EmplyerID = Emplyer.EmplyerID,这样点击View details的时候就会去Display Menu Item里面去找Emplyer,如果在主表Emplyer中设置了FormRef属性,则会去Display Menu Item 里面找设置的Display名称

所以,即使没有设置FormRef属性,如果Display Menu Item 名称和主表名称相同,也可以通过View details 打开主表,如果不相同,那么只有设置了正确的Display Menu Item名称才可以

2、在从表上点击Button分别以FormRun和MenuFunction方式打开当前记录对应的主表

以Emplyee和Emplyer为例

MeunFunction方式:

void clicked(){    Args            args;    MenuFunction    mf;        args = new Args('Emplyer');    args.record(Emplyee);        mf = new MenuFunction(menuitemDisplayStr(Emplyer), MenuItemType::Display);    mf.run(args);}
FormRun方式:

void clicked(){    Args       args;    FormRun    formRun;    args = new Args('Emplyer');    args.record(Emplyee);       formRun = classFactory.formRunClass(args);    formRun.init();    formRun.run();    formRun.wait();}

3、部署报表提示:An error occurred : The network path was not found.If User Account Control (UAC) is enabled on the machine, close the application, right-click the application, and then click Run as administrator.


解决方案:在Windows Server 2008 R2中,"Remote Registry" 服务默认是禁止的,将其设置为自动并启动服务

4、局域网内不能互相访问“找不到网络路径”解决方案

开始TCP/IP NetBIOS Helper服务

5、启动sql server configuration manager的时候报错:Cannot connect to WMI provider. You do not have permission or the server is unreachable. Note that you can only manage SQL Server 2005 and later servers with SQL Server Configuration Manager. Invalid class [0x80041010]

解决方案:在CMD命令行输入以下命令:mofcomp.exe "C:\Program Files (x86)\Microsoft SQL Server\100\Shared\sqlmgmproviderxpsp2up.mof"

注意其中的100是sql server版本,100指08,如果是sql server 2012应该写110



0 0
原创粉丝点击