zoukankan      html  css  js  c++  java
  • 用X++代码来动态的改变表的属性

    static void ChangeTableProperties(Args _args)

    {

        xInfo xInfo = new xInfo();

        treeNode node = xInfo.rootNode().AOTfindChild("Data Dictionary");

        treeNode childNode;

        treenodeIterator nodeIterator;

        str properties;

        str tables;

        str newLable = "Change label";

        ;

     

        node = node.AOTfindChild("Tables");

        nodeIterator = node.AOTiterator();

        childNode = nodeIterator.next();

        while (childNode)

        {

          tables = childNode.treeNodeName();

          if(tables == "AssetBook")

          {

            properties = setProperty(childNode.AOTgetProperties(), "Label", newLable);

            info(properties);

            childNode.AOTsetProperties(properties);

            childNode.AOTsave();

            childNode.AOTrefresh();

          }

          childNode = nodeIterator.next();

        }

    }

    虽然这种用X++代码改变表属性的方法不值得提倡,但是这种方法可以用于一些特殊的场合。

  • 相关阅读:
    thinkphp5ajax分頁&&搜索後分頁
    yii框架多文件上傳
    Redis:Linux安装与使用
    JSP使用Struts2标签库报错
    Dubbo:3
    Dubbo:1
    Dubbo:2
    zookeeper:master选举
    zookeeper:分布式锁简单实现(JavaApi)
    zookeeper:Curator操作节点
  • 原文地址:https://www.cnblogs.com/Fandyx/p/2761527.html
Copyright © 2011-2022 走看看