static void CreateFieldMethod(Args _args)

    {

        TreeNode tn1,tnAddr, methodsNode;

        MemberFunction memberFunction;

        str source;

        ;

 

        tn1 = infolog.findNode("//Forms//Address//Data Sources//Address//Fields//AddrRecId");

        tnAddr = infolog.findNode( "//Forms//Address" );

        methodsNode = tn1.AOTfindChild( 'Methods' );

        methodsNode.AOTadd('lookup');

        memberFunction = methodsNode.AOTfindChild( 'lookup' );

        source = @"public void lookup(FormControl _formControl, str _filterStr)

                         {

                                super(_formControl, _filterStr);

                         }" ;

        memberFunction.AOTsetSource(source, false);

        memberFunction.AOTsave();

        methodsNode.AOTsave();

        tnAddr.AOTcompile();

    }

相关文章:

  • 2021-06-13
  • 2021-07-10
  • 2022-01-17
  • 2021-07-18
  • 2021-12-29
  • 2022-01-13
  • 2022-12-23
猜你喜欢
  • 2022-02-28
  • 2021-05-19
  • 2021-07-10
  • 2021-04-06
  • 2022-12-23
  • 2022-01-12
  • 2022-03-08
相关资源
相似解决方案