Visual Studio Macro for Live Search

Here is a Visual Studio macro that takes the highlighted text and starts a search of the msdn/msdn2 sites.  It often works better than the built-in help system.  I usually assign it to hot key Alt+F1.   ‘————————————————————————– ‘You will need to add a reference to ‘System.Web’ for HttpUtility.UrlEncode ‘————————————————————————– Public Sub SearchLiveForSelectedText()     Dim…

1

Enable Debug on Server

When single stepping through X++ code on the client you can bump into code that can only execute on the server.  In a default deployment you will not be able to single step through the code.  To enable this feature you must turn it on in the ‘Microsoft Dynamics AX Server Configuration Utility’ tool.  …

0

Command Line To Import Data

In Axapta 4.0 you can use the -startupcmd=autorun_ command line option to batch import data is two steps.   1. Create an xml file (demoData.xml for example) that looks like this: <?xml version=”1.0″ encoding=”utf-8″ ?> <AxaptaAutoRun exitWhenDone=”true” version=”4.0″ logFile=”axautodata.log”>        <CompanyAccounts >               <Company name=”Demo Company” id=”DMO” overwrite=”true” />        </CompanyAccounts>        <DataImport companyId=”DMO” file=”demoData.dat”…

1

Live Meeting Error “An error has occured while creating an error report”

I was having the following bug with live meeting.  Immediately after starting live meeting a small dialog box would pop up with this error message.  The dialog was behind the main Live Meeting window.  In a few seconds Live Meeting would disappear.  The problem was caused by the Data Execution Prevention (DEP) feature for Windows. …

7

Args and the Axapta Construction Pattern

When looking through Axapta code you will see a lot of references to the type Args.  This type is used as a general method for sharing construction parameters.  It works well because in the Axapta usage pattern because   the typical number of parameters is small the types of parameters used is very similar construction…

0

Using dimof() on a Dynamic Array

I stumbled across some older X++ code that was using the little know dynamic array.  It took a while to find out how to retreive the size of the dynamic array.  Here is a little example of using a dynamic array in Axapta:   int foo[]; int r; ; foo[10] = 1; r = dimof(foo); …

0

Know where the fall line is

Microsoft is full of interesting people.  Some of the guys in my group go snowboarding once a week and they are kind enough to take me along and show me the ropes.  We usually go to the Stevens Pass one day a week after work.  If you leave a little early, around four, you can…

2

What are Menu item references on report control?

Menu item references are used to add alternative drill down links in a report.  When you right click on the output field in the report the list of menu items will be presented in a popup menu.  The easiest way to add menu items to a report is to drag-n-drop them from the menu item…

0

Making things "click"

I answer questions in discussion groups from time to time.  Yesterday, I answered a question and got a very nice thank you.  It really brightened my day, and reminded me of what I like best about software, it is so cool when things “click”.  You look and think and look and think and look and…

0

Axapta DLLs (What to Blog)

So, I was wondering what to blog about….  There are many things that I would like to discuss but at the end of the day I would rather go home and play with the kids or go to the mountains and hit the snow. So…..I thought I would try recording some of the tid-bits that come…

2