<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Axilicious</title>
	<atom:link href="http://www.ksaelen.be/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ksaelen.be/wordpress</link>
	<description>Dynamics Ax Technical blog</description>
	<lastBuildDate>Fri, 09 Dec 2011 14:59:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>SysOperationFramework : Field display order</title>
		<link>http://www.ksaelen.be/wordpress/2011/12/sysoperationframework-field-display-order/</link>
		<comments>http://www.ksaelen.be/wordpress/2011/12/sysoperationframework-field-display-order/#comments</comments>
		<pubDate>Fri, 09 Dec 2011 14:59:32 +0000</pubDate>
		<dc:creator>Kenny Saelen</dc:creator>
				<category><![CDATA[Dynamics Ax]]></category>
		<category><![CDATA[AX 2012]]></category>
		<category><![CDATA[Dialog]]></category>
		<category><![CDATA[SysOperationDisplayOrderAttribute]]></category>
		<category><![CDATA[SysOperationFramework]]></category>
		<category><![CDATA[SysOperationGroupAttribute]]></category>

		<guid isPermaLink="false">http://www.ksaelen.be/wordpress/?p=428</guid>
		<description><![CDATA[Since the arrival of Dynamics Ax 2012, the traditional RunBaseBatch framework is getting obsolete. This has been replaced by the SysOperationFramework. This framework brings a few nice features that were missing in the RunBaseBatch framework. One them is the MVC pattern to separate concerns. The basics I would like to start with a few links [...]]]></description>
			<content:encoded><![CDATA[<p>Since the arrival of Dynamics Ax 2012, the traditional RunBaseBatch framework is getting obsolete. This has been replaced by the SysOperationFramework. This framework brings a few nice features that were missing in the RunBaseBatch framework. One them is the MVC pattern to separate concerns.</p>
<h4>The basics</h4>
<p>I would like to start with a few links concerning how to create SysOperationFramework services. A colleague of mine, Klaas Deforce, has created some posts that clearly explain how it works.</p>
<p>All of the post are linked through this overview post : <a href="http://www.artofcreation.be/2011/08/21/ax2012-sysoperation-introduction/">http://www.artofcreation.be/2011/08/21/ax2012-sysoperation-introduction/</a></p>
<h4>Field display order</h4>
<p>Well now, let&#8217;s come to the question of this post : How can you determine the sequence of dialog fields on the dialogs created by the SysOperationFramework? The answer here lies in the Attributes available also in Dynamics Ax 2012. You have a contract with several datamembers marked with the [DataMemberAttribute] attribute. To determine the sequence you can add the [SysOperationDisplayOrderAttribute] attribute (http://msdn.microsoft.com/en-us/library/gg963068.aspx).</p>
<p>For an example of this, you can check the AssetBalanceReportColumnsContract class, method parmAssetBookId.</p>

<div class="wp_syntax"><div class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #008000;">&#91;</span>
    DataMemberAttribute<span style="color: #008000;">&#40;</span><span style="color: #666666;">'AssetBookId'</span><span style="color: #008000;">&#41;</span>,
    SysOperationGroupMemberAttribute<span style="color: #008000;">&#40;</span><span style="color: #666666;">'Book'</span><span style="color: #008000;">&#41;</span>,
    SysOperationDisplayOrderAttribute<span style="color: #008000;">&#40;</span><span style="color: #666666;">'1'</span><span style="color: #008000;">&#41;</span>
<span style="color: #008000;">&#93;</span>
<span style="color: #0600FF; font-weight: bold;">public</span> AssetBookMergeId parmAssetBookId<span style="color: #008000;">&#40;</span>AssetBookMergeId _assetBookId <span style="color: #008000;">=</span> assetBookId<span style="color: #008000;">&#41;</span>
<span style="color: #008000;">&#123;</span>
    assetBookId <span style="color: #008000;">=</span> _assetBookId<span style="color: #008000;">;</span>
    <span style="color: #0600FF; font-weight: bold;">return</span> assetBookId<span style="color: #008000;">;</span>
<span style="color: #008000;">&#125;</span></pre></div></div>

<p><H4>Groups and group sequence</H4></p>
<p>In the previous sample of code you can also see the SysOperationGroupMemberAttribute attribute. This is to determine which fields belong to a certain group on a dialog. And you can also use a custom sequence on groups by using the SysOperationGroupAttribute attribute as seen in the classDeclaration:</p>

<div class="wp_syntax"><div class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #008000;">&#91;</span>
    DataContractAttribute,
    SysOperationGroupAttribute<span style="color: #008000;">&#40;</span><span style="color: #666666;">'Book'</span>, <span style="color: #666666;">&quot;@SYS95794&quot;</span>, <span style="color: #666666;">'1'</span><span style="color: #008000;">&#41;</span>,
    SysOperationGroupAttribute<span style="color: #008000;">&#40;</span><span style="color: #666666;">'Period'</span>, <span style="color: #666666;">&quot;@SYS40&quot;</span>, <span style="color: #666666;">'2'</span><span style="color: #008000;">&#41;</span>
<span style="color: #008000;">&#93;</span>
<span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">class</span> AssetBalanceReportColumnsContract implements SysOperationValidatable
<span style="color: #008000;">&#123;</span>
    boolean visibleFR<span style="color: #008000;">;</span>
    AssetBookMergeId assetBookId<span style="color: #008000;">;</span>
    ToDate closingDatePriorYear<span style="color: #008000;">;</span>
    ToDate closingDateThisYear<span style="color: #008000;">;</span>
<span style="color: #008000;">&#125;</span></pre></div></div>

<p>So there you have it. If you want to rearrange things on the dialog, you can use the above method.</p>
<p>&nbsp;</p>
<div class="plus-one-wrap"><g:plusone size="medium" href="http://www.ksaelen.be/wordpress/2011/12/sysoperationframework-field-display-order/"></g:plusone></div>]]></content:encoded>
			<wfw:commentRss>http://www.ksaelen.be/wordpress/2011/12/sysoperationframework-field-display-order/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Propagate infolog messages to the windows event log</title>
		<link>http://www.ksaelen.be/wordpress/2011/11/propagate-infolog-messages-to-the-windows-event-log/</link>
		<comments>http://www.ksaelen.be/wordpress/2011/11/propagate-infolog-messages-to-the-windows-event-log/#comments</comments>
		<pubDate>Fri, 04 Nov 2011 00:16:37 +0000</pubDate>
		<dc:creator>Kenny Saelen</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Dynamics Ax]]></category>
		<category><![CDATA[AX 2012]]></category>
		<category><![CDATA[Event viewer]]></category>
		<category><![CDATA[EventLog]]></category>
		<category><![CDATA[Infolog]]></category>

		<guid isPermaLink="false">http://www.ksaelen.be/wordpress/?p=398</guid>
		<description><![CDATA[The windows event viewer can be a nice tool to check for messages dispatched by the system. You can save the logs in there, reopen them, different kinds of information is available so you can actually trace lots of things in there. But wouldn&#8217;t it be nice to also be able to log the messages [...]]]></description>
			<content:encoded><![CDATA[<p>The windows event viewer can be a nice tool to check for messages dispatched by the system. You can save the logs in there, reopen them, different kinds of information is available so you can actually trace lots of things in there. But wouldn&#8217;t it be nice to also be able to log the messages thrown by Ax 2012 in the windows event log?</p>
<p>That way you do not lose user messages and they are nicely logged into the event viewer. It can also help to log messages received on a client that you cannot seem to reproduce, &#8230;</p>
<p>Well, it is possible and here is how to do it in a couple of steps:</p>
<ul>
<li>Add a windows event log and source to put our specific infolog messages in</li>
<li>Edit the Ax32 config file to add an event log listener to the configuration</li>
</ul>
<p><strong>Create event log and source</strong></p>
<p>So first things first, let&#8217;s create a windows event log by using the following powershell command</p>

<div class="wp_syntax"><div class="code"><pre class="xpp" style="font-family:monospace;">new<span style="color: #00007f;">-</span>eventlog <span style="color: #00007f;">-</span>logname <span style="color: #ff0000;">&quot;RealDolmen Ax Solutions&quot;</span> <span style="color: #00007f;">-</span>source <span style="color: #ff0000;">&quot;Ax 2012 Infolog&quot;</span></pre></div></div>

<p>The result should be like in the figure below</p>
<p><a href="http://www.ksaelen.be/wordpress/wp-content/2011/11/EventLog.png"><img class="size-full wp-image-399" title="Created Event Log" src="http://www.ksaelen.be/wordpress/wp-content/2011/11/EventLog.png" alt="" width="631" height="353" /></a></p>
<p><strong>Configure the listener</strong></p>
<p>To add a listener, first open the ax32.exe.config file located in the client\bin directory. You should see a configuration similar to this:</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;?xml</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">&quot;utf-8&quot;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;configuration<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;startup</span> <span style="color: #000066;">useLegacyV2RuntimeActivationPolicy</span>=<span style="color: #ff0000;">&quot;true&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;supportedRuntime</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;v4.0.30319&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;requiredRuntime</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;v4.0.30319&quot;</span> <span style="color: #000066;">safemode</span>=<span style="color: #ff0000;">&quot;true&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/startup<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;runtime<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;assemblyBinding</span> <span style="color: #000066;">xmlns</span>=<span style="color: #ff0000;">&quot;urn:schemas-microsoft-com:asm.v1&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;probing</span> <span style="color: #000066;">privatePath</span>=<span style="color: #ff0000;">&quot;EditorComponents&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/assemblyBinding<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/runtime<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/configuration<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>Modify the configuration so that it looks like this: (It is absolutely important to keep the source name !! The initializeData must be filled with the source you created in the event log)</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;?xml</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">&quot;utf-8&quot;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;configuration<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;system.diagnostics<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;trace</span> <span style="color: #000066;">autoflush</span>=<span style="color: #ff0000;">&quot;true&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;sources<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;source</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;Microsoft.Dynamics.Kernel.Client.DiagnosticLog-Infolog&quot;</span> <span style="color: #000066;">switchValue</span>=<span style="color: #ff0000;">&quot;Information&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;listeners<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #808080; font-style: italic;">&lt;!-- The initializeData contains the source that was linked to the created event log --&gt;</span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;add</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;EventLog&quot;</span></span>
<span style="color: #009900;"><span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;System.Diagnostics.EventLogTraceListener&quot;</span></span>
<span style="color: #009900;"><span style="color: #000066;">initializeData</span>=<span style="color: #ff0000;">&quot;Ax 2012 Infolog&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/listeners<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/source<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/sources<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/system.diagnostics<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;startup</span> <span style="color: #000066;">useLegacyV2RuntimeActivationPolicy</span>=<span style="color: #ff0000;">&quot;true&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;supportedRuntime</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;v4.0.30319&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;requiredRuntime</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;v4.0.30319&quot;</span> <span style="color: #000066;">safemode</span>=<span style="color: #ff0000;">&quot;true&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/startup<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;runtime<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;assemblyBinding</span> <span style="color: #000066;">xmlns</span>=<span style="color: #ff0000;">&quot;urn:schemas-microsoft-com:asm.v1&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;probing</span> <span style="color: #000066;">privatePath</span>=<span style="color: #ff0000;">&quot;EditorComponents&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/assemblyBinding<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/runtime<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/configuration<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>Now we are all set up and when firing up the client, any messages to the infolog should be redirected to the event log. So let&#8217;s send some error lines to the infolog.</p>
<p><a href="http://www.ksaelen.be/wordpress/wp-content/2011/11/InfologMessage1.png"><img class="size-full wp-image-401" title="InfologMessage" src="http://www.ksaelen.be/wordpress/wp-content/2011/11/InfologMessage1.png" alt="" width="353" height="440" /></a></p>
<p>Now check if the same messages appear in the infolog. Normally this is what it should look like:</p>
<p><a href="http://www.ksaelen.be/wordpress/wp-content/2011/11/EventLogResultMessages.png"><img class="size-large wp-image-402" title="EventLogResultMessages" src="http://www.ksaelen.be/wordpress/wp-content/2011/11/EventLogResultMessages-1024x395.png" alt="" width="1024" height="395" /></a></p>
<p>So there you have it. The messages are nicely logged in the event viewer. As a last remark, you can also adjust the logging level by modifying the switchvalue of the source. Off will not log anything at all, verbose will fill your event log with everything.</p>
<div class="plus-one-wrap"><g:plusone size="medium" href="http://www.ksaelen.be/wordpress/2011/11/propagate-infolog-messages-to-the-windows-event-log/"></g:plusone></div>]]></content:encoded>
			<wfw:commentRss>http://www.ksaelen.be/wordpress/2011/11/propagate-infolog-messages-to-the-windows-event-log/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AX2012 Editor Extensions</title>
		<link>http://www.ksaelen.be/wordpress/2011/11/ax2012-editor-extensions/</link>
		<comments>http://www.ksaelen.be/wordpress/2011/11/ax2012-editor-extensions/#comments</comments>
		<pubDate>Thu, 03 Nov 2011 21:54:09 +0000</pubDate>
		<dc:creator>Kenny Saelen</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Dynamics Ax]]></category>
		<category><![CDATA[AX2012]]></category>
		<category><![CDATA[extension]]></category>
		<category><![CDATA[Visual studio]]></category>

		<guid isPermaLink="false">http://www.ksaelen.be/wordpress/?p=393</guid>
		<description><![CDATA[Today I was reading a very interesting post about possible extensions to the editor in AX 2012 and I would very much like to share it. Basically it explains that the editor is a hosted visual studio editor (that was already clear) and by knowing this, it is also possible to use the extensions that [...]]]></description>
			<content:encoded><![CDATA[<p>Today I was reading a very interesting post about possible extensions to the editor in AX 2012 and I would very much like to share it.</p>
<p>Basically it explains that the editor is a hosted visual studio editor (that was already clear) and by knowing this, it is also possible to use the extensions that are available there to the editor inside Ax.<br />
The post I read was dealing with the brace matching extension that is available to do automatic formatting of the braces.</p>
<p>You can read the full post here : <a href="http://dev.goshoom.net/en/2011/10/ax2012-editor-extensions/">http://dev.goshoom.net/en/2011/10/ax2012-editor-extensions/</a></p>
<div class="plus-one-wrap"><g:plusone size="medium" href="http://www.ksaelen.be/wordpress/2011/11/ax2012-editor-extensions/"></g:plusone></div>]]></content:encoded>
			<wfw:commentRss>http://www.ksaelen.be/wordpress/2011/11/ax2012-editor-extensions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Client acces log</title>
		<link>http://www.ksaelen.be/wordpress/2011/10/client-acces-log/</link>
		<comments>http://www.ksaelen.be/wordpress/2011/10/client-acces-log/#comments</comments>
		<pubDate>Sun, 16 Oct 2011 11:43:20 +0000</pubDate>
		<dc:creator>Kenny Saelen</dc:creator>
				<category><![CDATA[Dynamics Ax]]></category>
		<category><![CDATA[Acces log]]></category>
		<category><![CDATA[Dynamics AX 2012]]></category>

		<guid isPermaLink="false">http://www.ksaelen.be/wordpress/?p=389</guid>
		<description><![CDATA[I&#8217;ve recently read a post on the performance team blog and I found it interesting so I&#8217;m posting the link again here. http://blogs.msdn.com/b/axperf/archive/2011/10/14/client-access-log-dynamics-ax-2012.aspx The blog post explains how to track user activity within the system. &#160;]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently read a post on the performance team blog and I found it interesting so I&#8217;m posting the link again here.</p>
<p><a href="http://blogs.msdn.com/b/axperf/archive/2011/10/14/client-access-log-dynamics-ax-2012.aspx">http://blogs.msdn.com/b/axperf/archive/2011/10/14/client-access-log-dynamics-ax-2012.aspx</a></p>
<p>The blog post explains how to track user activity within the system.</p>
<p>&nbsp;</p>
<div class="plus-one-wrap"><g:plusone size="medium" href="http://www.ksaelen.be/wordpress/2011/10/client-acces-log/"></g:plusone></div>]]></content:encoded>
			<wfw:commentRss>http://www.ksaelen.be/wordpress/2011/10/client-acces-log/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AX 2012 Navigation Properties</title>
		<link>http://www.ksaelen.be/wordpress/2011/09/ax-2012-navigation-properties/</link>
		<comments>http://www.ksaelen.be/wordpress/2011/09/ax-2012-navigation-properties/#comments</comments>
		<pubDate>Wed, 07 Sep 2011 08:57:16 +0000</pubDate>
		<dc:creator>Kenny Saelen</dc:creator>
				<category><![CDATA[Gaming]]></category>

		<guid isPermaLink="false">http://www.ksaelen.be/wordpress/?p=382</guid>
		<description><![CDATA[It&#8217;s been a while since I&#8217;ve posted, but here&#8217;s a small little post about what I think is a cool feature in Ax 2012! In AX2009, when you have a table that has a relation to another table and you want to use it in code, you have to provide a method that performs a [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been a while since I&#8217;ve posted, but here&#8217;s a small little post about what I think is a cool feature in Ax 2012!</p>
<p>In AX2009, when you have a table that has a relation to another table and you want to use it in code, you have to provide a method that performs a select on the other table and returned the related record. ( fe : SalesTable.SalesLine() ) Well this is something cool in AX2012. Here&#8217;s how you can do it now.</p>
<p>On the main table you have the relationship. There you can use a new property called CreateNavigationPropertyMethods and set it to Yes.</p>
<p><a href="http://www.ksaelen.be/wordpress/wp-content/2011/09/CreateNavigationPropertyMethods.png"><img class="aligncenter size-full wp-image-384" title="CreateNavigationPropertyMethods" src="http://www.ksaelen.be/wordpress/wp-content/2011/09/CreateNavigationPropertyMethods.png" alt="" width="453" height="335" /></a></p>
<p>Once you have done this, there will be a method on you table that returns the related record.</p>
<p style="text-align: center;"> <a href="http://www.ksaelen.be/wordpress/wp-content/2011/09/CreateNavigationPropertyMethods2.png"><img class="aligncenter" title="CreateNavigationPropertyMethods2" src="http://www.ksaelen.be/wordpress/wp-content/2011/09/CreateNavigationPropertyMethods2.png" alt="" width="567" height="102" /></a></p>
<div class="plus-one-wrap"><g:plusone size="medium" href="http://www.ksaelen.be/wordpress/2011/09/ax-2012-navigation-properties/"></g:plusone></div>]]></content:encoded>
			<wfw:commentRss>http://www.ksaelen.be/wordpress/2011/09/ax-2012-navigation-properties/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SQL Server : Change TempDB location</title>
		<link>http://www.ksaelen.be/wordpress/2011/04/sql-server-change-tempdb-location/</link>
		<comments>http://www.ksaelen.be/wordpress/2011/04/sql-server-change-tempdb-location/#comments</comments>
		<pubDate>Thu, 21 Apr 2011 12:22:02 +0000</pubDate>
		<dc:creator>Kenny Saelen</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[TempDB]]></category>

		<guid isPermaLink="false">http://www.ksaelen.be/wordpress/?p=363</guid>
		<description><![CDATA[This is no rocket science but today I needed to move the tempDB to another disk. This is something I though could be done by changing the location path on the database properties in the files tab. Well, bummer, the location was not editable there. So how can we do this&#8230; ? Running this query [...]]]></description>
			<content:encoded><![CDATA[<div>This is no rocket science but today I needed to move the tempDB to another disk. This is something I though could be done by changing the location path on the database properties in the files tab. Well, bummer, the location was not editable there. So how can we do this&#8230; ?</div>
<div>Running this query will solve this for you :</div>
<div><span style="color: #0000ff; font-size: x-small;"><span style="color: #0000ff; font-size: x-small;"> </span></span></div>
<div>USE</div>
<div><span style="font-size: x-small;"> </span><span style="color: #0000ff; font-size: x-small;"><span style="color: #0000ff; font-size: x-small;">master</span></span><span style="color: #808080; font-size: x-small;"><span style="color: #808080; font-size: x-small;">;</span></span></div>
<div><span style="color: #0000ff; font-size: x-small;"><span style="color: #0000ff; font-size: x-small;">GO</span></span></div>
<div><span style="color: #0000ff; font-size: x-small;"><span style="color: #0000ff; font-size: x-small;"> </span></span></div>
<div><span style="color: #0000ff; font-size: x-small;"><span style="color: #0000ff; font-size: x-small;">ALTER</span></span><span style="font-size: x-small;"> </span><span style="color: #0000ff; font-size: x-small;"><span style="color: #0000ff; font-size: x-small;">DATABASE</span></span><span style="font-size: x-small;"> tempdb</span></div>
<div><span style="color: #0000ff; font-size: x-small;"><span style="color: #0000ff; font-size: x-small;">MODIFY</span></span><span style="font-size: x-small;"> </span><span style="color: #0000ff; font-size: x-small;"><span style="color: #0000ff; font-size: x-small;">FILE </span></span><span style="color: #808080; font-size: x-small;"><span style="color: #808080; font-size: x-small;">(</span></span><span style="font-size: x-small;">NAME </span><span style="color: #808080; font-size: x-small;"><span style="color: #808080; font-size: x-small;">=</span></span><span style="font-size: x-small;"> tempdev</span><span style="color: #808080; font-size: x-small;"><span style="color: #808080; font-size: x-small;">,</span></span><span style="font-size: x-small;"> </span><span style="color: #0000ff; font-size: x-small;"><span style="color: #0000ff; font-size: x-small;">FILENAME</span></span><span style="font-size: x-small;"> </span><span style="color: #808080; font-size: x-small;"><span style="color: #808080; font-size: x-small;">=</span></span><span style="font-size: x-small;"> </span><span style="color: #ff0000; font-size: x-small;"><span style="color: #ff0000; font-size: x-small;">&#8216;F:\MSSQL\Data\tempdb.mdf&#8217;</span></span><span style="color: #808080; font-size: x-small;"><span style="color: #808080; font-size: x-small;">);</span></span></div>
<div><span style="color: #0000ff; font-size: x-small;"><span style="color: #0000ff; font-size: x-small;">GO</span></span></div>
<div><span style="color: #0000ff; font-size: x-small;"> </span></div>
<div><span style="color: #0000ff; font-size: x-small;"><span style="color: #0000ff; font-size: x-small;">ALTER</span></span><span style="font-size: x-small;"> </span><span style="color: #0000ff; font-size: x-small;"><span style="color: #0000ff; font-size: x-small;">DATABASE</span></span><span style="font-size: x-small;"> tempdb</span></div>
<div><span style="color: #0000ff; font-size: x-small;"><span style="color: #0000ff; font-size: x-small;">MODIFY</span></span><span style="font-size: x-small;"> </span><span style="color: #0000ff; font-size: x-small;"><span style="color: #0000ff; font-size: x-small;">FILE </span></span><span style="color: #808080; font-size: x-small;"><span style="color: #808080; font-size: x-small;">(</span></span><span style="font-size: x-small;">NAME </span><span style="color: #808080; font-size: x-small;"><span style="color: #808080; font-size: x-small;">=</span></span><span style="font-size: x-small;"> templog</span><span style="color: #808080; font-size: x-small;"><span style="color: #808080; font-size: x-small;">,</span></span><span style="font-size: x-small;"> </span><span style="color: #0000ff; font-size: x-small;"><span style="color: #0000ff; font-size: x-small;">FILENAME</span></span><span style="font-size: x-small;"> </span><span style="color: #808080; font-size: x-small;"><span style="color: #808080; font-size: x-small;">=</span></span><span style="font-size: x-small;"> </span><span style="color: #ff0000; font-size: x-small;"><span style="color: #ff0000; font-size: x-small;">&#8216;F:\MSSQL\Data\templog.ldf&#8217;</span></span><span style="color: #808080; font-size: x-small;"><span style="color: #808080; font-size: x-small;">);</span></span></div>
<div><span style="color: #0000ff; font-size: x-small;"><span style="color: #0000ff; font-size: x-small;">GO</span></span></div>
<div><span style="color: #0000ff; font-size: x-small;"><span style="color: #0000ff; font-size: x-small;"> </span></span></div>
<div class="plus-one-wrap"><g:plusone size="medium" href="http://www.ksaelen.be/wordpress/2011/04/sql-server-change-tempdb-location/"></g:plusone></div>]]></content:encoded>
			<wfw:commentRss>http://www.ksaelen.be/wordpress/2011/04/sql-server-change-tempdb-location/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Performance in Dynamics Ax 2012</title>
		<link>http://www.ksaelen.be/wordpress/2011/01/performance-in-dynamics-ax-2012/</link>
		<comments>http://www.ksaelen.be/wordpress/2011/01/performance-in-dynamics-ax-2012/#comments</comments>
		<pubDate>Thu, 20 Jan 2011 18:54:20 +0000</pubDate>
		<dc:creator>Kenny Saelen</dc:creator>
				<category><![CDATA[Dynamics Ax]]></category>
		<category><![CDATA[AX 2012]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[Trace Parser]]></category>

		<guid isPermaLink="false">http://www.ksaelen.be/wordpress/?p=358</guid>
		<description><![CDATA[Today I attended what I think was the most interesting session of the conference for me. (There will be one about AIF today but I think this will not as interesting as what I learned about performance) Basically what they did can be devided in these categories : Scale up and scale out on AOSs [...]]]></description>
			<content:encoded><![CDATA[<p>Today I attended what I think was the most interesting session of the conference for me. (There will be one about AIF today but I think this will not as interesting as what I learned about performance)</p>
<p>Basically what they did can be devided in these categories :</p>
<ul>
<li>Scale up and scale out on AOSs and Clients<span style="font-family: Times New Roman; font-size: 12pt;"><br />
</span></li>
<li>Utilize more SQL features<span style="font-family: Times New Roman; font-size: 12pt;"><br />
</span></li>
<li>Application effeciency<span style="font-family: Times New Roman; font-size: 12pt;"><br />
</span></li>
<li>World class diagnosis tools<span style="font-family: Times New Roman; font-size: 12pt;"><br />
</span></li>
</ul>
<h3>SysGlobalObjectCache</h3>
<p>The first part was about caching. They added a global cache but this time the cache is also available across sessions.<br />
The cache also get syncronised between the AOS instances, but there is a short delay on this, so you never really can trust that the cache is identically on the other AOS Instances.</p>
<p>As to when the objects in the cache are cleared, there are two main triggers for deleting an object from the cache:</p>
<ul>
<li>The limit of number of objects is reached (to be found in the SysGlobalConfiguration table on SQL Server</li>
<li>The developer deletes / overwrites the object in the cache</li>
</ul>
<h3>TraceParser</h3>
<p>Before the trace parser was a tool to be installed additionally to Ax but now it is part of the system. There are a few ways in which you can use the trace parser:</p>
<ul>
<li>By starting up the performance cockpit from the tools menu</li>
<li>By using it to code by starting and stopping trace and specifying a file to log to.</li>
</ul>
<p>So this time it is actually much more stable and reliable to use. Actually now it is so easy that each developer should develop with the trace parser next to him at all times to keep performance in mind from the beginning.</p>
<h3>Data Access : Ad Hoc mode</h3>
<p>When your X++ query is getting too big, then use Ad Hoc mode. Here you would actually only select the fields you need.<br />
Also, set the dynamics property on the query fields to false and set OnlyFetchActive to true on the FormDataSource</p>
<p>By selecting only the things you need, the kernel will not join all the tables in the table hierarchy but also the inherited tables where you need fields from.</p>
<h3>SQL TempTable</h3>
<p>In the AOT, you can now set the TableType on a table object to one of the following :</p>
<ul>
<li>InMemory (The old in memory temp table)</li>
<li>Regular (Non temporary table)</li>
<li>TempDB (SQL Server tempDB table)</li>
</ul>
<h3>SysOperation</h3>
<p>Here I can be brief (because the white paper about this is going to follow later on)</p>
<p>Basically the RunBase framework is now only there for backward compatibility! So now the new SysOperation framework will be used.<br />
This is residing in the AOS also, but more on that when I have a clearer view on this.</p>
<p>So this is what I could capture from the session. Probably missed a lot of other stuff too but for that, we will have the video&#8217;s <span style="font-family: Wingdings;">J</span></p>
<div class="plus-one-wrap"><g:plusone size="medium" href="http://www.ksaelen.be/wordpress/2011/01/performance-in-dynamics-ax-2012/"></g:plusone></div>]]></content:encoded>
			<wfw:commentRss>http://www.ksaelen.be/wordpress/2011/01/performance-in-dynamics-ax-2012/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Dynamics Ax 2012 Technical conference : Day 1 : Part 1</title>
		<link>http://www.ksaelen.be/wordpress/2011/01/technical-conference-day-1-part-1/</link>
		<comments>http://www.ksaelen.be/wordpress/2011/01/technical-conference-day-1-part-1/#comments</comments>
		<pubDate>Wed, 19 Jan 2011 19:25:27 +0000</pubDate>
		<dc:creator>Kenny Saelen</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Gaming]]></category>
		<category><![CDATA[Dynamics AX 2012]]></category>
		<category><![CDATA[Programming model]]></category>
		<category><![CDATA[Technical Conference]]></category>

		<guid isPermaLink="false">http://www.ksaelen.be/wordpress/?p=352</guid>
		<description><![CDATA[This articles will be brief, because I don&#8217;t have much time between the sessions J Yesterdag was the first day of the Dynamics Technical conference and following sessions were attended by me: Programming model improvements Part 1 of 2 Programming model improvements Part 2 of 2 Developing in .NET managed code and X++ Enhancements Solving [...]]]></description>
			<content:encoded><![CDATA[<p>This articles will be brief, because I don&#8217;t have much time between the sessions <span style="font-family: Wingdings;">J</span></p>
<p>Yesterdag was the first day of the Dynamics Technical conference and following sessions were attended by me:</p>
<ul>
<li>Programming model improvements Part 1 of 2</li>
<li>Programming model improvements Part 2 of 2</li>
<li>Developing in .NET managed code and X++ Enhancements</li>
<li>Solving the element ID problem</li>
</ul>
<h2>Programming model improvements Part 1 of 2</h2>
<p>From this session, I remember the following additional features:</p>
<ul>
<li>Table inheritance is added. So now you can have abstract tables which are then inherited by child tables.<br />
The unit of work pattern also comes into play here as there will be issues to address to manage transactions and code dealing with one &#8216;virtual record&#8217; which may consist of multiple child tables. (Vehicle table with child tables bycicle, car, truck, …)</li>
<li>Next to normal X++ temporary tables, there is now also support for temporary tables in SQL Server</li>
<li>Date effective tables have been added. This means you can actualy filter records based on an &#8216;effective as of date&#8217;</li>
<li>Eventing has been added so now you can actually subscribe methods to events on other classes. Also, this is implemented by drag and drop so it is actually user friendly to do this.</li>
<li>The normal batch framework has been &#8216;adjusted / replaced&#8217; with the SysOperation framework</li>
<li>The tree of linked tables are then linked by RecId, but you can actually have a key with fields specified in a field group to be used in the design when showing on what the linked was based</li>
<li>Tables have full text indes support now : This means they can be optimized for searches on text fields to look for certain words in the body.</li>
</ul>
<h3>Historical data pattern</h3>
<p>This one is actually cool. Let&#8217;s say you have a historical table to contain a history of sales. Then you can set properties on the SalesTable datasource and the kernel will keep the history for you. So when you change values on the sales order for example, the kernel will create / update records in the historical data table.</p>
<h3>Query ranges vs Query filters</h3>
<p>When using joins (outer joins) the query ranges can produce incorrect outcomes. But now query filters are used to fix that. Instead of using the QueryRange object on the query, you can now also use QueryFilter objects and they are more optimized for SQL Server.</p>
<p>The other sessions will be describes in following posts as there is new session beginning right now <span style="font-family: Wingdings;">J</span></p>
<div class="plus-one-wrap"><g:plusone size="medium" href="http://www.ksaelen.be/wordpress/2011/01/technical-conference-day-1-part-1/"></g:plusone></div>]]></content:encoded>
			<wfw:commentRss>http://www.ksaelen.be/wordpress/2011/01/technical-conference-day-1-part-1/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>IDMF Post Installation Issue : ODBC Connection</title>
		<link>http://www.ksaelen.be/wordpress/2010/12/idmf-post-installation-issue-odbc-connection/</link>
		<comments>http://www.ksaelen.be/wordpress/2010/12/idmf-post-installation-issue-odbc-connection/#comments</comments>
		<pubDate>Wed, 22 Dec 2010 11:34:37 +0000</pubDate>
		<dc:creator>Kenny Saelen</dc:creator>
				<category><![CDATA[Dynamics Ax]]></category>
		<category><![CDATA[Dynamics Ax 2009]]></category>
		<category><![CDATA[ODBC]]></category>
		<category><![CDATA[Win2008]]></category>
		<category><![CDATA[x64]]></category>

		<guid isPermaLink="false">http://www.ksaelen.be/wordpress/?p=346</guid>
		<description><![CDATA[After the installation of the IDMF there are some post installation steps to do. One of them is to populate the IDMF Management database with data from the Cross Reference. To do this, some job has to be run on the production database that makes connection to the IDMF database by ODBC. When I tried [...]]]></description>
			<content:encoded><![CDATA[<p>After the installation of the IDMF there are some post installation steps to do. One of them is to populate the IDMF Management database with data from the Cross Reference.
</p>
<p>To do this, some job has to be run on the production database that makes connection to the IDMF database by ODBC. When I tried to do this I get the error that the connection failed. Therefor I have made a little change to the classes responsible for the population.
</p>
<p>The DMTPopulateManagementDB\createConnection method is altered to work with a DSN (for some reason it did not work for me if not using a DSN) (And please don&#8217;t mind the hard coded name <span style="font-family:Wingdings">J</span>)
</p>
<p><img src="http://www.ksaelen.be/wordpress/wp-content/uploads/122210_1134_IDMFPostIns1.png" alt=""/>
	</p>
<p>For this to work, we need to create a system DSN on Windows to point to the SQL Server database. So we create one:
</p>
<p><img src="http://www.ksaelen.be/wordpress/wp-content/uploads/122210_1134_IDMFPostIns2.png" alt=""/>
	</p>
<p>But there is one issue here: On a 64-bit 2008 Server, the dynamics client will not find the 64-bit DSN created, so we have to start the 32 bit version of the ODBC Tool.
</p>
<p><img src="http://www.ksaelen.be/wordpress/wp-content/uploads/122210_1134_IDMFPostIns3.png" alt=""/>
	</p>
<p>When the 32 bit DSN is created, it worked for me.</p>
<div class="plus-one-wrap"><g:plusone size="medium" href="http://www.ksaelen.be/wordpress/2010/12/idmf-post-installation-issue-odbc-connection/"></g:plusone></div>]]></content:encoded>
			<wfw:commentRss>http://www.ksaelen.be/wordpress/2010/12/idmf-post-installation-issue-odbc-connection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AIF: Service actions lost after recreating service</title>
		<link>http://www.ksaelen.be/wordpress/2010/11/aif-service-actions-lost-after-recreating-service/</link>
		<comments>http://www.ksaelen.be/wordpress/2010/11/aif-service-actions-lost-after-recreating-service/#comments</comments>
		<pubDate>Tue, 16 Nov 2010 15:52:23 +0000</pubDate>
		<dc:creator>Kenny Saelen</dc:creator>
				<category><![CDATA[Dynamics Ax]]></category>
		<category><![CDATA[Action]]></category>
		<category><![CDATA[AIF]]></category>
		<category><![CDATA[AIFServiceGenerationManager]]></category>

		<guid isPermaLink="false">http://www.ksaelen.be/wordpress/?p=340</guid>
		<description><![CDATA[When you delete service objects (classes, macros, service node…) and recreate the service you may have run into the issue that none of the service operations were visible. Here&#8217;s how I solved it today when having the same issue. (We had to remove everything or else the problem was not solved)   The problem is that [...]]]></description>
			<content:encoded><![CDATA[<p>When you delete service objects (classes, macros, service node…) and recreate the service you may have run into the issue that none of the service operations were visible.<br />
Here&#8217;s how I solved it today when having the same issue. (We had to remove everything or else the problem was not solved)  </p>
<p>The problem is that the actions are not gone, but they were linked incorrectly. The AIFAction table contains the operations and also contains the classId of the class where the methods to handle the actions are.  </p>
<p><img src="http://www.ksaelen.be/wordpress/wp-content/uploads/111610_1547_AIFServicea1.png" alt="" />  </p>
<p>Well as the service objects were deleted and afterwards recreated, the class ID of the service class had been altered. Due to this changed ID, none of the operations were visible on the service.  </p>
<p>To fix this, just delete the current records in the AIFAction table for the corresponding service and then we can recreate the actions by calling the <strong>AIFServiceGenerationManager </strong>class,<strong><br />
</strong>method<strong> RegisterService</strong>.  </p>

<div class="wp_syntax"><div class="code"><pre class="xpp" style="font-family:monospace;">AIFServiceGenerationManager<span style="color: #00007f;">::</span><span style="color: #000000;">registerService</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">&quot;NVMPPointBalanceService&quot;</span><span style="color: #000000;">&#41;</span>;</pre></div></div>

<p>Then we can see the operations again in the services form.  </p>
<p><img src="http://www.ksaelen.be/wordpress/wp-content/uploads/111610_1547_AIFServicea2.png" alt="" /></p>
<div class="plus-one-wrap"><g:plusone size="medium" href="http://www.ksaelen.be/wordpress/2010/11/aif-service-actions-lost-after-recreating-service/"></g:plusone></div>]]></content:encoded>
			<wfw:commentRss>http://www.ksaelen.be/wordpress/2010/11/aif-service-actions-lost-after-recreating-service/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

