Posts

How to run .exe files in AX

Today I will demonstrate you that how to call .exe files in AX 2012 through code. static void Job2(Args _args) { WinAPI::shellExecute("C:\\Users\\calc.exe"); } Note:- WinAPI::shellExecute() is the class and method through which we can execute any .exe file in AX.

Basic Ports in AX 2012

Today I will provide you document in which I mentioned how to create basic port and do communication with VS windows application in AX 2012. How to create Basic Port. Happy Daxing.. :)

External Web Service in AX

Today I will provide you document in which I mentioned how to call external web service in AX 2012. External Web Service

About AX 2012 R3

Today I would like to share few points which I have found on net and in some blogs about AX 2012 R3:- A completely new, HTML5 based mobile Point-of-Sale (mPOS or New POS as it is sometimes called) has been developed, that runs on Windows, IOS and Android.  A completely new, HTML5 based mobile client ling platform has been developed which again runs on Windows, IOS and Android. A new, sophisticated ecommerce platform has been developed through SharePoint. Enhancements and features have been added to Analysis, Business Intelligence and Reporting.  Integration and Electronic Data Interchange (EDI) sees a new, even more flexible framework that further extends integration, performance and reliability when working with external systems.  The Dynamics AX Sure Step implementation methodology will support Agile.  The development platform is receiving new features that make more modern development practices such as Continuous Integration a possibility. I have found ...

Form Class

Today I will demonstrate you that how to use Form classes in AX 2012. static void createForm(Args _args) { Args args; Form form; FormRun formRun; FormBuildDesign fbDesign; FormBuildDataSource fbDS; FormBuildGridControl fbGrid; FormBuildTabControl fbTab; FormBuildTabPageControl fbTabPage1; DictTable dictTable; FormControlType fctTabPage = FormControlType::TabPage; FormControlType fctTab = FormControlType::Tab; FormControlType fctGrid = FormControlType::Grid; form = new Form(); dictTable = new DictTable(tablenum(CustTable)); fbDS = form.addDataSource(dictTable.name()); fbDS.table(dictTable.id()); fbDesign = form.addDesign("Design"); fbDesign.caption("Customer information"); fbTab = fbDesign.addControl(fctTab, "Overview"); fbTabPage1 = fbTab.addControl(fctTabPage, "Overview"); fbTabPage1.caption("Overview"); fbGrid = fbTabPage1.addControl(fctGrid,"Table Grid"); fbGrid.addDataField(fbDS.id(), dictTable.fieldName2Id("Accou...

Collection Classes

Today I will demonstrate you that how to use various collection classes in AX 2012. All below codes needs to write in Job Array Static void Array_example(Args _args) { Int I; Array arr=new Array(Types::String); arr.value(1,”ABC”); arr.value(2,”ABCD”); arr.value(3,”ABCDE”); for(i=1;i<=arr.lastindex();i++) { Info(strfmt(“Value is: %1”,arr.value(i))); } } List Static void List_example(Args _args) { List l=new List (Types::Integer); ListEnumerator lenum; l.addEnd (20); l.addEnd (24); l.addStart (30); l.addStart (25); lenum= l.getEnumerator(); lenum.reset(); While (lenum.movenext()) { Info (strfmt(“Value is: %1”,lenum.current())); } }  Map Static void Map_example(Args _args) { Map m=new Map (Types::String,Types::Integer); MapEnumerator menum; m.insert(“Vlaue1”, 20); m.insert(“Vlaue2”, 30); m.insert(“Vlaue3”, 60); menum= m.getEnumerator(); While (menum.movenext()) { Info (strfmt(“Value is: %1 || Key is: %2 ”,menum.currentV...

Valid State Field

Today i will provide you document in which i mentioned how to add Valid State Field in AX 2012. https://drive.google.com/file/d/0B2QCT01u3M0nY29RcnRqWXd0VmM/edit?usp=sharing Happy Daxing... :)