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
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:
Comments (Atom)
Get a table ID in SQL - D365
Hi select ID from SysTableIdView where SysTableIdView .Name = 'CustTable' Regards,
-
Hi, AccountingDistribution ( accounting distribution 7452 ) AccountingDistributionEventTmp ( accounting distribution 100001 ) Accountin...
-
//< What is GUID> // GUID 16 bit large range of alphanumeric similar to RecID to treat as primary key of a table. static void CreateG...

