Records with RecId 101090

  • August 4, 2010
  • 2 Comments

I was using the postload method of the HRMBenefitType-table to fill the description-field with language-sensitive description (from LanguageTxt). This works fine when I view the record, but not when I use a lookup. I’ve put a break-point on my postload method and noticed the recId (this.recid of the HRMBenefitType table). This is always the 101090. … Continue Reading

Enterprise Portal – titlebar issue (part 2)

  • June 25, 2010
  • 0 Comments

While I was checking my previous Enterprise Portal titlebar issue, me and my colleagues found a second bug. When you use a single quote (‘) in the PageTitle, the name of the Page Defenition object is displayed instead of the actual label with the singel quote. We couldn’t find a solution yet, but we’re still looking. Anyone … Continue Reading

Enterprise Portal – titlebar issue

  • June 21, 2010
  • 2 Comments

When you modify the PageTitle property of a new Page Definition to a label with a ‘special’ character in it. You will see that the title is not rendered well. For example when you use a é it will be rendered as &#233. I logged this case with Microsoft and for the moment there is no … Continue Reading

Enterprise Portal – strange behaviour with date-picker

  • June 18, 2010
  • 1 Comment

Have you ever experienced the following symptoms in the Enterprise Portal: click on a date picker (the date picker is shown) click outside the date picker (the date picker is hidden) finally, you re-click on the date picker Result: you see the message ‘Loading data’ and a ‘error on page’ message appears in the bottom … Continue Reading

Dialog Extended

  • May 12, 2010
  • 0 Comments

One of my colleagues (Koen Dedecker) was looking for a way to prevent user interaction with other forms while a certain dialog is shown. After some research he found the solution on the blog Dynamics AX tools and tutorials from Vanya Kashperuk. A few years ago (2007) he made a simple extension of the dialog class … Continue Reading

A few things you should know about temporary tables

  • May 10, 2010
  • 2 Comments

How do you set a table temporary: You can set the property ‘temporary’ in the AOT to yes –> this table is always temporary You can declare a buffer of a table and call the method setTemp() or setTempData(), from that moment on the buffer contains temporary data. CustTable custTable; ; custTable.setTmp(); if (custTable.isTmp()) { … Continue Reading

The Ax Infolog

  • May 7, 2010
  • 0 Comments

Wel all know the small dialog that gives the user usefull information about what is happening in Ax. In this post I will tell u some more about this. You can add information to the Infolog by calling: Infolog.add(…) info(…) warning(…) or checkfailed(…) error(…) You can add some structure in it by using setPrefix(…) Using … Continue Reading

TechDays : Software testing with Visual Studio 2010

  • May 5, 2010
  • 0 Comments

A few weeks ago I posted a link to all the TechDays 2010 sessions. There is one session I want to remark in special. The ‘Software Testing with Microsoft Visual Studio 2010‘ is a session about the new testing suite in Visual studio 2010 and it should be compatible with Microsoft Dynamics Ax, but I … Continue Reading

Execute a job on data in several companies – part2

  • April 30, 2010
  • 1 Comment

In one of my previous posts I explained that you can switch company with the keyword changecompany. I also made a remark that you should set the value of your table-value to null after each changecompany. Small code example (bad): 1 2 3 4 5 6 7 8 9 10 11 12 DataArea dataArea; PurchTable … Continue Reading

Crosscompany

  • April 30, 2010
  • 0 Comments

Yesterday I talked about executing code/getting records in several companies. Now the changecompany is not the only method. You can also get data out of several companies by using the keyword crosscompany in your select statement. Example: 1 2 3 4 5 6 7 8 9 Address address; container conCompanies = [ ‘cee’, ‘dat’ ]; … Continue Reading