开发者

Axapta: Is it possible to move AOT nodes programatically?

开发者 https://www.devze.com 2022-12-26 11:31 出处:网络
Is it possbile to move aotnode in axapta through code(I want to achive the same movement as done via alt-up, alt-down)

Is it possbile to move aotnode in axapta through code(I want to achive the same movement as done via alt-up, alt-down) Dynamics AX 2009 has AOTmove method, but when I try

#AOT
ProjectNode root;
//SysContextMenuAOT ctx = new SysContextMenuAOT();
ProjectGroupNode firstChild;
ProjectGroupNode secondChild;
;
//root=ctx.first();
root = infolog.projectRootNode().AOTfindChild("Private").AOTfindChild("TestProject");
root = root.getRunNode();

firstChild = root.AOTfirstChild();
secondChild = firstChild.AOTnextSibling();

secondC开发者_StackOverflowhild = firstChild.AOTnextSibling();
secondChild.AOTMove(secondChild.AOTparent());

and then call it on whole project it successfully moves secondChildNode, BUT it deletes every subnode inside of secondChild.


It does not seem to work (with project nodes).

AOTmove is used exclusively in form SysFavoritesAddFavorite and SysFavoritesOrganizeFavorites. You may get some information looking there.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号