zoukankan      html  css  js  c++  java
  • Tree Control in Dynamics 365 for operation【转】

    Recently I complete the custom Inquiry for Dynamics Ax 2012 R3. That customization is extensive and based on Tree control. Now I did experiment with Tree view control  in Dynamics 365 for operation and output will share here.  For this post I used Dynamics 365 for Operation Update 4 Vm with contoso data.

    Suppose we need to build tree Where Sale order Number came as parent and Customer account is as its child node. There is thousand possibilities, but I use simplest way. So first step to add form. Then add tree control it. Set Form Name and Auto declaration property to true. So we can access control in code behind.

    Next step is to insert following code snippet initial method.

    public class frmTreeViewTest extends FormRun
    {
      /// <summary>
      ///
      /// </summary>
      public void init()
      {
        SalesTable _Table;
        TreeItemIdx _TreeItemid;
    
        super();
    
        MyTreeView.deleteAll();
    
        MyTreeView.lock();
    
        while select * from _Table
        {
          // _TreeItemid = SysFormTreeControl::addTreeItem(MyTreeView, _Table.SalesId + " : " + _Table.CustAccount ,FormTreeAdd::Root,  _Table.RecId);
    
          _TreeItemid = SysFormTreeControl::addTreeItem(MyTreeView, "Sales Order :" + _Table.SalesId ,FormTreeAdd::Root,  _Table.RecId);
    
          SysFormTreeControl::addTreeItem(MyTreeView, " Customer Account : " + _Table.CustAccount ,_TreeItemid ,  _Table.RecId);
    
          SysFormTreeControl::expandTree(MyTreeView,_TreeItemid);
        }
      }
    }

    原文地址:https://www.tech.alirazazaidi.com/customization-in-dynamics-365-for-operation-dynamics-ax-ax-7-part-8-tree-control/

  • 相关阅读:
    【转】Python常见web系统返回码
    【转】暴力破解无线WiFi密码
    【转】Django继承AbstractUser新建User Model时出现auth.User.groups: (fields.E304)错误
    Python去除文件中的空格、Tab键和回车
    用filter求素数
    【转】Python读取PDF文档,输出内容
    【转】RPC简单介绍
    【转】Python3使用Django2.x的settings文件详解
    Python生成随机字符串
    Python之turtle画同心圆和棋盘
  • 原文地址:https://www.cnblogs.com/bjdc/p/7160600.html
Copyright © 2011-2022 走看看