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();

    }

  • 相关阅读:
    sharepoint server 2010 打开网页非常慢
    sharepoint 2010 彻底删除用户
    Exchange2007设置网页OWA访问
    sharepoint 2007 网页内嵌打开pdf
    BAT+VBS、BAT+REG、BAT+HTML 混合编程
    Exchange2007安装后如何添加域账户邮箱
    Outlook2003无法登陆Exchange2007邮箱,提示outlook版本禁止
    Winsock Fix for Windows 7
    Silverlight 3 脱机安装
    WCF问题及解决方案
  • 原文地址:https://www.cnblogs.com/Footprints/p/3012649.html
Copyright © 2011-2022 走看看