Friday, 27 March 2015

Open a Form using X++ code

how to open a form by using x++ code:

static void OpenDisplayMenuItem()

Args args = new Args();

args.record(VendTable::find("XYZ"));
new MenuFunction(MenuItemDisplayStr(VendTable),MenuItemType::Display).run(Args);
}

------
static void OpenForm()
{ FormRun formRun;
Args args = new Args();
;
args.name(formstr(VendTable));
args.record(CustTable::find("XYZ"));

formRun = ClassFactory.formRunClass(args);
formRun.init();
formRun.run();
formRun.wait();
}

8 comments:

  1. where should i write x++ coding for opening a form

    ReplyDelete
    Replies
    1. In the methods node of the form

      Delete
  2. Nice post ! Thanks for sharing valuable information with us. Keep sharing..
    D365 Finance and Operations Online Training

    ReplyDelete
  3. These minimal information and facts will be built coupled with numerous track record information and facts. I favor this significantly.
    Rajasthan University BCOM TimeTable 2020
    Rani Durgavati Vishwavidhyalaya BCOM TimeTable 2020
    University Of Kota BCOM TimeTable 2020

    ReplyDelete
  4. Your information was very clear. Thank you for sharing.
    D365 AX Technical Online Training

    ReplyDelete