If you ever encounter this error message in Ax4sp2 and you are one hundred procent certain that there is nothing wrong with your file, check the MessageId tag. This sequence can not just be increased by one all the time, sometimes you come to a combination which simply does not compute..
When you work with the AIF and xml files, you often need to handle so called “white-space”. The normal AX functions strltrim() and strrtrim() only handles normal space (ascii 32), these are two examples which handle all kinds of spaces in files. Small and simple, but very handy. 🙂
@SYS92355 = “Wrong field ID in the key data container in entity key”
This error message from the AIF in AX4sp2 did give me some headache today..
Finally I solved it. I was about to export a SalesOrder with both header and lines, but I did put my sendElectronically method in the SalesLine table, *not* in SalesTable table.. So when executed I never got the correct keys. The query I used for the axd wizard was based on SalesTable first, and THEN SalesLine..
Might help someone else with the same or similar problem!
I am currently studying to complete the Enterprise portal development certification exam. Today I found this link that describes the different parts of the exam. Anyone who have taken one of these exams before knows that you get your result for the entire exam but also for each of the exam parts. That is what this link gives you, an overview of the different parts and what subjects each part contains.
You also get such information as what percentage each part is of the entire exam, which makes it easier to prioritize your studying in case of time restraints.
If you use a descriptive text on your profiles you use to startup axapta with, you have here another way of a very clear presentation of which installation, db, etc settings you are running under.
Continue reading How to add current profile name to the window title
During development and test we often switch between different companies in our installation. To not mistaken us, so we always make changes in the correct one, we made this small change in the code. With different background-colours for each company, you never delete something importent by mistake. This example shows how it could be done.
Continue reading How to colour code different companies inside axapta
Rightclick on a form and go down tracking a specific field or other data, is a tedious work if you do it dozens of times per day.
We wanted to catch the key combination ctrl+Z (since it is rarelly used when running axapta), so we could use it to display common data about a form, field or other info. This is a code example we nowdays always install in all new test and development environments (not production, since it would give normal users unwanted access).
Continue reading How to catch special keystrokes and use them as shortcuts