Posts

Showing posts from September, 2018

CLASSES AND TABLES WHILE CREATING SALESORDER

CLASSES , TABLES ,FORMS AND METHODS WHILE CREATING SALES ORDER AX X++ CLASSES AND TABLES WHILE CREATING SALES  ORDER  Below are the list of tables and classes being executed in a sales order cycle. Similar is the case for purchase order Sales Order (Confirmation, Picking list, Packing slip, Invoice ) Creating Sales Order ------------------------- Classes :- SalesTableType and SaleslineType classes  will get called while creating the orders. Tables  :- Sales Table, Logistics Postal Address, CustTable, MCRPrimaryAddressCust,SalesLine. Confirmation -------------------- Classes :- SalesFormLetter class Tables  :- SalesParmTable, SalesParmLine Table CustConfirmJour Table, CustConfirmTrans Table- when a sales order gets confirmed. SalesFormLetter classes will be used to post the sales order at various document status like picking,packing, invoice etc. Picking List --------------- Classes :- SalesFormLetter_PickingList class  Tables :- SalesTable, S...

Adding code templates/shortcuts in AX 2012

Image
Adding code templates/shortcuts in AX 2012 19 03 2012 If you’ve got any blocks of code that you use frequently, e.g. specific comment blocks, you can very easily add code short cuts in AX 2012 to auto-insert the them in to your X++ code. For example you can setup AX to automatically create surrounding comment such as whenever you type “mycom” and press the tab key. How do you accomplish this. Very easily! Step1: Locate the class EditorScripts in the AOT. Step2: Create a new method with the format  public void template_flow_[shortcut](Editor editor) Step3: User the editor parameter to add code the code that you would like inserted. e.g. editor.insertLines(“\\test comment”); Step4: Add your method to the case statement in the isApplicableMethod method in the section relating to template  “editor scripts that does not apply to Macros”  Thats it, now if you type your shortcut into any editor in AX and press tab, the “\\test comment” code will be inser...

Changing Dynamics Ax's forms caption/text

Image
Changing Dynamics AX's forms' caption / text Dynamics AX's forms' caption is composed of two parts: The name of the form / table being edited, and the primary key or at least two key fields that tell the user what record he has selected. But do you know how to change these texts? I'll show you some ways of doing it in this post. The first part of the caption, the name of the form, can be set on the  Caption  property, on the Design node of the form: And that change can be seen on the left side of the form's caption: Additionally, you can change the left part of the form through coding. Just add the following line on the  init  method or on whatever other key method you want it to be: ? 1 element.design().caption( 'Foo' ); The second part, which is some information about the record, can be changed in two ways: through property settings, or through X++. I'll show both of them. The table has two properties that you can use for...