Browse by Tags

Related Posts
  • Blog Post: Event handler for a clean world [AX 2012]

    Eventing has been covered in many blogs and Microsoft has documented it pretty well. I thought I should touch on it a little bit today to bring it back in our conversation. Below is an example of eventing that used. Say you wanted to extend the PurchLine table modifiedField method. In the old days you...
  • Blog Post: Import a straight table data with Data Import Export Framework

    Hard to give this one a good title. I am going to show how you can use the the Data Import Export Framework to import straight tables. Remember in previous versions we used Excel to import into the tables. We will do something similar using the DIEF. 1. Create a new Target entity. Select Entity type...
  • Blog Post: str2Num doesn’t work as expected

    If you are trying to convert a string to a decimal, you might notice that it doesn’t always work. It is very sensitive on the formatting of the string. Input Output (str2Num) Output (str2NumOk) System.Convert::ToDecimal(strValue); 1 23 1 false catch the exception as nothing is resolved 1abc 1 false catch...
  • Blog Post: Delete Private AOT projects in AX 2012

    This is a common problem since the old days. People leave projects in their private project and no one can get to it to clean it up. In pre AX2012, it was a matter of selecting the utilElements and calling the AOTDelete method. I won’t go through it here. In AX2012, it is all maintained in the model...
  • Blog Post: TFS Synchronization on a different domain [AX 2012]

    This was an issue we faced recently. We had some new developers that were on a different domain. We manage to get it all to work by setting up a VPN. Then we had issues with TFS syncing. The answer here is to Follow these steps Go to internet explorer, Navigate to your tfs site. eg. http://tfs.mycompany...
  • Blog Post: Renumber line number when its part of a key

    In this post, I will show how to renumber the line numbers in a table with out getting the duplicate record is not allowed. A bit of background first, say you have a table with line number field. It gets out of sequence and now you want to renumber it. You can’t simply write a method to loop through...
  • Blog Post: How to comment when modifying standard code [AX 2012]

    I have seen many ways of modifying standard code and how commenting is done. The best practice is to make as little change as possible or as little impact to the standard solution as possible. Otherwise, making it stand out and the next person can clearly see the difference between standard code and...
  • Blog Post: Using find with special characters

    I use the Find a lot in AX AOT. There are two not very well known ways of searching: 1. Find special characters This is not very well known by others but I find very useful is using escape character to find what I want. For example you want to search for code containing <SYS> . I just type in ...
  • Blog Post: Override a lookup on a report dialog [AX 2012]

    A good example of overriding a lookup on a report dialog is on the ProjMissingHourRegUIBuilder class. In simple, you need to create a UIBuilder class that extends SrsReportDataContractUIBuilder . You can create grouping; vertical or horizontal alignment; change the number of columns; or add look ups...
  • Blog Post: Add an Image/Icon to an Action Pane Button [AX 2012]

    Let start with the result. Below is a screenshot of Super Mario replacing the Customer icon. This is becoming a common question with AX 2012 using Action panes and all the buttons having images associated to them. It definitely adds to the usability. Follow the below steps and you’ll be alright. Get...
  • Blog Post: Visual studio temp project files [AX 2012]

    I had some weird problems on my local environment. I have multiple environments with the same project. I just did a clean up and delete the files under the following folders. %USERPROFILE%\AppData\Local\Temp\Microsoft Dynamics AX\ %USERPROFILE%\AppData\Local\Microsoft\Dynamics AX\
  • Blog Post: Default dimensions – Order of controls on form [AX 2012]

    You might notice the order of the dimension controls on forms is by Name. I recently had the question asked if you could change the order the controls are displayed in. Standard sorts by name in the code. So, I found the place and commented it out. Before After (This now order the fields the same as...
  • Blog Post: Dynamics AX Help Online Search

    This is an address to save for searching Dynamics AX Help on Microsoft site. http://www.microsoft.com/dynamics/ax/websearch/websearchax.htm
  • Blog Post: Shortcuts [AX 2012]

    Below are a few shortcuts I use when setting up new environments. Client shortcut "C:\Program Files (x86)\Microsoft Dynamics AX\60\Client\Bin\Ax32.exe" "C:\AxClientConfig\MyInstance_isv.axc" Client shortcut into development "C:\Program Files (x86)\Microsoft Dynamics AX\60\Client...
  • Blog Post: Common used commands for model move [AX 2012]

    These are common commands I use to move models on internal environments. Place these in a batch file and name accordingly. Then all you have to do is run them. Delete isv layer "%ProgramFiles%\Microsoft Dynamics AX\60\ManagementUtilities\AxUtil" delete /layer:isv /db:TestDb /s:SQLSERVER PAUSE...
  • Blog Post: Loop through record from data source [AX 2012]

    These are simple code snippets to loop through a record from a data source. Using a while loop salesLine_ds = _salesLine.dataSource(); localSalesLine = salesLine_ds.getFirst( true ) as SalesLine; if ( localSalesLine ) { while (localSalesLine) { //Do your thing localSalesLine = salesLine_ds.getNext()...
  • Blog Post: The element does not have an origin value. This element must have a non-null origin value.

    When you compile and you get this error in AX 2012. "The element does not have an origin value. This element must have a non-null origin value." Just restart your AOS. That should sort it out.
  • Blog Post: AX - Scan a document

    There are a few ways to scan a document in AX. Best way is to use Windows Image Acquisition (WIA). This comes standard from Windows Vista and up. Previous version you had to download " Windows Image Acquisition Automation Library v2.0 " from Microsoft. Without getting into too much detail....
  • Blog Post: AX - Get rid of the white space on report footer

    If you have a page footer and you don't call the super method in the executeSection. You will find the length of the footer is reserved as white space. Rather than just not calling the super method - you might consider calling element.disableSection(PageFooter_1) or element.disablePageFooter(); This...