preloader-matrix

Alfasith

Passing the parameter from form to class in Dynamic AX

      1. Create class.

classForm2Class
{
}

2. Create  a method to that class
voidnew(PurchID purchid)
{
;
info(purchid);
}

3.  Create a form with name Form2Class, datasource as purchTable and grid & button in design.

4. On the clicked method of that button

voidclicked()
{
   // PurchTable      purchTable;
PurchID purchId;
Args args=new Args();
Form2Class      form2Class;
;
 purchId=args.parm(purchTable.purchid);
form2Class = new Form2Class(purchid);
}

Leave a Reply

Your email address will not be published. Required fields are marked *