background preloader

DYNAMICS AX

Facebook Twitter

Restoring delete sales order or purchase order | Sumit Loya. Merge multiple pdf’s in to single pdf report [using X++ in Dynamics AX 2012] | Sreenath Reddy G - Dynamics AX Consultant's Blog. Learn in doing - Ajit kumar's: Microsoft Dynamics Ax Maps. In Dynamics Ax, several of the features in the Account Payable module and the Account Receivable module are very similar, therefore even most of the main tables, transactions tables and setup tables are similar. With similar features the business logic is also similar, therefore making it possible to reuse much of the code.

However, although the tables and their fields may appear similar in their construction, the names used are likely to be quite different. This is where Table Maps are used. Maps define X++ elements that wrap table objects at run time. With a map, you associate a map field with a field in one or more tables. In maps, typically only fields are created and mapped, as properties are already specified at the mapped table. Example (1): Creating a map, mapping common fields in MyFirstTable & CustTable. 1. 2. 3. 4. 5. 6. 7. 8.

As mentioned above, you will have to restore the map otherwise changes will not be shown in mappings before restarting the client. CustTable custTable; Map Class - Axaptapedia. Map (Foundation class) consist of a data set that contains a key and a corresponding value, where the key is unique. The key and the value need not be from the same data type. A Map is always sorted on the key value. [edit] How to use [edit] Define Map m = new Map(Types::STRING, Types::INTEGER); or Map m = new Map(typeId2Type(typeid(recId)), Types::Record); [edit] Insert a value m.insert("Wassini", 37); m.insert("Eric", 102); [edit] Exists value To see if a value already is added, use the exists method: if (m.exists("Wassini")) print "Yes! " [edit] Lookup value To get the value linked to a specific key use the lookup method: Integer i; i = m.lookup("Wassini")) If key don't exist in map lookup function throw error so is better to test before is key exist [edit] Getting values There are several ways to get the values in the map.

Using a MapIterator Using a MapEnumerator Using a direct method [edit] MapIterator The MapIterator loops throug the complete map: [edit] MapEnumerator [edit] Direct method. December 2009. In my last post, I talked about the use of colors in a grid. You can use the discussed example to add some spice to your forms. But the same can be applied to reports as well. Anyone remembers those old dot matrix printers, with that huge stacks of print paper? The paper had green lines, in order to improve the readability. You can get the same effect, with almost any report in Ax. This is some coding I did a couple of years ago for a user that complained about his report, saying the characters where "all dancing around on the paper".

Create a static method on a class, for example the Global class. Static void SetReportLine(ReportSection _ReportSection){ int controlcount;int counter;int usecolor;int oldcolor; object reportobject;; controlcount=_ReportSection.controlCount();oldcolor=_ReportSection.foregroundColor(); if(oldcolor==WinApi::RGB2int(255,255,255)) usecolor=WinApi::RGB2int(220,255,220); else usecolor=WinApi::RGB2int(255,255,255); _ReportSection.foregroundColor(usecolor);

Date / DateTime / Time

Excel. Outlook. FTP. References. BATCH. AX2012. Purges SQL. FileIo - AsciiIo. Dimensions. DAX. AOT. Forms. Form/Report. DownLoad Example Source. InventJournal. Query.