The purpose of this blog is for knowledge sharing and connect the relevant audience who are all into Microsoft Dynamics world.
Alfasith AX
Tuesday, July 2, 2013
Passing the parameter from form to class in Dynamic AX
1. Create class.
2. Create a method to that class
3. Create a form with name Form2Class, datasource as purchTable and grid & button in design.
4. On the clicked method of that button
{
}
2. Create a method to that class
void
new(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
void
clicked()
{
//
PurchTable purchTable;
PurchID
purchId;
Args
args=new Args();
Form2Class form2Class;
;
purchId=args.parm(purchTable.purchid);
form2Class
= new Form2Class(purchid);
}
Subscribe to:
Posts (Atom)
SQL code to upate one Legal entity banner to all the legal entity in D365
Hi, update companyimage set companyimage.Image = companyimageA.Image from ( select Image from companyimage where dataAreaid = 'USF...
-
Hi, AccountingDistribution ( accounting distribution 7452 ) AccountingDistributionEventTmp ( accounting distribution 100001 ) Accountin...
-
Hi, Create a EDT name it Gender then in properties enumType : //select the enum name Use the below code and enjoy. static v...