AX2012小問題總結

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



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章