Home
»
Microsoft Dynamics AX
»
Dynamics NAVAX
»
All Tags
»
Tip
Browse by Tags
AX
AX2012
AX2012R2
Best Practice
Data migration
General
Help
HowTo
Job
X++
Xpp
Related Posts
Blog Post:
Event handler for a clean world [AX 2012]
Munib
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...
on
15 Jun 2013
Blog Post:
Import a straight table data with Data Import Export Framework
Munib
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...
on
24 May 2013
Blog Post:
str2Num doesn’t work as expected
Munib
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...
on
12 Feb 2013
Blog Post:
Delete Private AOT projects in AX 2012
Munib
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...
on
7 Feb 2013
Blog Post:
TFS Synchronization on a different domain [AX 2012]
Munib
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...
on
6 Feb 2013
Blog Post:
Renumber line number when its part of a key
Munib
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...
on
29 Jan 2013
Blog Post:
How to comment when modifying standard code [AX 2012]
Munib
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...
on
13 Sep 2012
Blog Post:
Using find with special characters
Munib
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 ...
on
26 Jul 2012
Blog Post:
Override a lookup on a report dialog [AX 2012]
Munib
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...
on
16 Jul 2012
Blog Post:
Add an Image/Icon to an Action Pane Button [AX 2012]
Munib
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...
on
13 Jul 2012
Blog Post:
Visual studio temp project files [AX 2012]
Munib
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\
on
2 Jun 2012
Blog Post:
Default dimensions – Order of controls on form [AX 2012]
Munib
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...
on
23 May 2012
Blog Post:
Dynamics AX Help Online Search
Munib
This is an address to save for searching Dynamics AX Help on Microsoft site. http://www.microsoft.com/dynamics/ax/websearch/websearchax.htm
on
28 Feb 2012
Blog Post:
Shortcuts [AX 2012]
Munib
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...
on
2 Feb 2012
Blog Post:
Common used commands for model move [AX 2012]
Munib
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...
on
1 Feb 2012
Blog Post:
Loop through record from data source [AX 2012]
Munib
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()...
on
18 Jan 2012
Blog Post:
The element does not have an origin value. This element must have a non-null origin value.
Munib
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.
on
11 Jan 2012
Blog Post:
AX - Scan a document
Munib
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....
on
6 Feb 2011
Blog Post:
AX - Get rid of the white space on report footer
Munib
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...
on
6 Feb 2011