zoukankan      html  css  js  c++  java
  • Microsoft Dynamic AX中多个Form传递参数方法

    1.建立三个Form,命名为:Form1, Form2, Form3;

    2.任意创建或者拖拽一个Table。

    3.为三个Form分别添加Button。

    4.将Table托拽到Form1>Data Source中

    5.为Form1添加Grid并将需要字段拖拽到Grid中:

    …只是练习,所以做的简陋,见谅,低调!阿弥陀佛!!!

    6. Form1>Methods

    public class FormRun extends ObjectRun

    {

         FormRun              formRun;

         zwStudents           student;

    }

    str testFunc(str _b = "abcd")

    {

         return _b;

    }

    public void init()

    {

         super();

    }

    public void create()

    {

         Args         args;

         FormRun      formCreate;

         Container        con;

         Common           com;

         ;

         con = [6,7];

         args = new Args();

         args.name(formstr(Form2));

         args.caller(formRun);

         select firstonly student

             where student.StudentId == "123";

         args.record(student);

         formCreate = classfactory.formRunClass(args);

         formCreate.init();

         formCreate.run();

         formCreate.wait();

    }

    Design>Button>Methods

    void clicked()

    {

         element.create();

         super();

    }

    7. Form2>Methods

    public class FormRun extends ObjectRun

    {

         FormRun              formRun;

         zwStudents           student;

    }

    public void init()

    {

         student = element.args().record();

         super();

    }

    public void create()

    {

         Args         args;

         FormRun      formCreate;

         ;

         info(student.StudentId);

         args = new Args();

         args.name(formstr(Form3));

         args.caller(formRun);

         args.record(student);

         formCreate = classfactory.formRunClass(args);

         formCreate.init();

         formCreate.run();

         formCreate.wait();

    }

    Design>Button>Methods

    void clicked()

    {

         element.create();

         super();

    }

  • 相关阅读:
    Python运算符,基本数据类型
    Python2 错误记录1File "<string>", line 1, in <module> NameError: name 'f' is not defined
    用户登录三次练习
    跟我一起学Python-day1(条件语句以及初识变量)
    vim operation
    步步为营-28-事件本质
    步步为营-27-事件
    步步为营-26-多播委托
    步步为营-25-委托(比大小)
    步步为营-24-委托
  • 原文地址:https://www.cnblogs.com/Footprints/p/3012649.html
Copyright © 2011-2022 走看看