Axapta:是否可以通过编程方式移动 AOT 节点?
是否可以通过代码在 axapta 中移动 aotnode(我想实现与通过 alt-up、alt-down 完成的相同移动) Dynamics AX 2009 有 AOTmove 方法,但是当我尝试
#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();
secondChild = firstChild.AOTnextSibling();
secondChild.AOTMove(secondChild.AOTparent());
然后在整个项目上调用它时,它成功移动了 secondaryNode,但它删除了 secondaryChild 内的每个子节点。
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();
secondChild = 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它似乎不起作用(使用项目节点)。
AOTmove
仅以SysFavoritesAddFavorite
和SysFavoritesOrganizeFavorites
形式使用。您可能会在那里获得一些信息。
It does not seem to work (with project nodes).
AOTmove
is used exclusively in formSysFavoritesAddFavorite
andSysFavoritesOrganizeFavorites
.You may get some information looking there.