<?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>Doens.be &#187; Ax 5.0 (2009)</title>
	<atom:link href="http://www.doens.be/tag/ax50-2009/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.doens.be</link>
	<description></description>
	<lastBuildDate>Sat, 07 Jan 2012 04:20:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Change the language at runtime</title>
		<link>http://www.doens.be/2011/11/change-the-language-at-runtime/</link>
		<comments>http://www.doens.be/2011/11/change-the-language-at-runtime/#comments</comments>
		<pubDate>Wed, 30 Nov 2011 06:00:18 +0000</pubDate>
		<dc:creator>Jeroen Doens</dc:creator>
				<category><![CDATA[Dynamics AX]]></category>
		<category><![CDATA[Ax 4.0]]></category>
		<category><![CDATA[Ax 5.0 (2009)]]></category>
		<category><![CDATA[Ax 6.0 (2012)]]></category>
		<category><![CDATA[Infolog]]></category>
		<category><![CDATA[Language]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[X++]]></category>

		<guid isPermaLink="false">http://www.doens.be/?p=979</guid>
		<description><![CDATA[Normally when you change your language you go to your user options, change your current language and the restart the client. This week I got the question if it was possible to do so in runtime. You can do so by just calling the infolog.language(str 7 _languageCode). All labels that you load after calling this [...]]]></description>
			<content:encoded><![CDATA[<p>Normally when you change your language you go to your user options, change your current language and the restart the client. This week I got the question if it was possible to do so in runtime. You can do so by just calling the <strong>infolog.language(<span style="color: #000080;">str</span> <span style="color: #ff0000;">7</span> _languageCode)</strong>. All labels that you load after calling this method will be translated to the new language.<span id="more-979"></span></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
</pre></td><td class="code"><pre class="xpp" style="font-family:monospace;"><span style="color: #0000ff;">static</span> <span style="color: #0000ff;">void</span> JDO_ChangeLanguage<span style="color: #000000;">&#40;</span>Args _args<span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#123;</span>
    info<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">&quot;@SYS1&quot;</span><span style="color: #000000;">&#41;</span>;
    infolog.<span style="color: #000000;">language</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'nl-be'</span><span style="color: #000000;">&#41;</span>; <span style="color: #007f00;">// Change the language to nl-be</span>
    info<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">&quot;@SYS1&quot;</span><span style="color: #000000;">&#41;</span>;
    infolog.<span style="color: #000000;">language</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'fr-be'</span><span style="color: #000000;">&#41;</span>; <span style="color: #007f00;">// Change the language to fr-be</span>
    info<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">&quot;@SYS1&quot;</span><span style="color: #000000;">&#41;</span>;
    infolog.<span style="color: #000000;">language</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'it'</span><span style="color: #000000;">&#41;</span>; <span style="color: #007f00;">// Change the language to it</span>
    info<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">&quot;@SYS1&quot;</span><span style="color: #000000;">&#41;</span>;
    infolog.<span style="color: #000000;">language</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'de'</span><span style="color: #000000;">&#41;</span>; <span style="color: #007f00;">// Change the language to de</span>
    info<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">&quot;@SYS1&quot;</span><span style="color: #000000;">&#41;</span>;
    infolog.<span style="color: #000000;">language</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'en-us'</span><span style="color: #000000;">&#41;</span>; <span style="color: #007f00;">// Change the language to en-us</span>
    info<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">&quot;@SYS1&quot;</span><span style="color: #000000;">&#41;</span>;
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

<p>And the result is:</p>
<p><img class="size-full wp-image-980 alignnone" title="infologLanguage" src="http://www.doens.be/wp-content/uploads/2011/11/infologLanguage.png" alt="" width="356" height="390" /></p>
<p><strong>Caution</strong>: When you use this function make sure you get the current language before you use this function, so you can change it back when you don&#8217;t need it any more.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.doens.be/2011/11/change-the-language-at-runtime/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Amount in words</title>
		<link>http://www.doens.be/2011/11/amount-in-words/</link>
		<comments>http://www.doens.be/2011/11/amount-in-words/#comments</comments>
		<pubDate>Mon, 28 Nov 2011 06:00:42 +0000</pubDate>
		<dc:creator>Jeroen Doens</dc:creator>
				<category><![CDATA[Dynamics AX]]></category>
		<category><![CDATA[Ax 4.0]]></category>
		<category><![CDATA[Ax 5.0 (2009)]]></category>
		<category><![CDATA[Ax 6.0 (2012)]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[work]]></category>
		<category><![CDATA[X++]]></category>

		<guid isPermaLink="false">http://www.doens.be/?p=971</guid>
		<description><![CDATA[This week one of my customers asked me to place the amount in words on a invoice. I couldn&#8217;t believe that sush function wasn&#8217;t availible in standard Ax. After some research I found that the Global-class contains the following methods: static TempStr numeralsToTxt(real _num) static TempStr numeralsToTxt_EN(real _num) static TempStr numeralsToTxt_ES(real _num) static TempStr numeralsToTxt_FR(real [...]]]></description>
			<content:encoded><![CDATA[<p>This week one of my customers asked me to place the amount in words on a invoice. I couldn&#8217;t believe that sush function wasn&#8217;t availible in standard Ax. After some research I found that the <strong>Global-class</strong> contains the following methods:</p>
<ul>
<li><span style="color: #000080;">static TempStr</span> <strong>numeralsToTxt</strong>(<span style="color: #000080;">real</span> _num)</li>
<li><span style="color: #000080;">static TempStr</span> <strong>numeralsToTxt_EN</strong>(<span style="color: #000080;">real</span> _num)</li>
<li><span style="color: #000080;">static TempStr</span> <strong>numeralsToTxt_ES</strong>(<span style="color: #000080;">real</span> _num)</li>
<li><span style="color: #000080;">static TempStr</span> <strong>numeralsToTxt_FR</strong>(<span style="color: #000080;">real</span> _num)</li>
<li><span style="color: #000080;">static TempStr</span> <strong>numeralsToTxt_NL</strong>(<span style="color: #000080;">real</span> _num)</li>
</ul>
<p><span id="more-971"></span>So you can just use these methods like this:</p>

<div class="wp_syntax"><div class="code"><pre class="xpp" style="font-family:monospace;"><span style="color: #0000ff;">static</span> <span style="color: #0000ff;">void</span> JDO_AmountInWords<span style="color: #000000;">&#40;</span>Args _args<span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#123;</span>
    info<span style="color: #000000;">&#40;</span>numeralsToTxt<span style="color: #000000;">&#40;</span><span style="color: #000000;">123456789.12</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;
<span style="color: #000000;">&#125;</span></pre></div></div>

<p>And you get the following result:</p>
<p><img class="size-full wp-image-973 alignnone" title="numeralsToTxt" src="http://www.doens.be/wp-content/uploads/2011/11/numeralsToTxt.png" alt="" width="356" height="323" /></p>
<p>I know these methods aren&#8217;t perfect, but they can be a start and save you a lot of programming time.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.doens.be/2011/11/amount-in-words/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Portal development</title>
		<link>http://www.doens.be/2011/01/portal-development/</link>
		<comments>http://www.doens.be/2011/01/portal-development/#comments</comments>
		<pubDate>Mon, 31 Jan 2011 20:00:11 +0000</pubDate>
		<dc:creator>Jeroen Doens</dc:creator>
				<category><![CDATA[Dynamics AX]]></category>
		<category><![CDATA[Ax 5.0 (2009)]]></category>
		<category><![CDATA[Enterprise Portal]]></category>
		<category><![CDATA[link]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tips & Tricks]]></category>

		<guid isPermaLink="false">http://www.doens.be/?p=798</guid>
		<description><![CDATA[While surfing the web, I came across a blog from 2 friends (Youri De Brabandere and Christof Decraene) about Enterprise Portal development. For the moment they have only a few posts, but I&#8217;m sure their will be more soon. Have fun with the http://www.axepclipboard.com.]]></description>
			<content:encoded><![CDATA[<p>While surfing the web, I came across a blog from 2 friends (<a title="Youri De Brabandere" href="http://be.linkedin.com/pub/youri-de-brabandere/14/148/5b9" target="_blank">Youri De Brabandere</a> and <a title="Christof Decraene" href="http://be.linkedin.com/pub/christof-decreane/10/A32/5B9" target="_blank">Christof Decraene</a>) about Enterprise Portal development. For the moment they have only a few posts, but I&#8217;m sure their will be more soon.</p>
<p>Have fun with the <a title="Ax EP Clipboard" href="http://www.axepclipboard.com" target="_blank">http://www.axepclipboard.com</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.doens.be/2011/01/portal-development/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Ax Security got lost</title>
		<link>http://www.doens.be/2010/10/ax-security-fot-lost/</link>
		<comments>http://www.doens.be/2010/10/ax-security-fot-lost/#comments</comments>
		<pubDate>Thu, 07 Oct 2010 05:00:22 +0000</pubDate>
		<dc:creator>Jeroen Doens</dc:creator>
				<category><![CDATA[Dynamics AX]]></category>
		<category><![CDATA[Ax 5.0 (2009)]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Tips & Tricks]]></category>

		<guid isPermaLink="false">http://www.doens.be/?p=775</guid>
		<description><![CDATA[At one of the customers I&#8217;m currently working they took the decision to take a look at the spaghetti of security keys. We made a plan of how the new basic security-structure should look like and implemented it. After releasing this new more logical security structure we started to get the message &#8216;%2 %1 not [...]]]></description>
			<content:encoded><![CDATA[<p>At one of the customers I&#8217;m currently working they took the decision to take a look at the spaghetti of security keys. We made a plan of how the new basic security-structure should look like and implemented it. After releasing this new more logical security structure we started to get the message &#8216;<strong>%2 %1 not initialised.</strong>&#8216;.</p>
<p><a href="http://www.doens.be/wp-content/uploads/2010/10/20100928_1427_infolog_crop.png"><img class="size-full wp-image-776 alignnone" title="20100928_1427_infolog_crop" src="http://www.doens.be/wp-content/uploads/2010/10/20100928_1427_infolog_crop.png" alt="" width="189" height="202" /></a></p>
<p>After some research we discovered this issue occurred only with a few user groups and that the message only exists in the KTD-files, so it is kernel related. We checked the AccessRightsList-table for some inconsistencies but no luck. In the end we found a work-around that helped us solving this issue. When we make a <strong>export </strong>of the <strong>security </strong>and afterwards we <strong>import </strong>the export we just made, the issue disappeared by itself. Because there are a lot of user groups that could be infected with this issue, we automated this fix by running the import &#8211; export in a job.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.doens.be/2010/10/ax-security-fot-lost/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Where are breakpoints stored in Ax 2009</title>
		<link>http://www.doens.be/2010/09/where-are-breakpoints-stored-in-ax-2009/</link>
		<comments>http://www.doens.be/2010/09/where-are-breakpoints-stored-in-ax-2009/#comments</comments>
		<pubDate>Mon, 27 Sep 2010 05:00:33 +0000</pubDate>
		<dc:creator>Jeroen Doens</dc:creator>
				<category><![CDATA[Dynamics AX]]></category>
		<category><![CDATA[Ax 5.0 (2009)]]></category>
		<category><![CDATA[Debugging]]></category>
		<category><![CDATA[Tips & Tricks]]></category>

		<guid isPermaLink="false">http://www.doens.be/?p=715</guid>
		<description><![CDATA[In Ax 2009 breakpoints are stored in 2 tables, the SysBreakpointList and the SysBreakpoints table. You can find those tables in the SQL Management Studio or in the AOT under System Documentation -&#62; Tables. This is useful to know when you get &#8216;ghost-breakpoints&#8217;. My debugger started showing me older breakpoints from classes that were running [...]]]></description>
			<content:encoded><![CDATA[<p>In Ax 2009 breakpoints are stored in 2 tables, the <strong>SysBreakpointList </strong>and the <strong>SysBreakpoints </strong>table. You can find those tables in the SQL Management Studio or in the <strong>AOT </strong>under <strong>System Documentation</strong> -&gt; Tables. This is useful to know when you get &#8216;ghost-breakpoints&#8217;. My debugger started showing me older breakpoints from classes that were running in batch. What ever I tried, the breakpoints couldn&#8217;t be removed, even restarting the AOS made no difference. When you remove your<em> (or all)</em> records in both tables and restart your client/aos the &#8216;ghost-breakpoints&#8217; were gone.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.doens.be/2010/09/where-are-breakpoints-stored-in-ax-2009/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enterpris Portal &#8211; Tips &amp; Tricks (part1)</title>
		<link>http://www.doens.be/2010/09/enterpris-portal-tips-tricks-part1/</link>
		<comments>http://www.doens.be/2010/09/enterpris-portal-tips-tricks-part1/#comments</comments>
		<pubDate>Thu, 09 Sep 2010 05:00:20 +0000</pubDate>
		<dc:creator>Jeroen Doens</dc:creator>
				<category><![CDATA[Dynamics AX]]></category>
		<category><![CDATA[Ax 5.0 (2009)]]></category>
		<category><![CDATA[Enterprise Portal]]></category>
		<category><![CDATA[Tips & Tricks]]></category>

		<guid isPermaLink="false">http://www.doens.be/?p=672</guid>
		<description><![CDATA[Ilearned something new from my colleague Koen Van Hauwenhuyse. He showed me 2 extra querystring parameters you can add tot the portal URL so the content will be shown different. The normal Url of the page: http://***/TSTReplacement.aspx?WCMP=TST The Url for the rolecenter-view of the same page: http://***/TSTReplacement.aspx?WCMP=TST&#38;RUNONCLIENT=1 The Url for the same page without any [...]]]></description>
			<content:encoded><![CDATA[<p>Ilearned something new from my colleague <a href="http://be.linkedin.com/pub/koen-van-hauwenhuyse/4/74/150" target="_blank">Koen Van Hauwenhuyse</a>. He showed me 2 extra <a href="http://nl.wikipedia.org/wiki/Querystring" target="_blank">querystring</a> parameters you can add tot the portal URL so the content will be shown different.</p>
<p>The <strong>normal Url</strong> of the page: http://***/TSTReplacement.aspx?WCMP=TST<br />
<a href="http://www.doens.be/wp-content/uploads/2010/09/URL_1.jpg"></a><a href="http://www.doens.be/wp-content/uploads/2010/09/URL_1.png"><img class="size-medium wp-image-676 alignnone" title="Normal URL" src="http://www.doens.be/wp-content/uploads/2010/09/URL_1-300x235.png" alt="" width="300" height="235" /></a></p>
<p>The <strong>Url </strong>for the <strong>rolecenter</strong>-view of the same page: http://***/TSTReplacement.aspx?WCMP=TST<strong>&amp;RUNONCLIENT=1</strong><br />
<a href="http://www.doens.be/wp-content/uploads/2010/09/URL_2.png"><img class="size-medium wp-image-677 alignnone" title="URL RunOnClient" src="http://www.doens.be/wp-content/uploads/2010/09/URL_2-300x194.png" alt="" width="300" height="194" /></a></p>
<p>The <strong>Url </strong>for the same page <strong>without </strong>any <strong>navigation</strong>: http://***/TSTReplacement.aspx?WCMP=TST<strong>&amp;NONAV=1</strong><br />
<a href="http://www.doens.be/wp-content/uploads/2010/09/URL_3.png"><img class="alignnone size-medium wp-image-678" title="URL NoNav" src="http://www.doens.be/wp-content/uploads/2010/09/URL_3-300x175.png" alt="" width="300" height="175" /></a></p>
<p><span id="more-672"></span>You can find the logic behind this in the masterpage that Sharepoint is using. The masterpages can be found under<em> C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES\DynamicsAxEnterprisePortal\<strong>defaultax.master</strong></em>.<br />
<a href="http://www.doens.be/wp-content/uploads/2010/09/defaultAx.master.png"><img class="alignnone size-full wp-image-688" title="defaultAx.master" src="http://www.doens.be/wp-content/uploads/2010/09/defaultAx.master.png" alt="" width="501" height="115" /></a></p>
<p>In the beginning of this file you see the methods <strong>runningOnClient()</strong> and <strong>hideNavigation()</strong>:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
</pre></td><td class="code"><pre class="asp" style="font-family:monospace;">&lt;%@Master language=&quot;C#&quot;%&gt;
&lt;%@ Register Tagprefix=&quot;SharePoint&quot; Namespace=&quot;Microsoft.SharePoint.WebControls&quot; Assembly=&quot;Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c&quot; %&gt; &lt;%@ Register Tagprefix=&quot;Utilities&quot; Namespace=&quot;Microsoft.SharePoint.Utilities&quot; Assembly=&quot;Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c&quot; %&gt; &lt;%@ Import Namespace=&quot;Microsoft.SharePoint&quot; %&gt;
&lt;%@ Import Namespace=&quot;Microsoft.SharePoint.ApplicationPages&quot; %&gt;
&lt;%@ Register Tagprefix=&quot;WebPartPages&quot; Namespace=&quot;Microsoft.SharePoint.WebPartPages&quot; Assembly=&quot;Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c&quot; %&gt;
&lt;%@ Register TagPrefix=&quot;wssuc&quot; TagName=&quot;Welcome&quot; src=&quot;~/_controltemplates/Welcome.ascx&quot; %&gt;
&lt;%@ Register TagPrefix=&quot;wssuc&quot; TagName=&quot;DesignModeConsole&quot; src=&quot;~/_controltemplates/DesignModeConsole.ascx&quot; %&gt;
&lt;%@ Register Tagprefix=&quot;Dynamics&quot; Namespace=&quot;Microsoft.Dynamics.Framework.Portal.UI.WebControls&quot; Assembly=&quot;Microsoft.Dynamics.Framework.Portal, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot; %&gt;
&lt;%@ Register Assembly=&quot;System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot; Namespace=&quot;System.Web.UI&quot; TagPrefix=&quot;asp&quot; %&gt;
&nbsp;
&lt;%@ Assembly Name=&quot;Microsoft.Dynamics.Framework.BusinessConnector, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, Custom=null&quot; %&gt;
&lt;%@ Import Namespace=&quot;Microsoft.Dynamics.Framework.Portal&quot; %&gt;
&lt;%@ Import Namespace=&quot;Microsoft.Dynamics.Framework.Portal.UI&quot; %&gt;
&lt;%@ Import Namespace=&quot;Microsoft.Dynamics.Framework.BusinessConnector.Session&quot; %&gt;
&nbsp;
&lt;script runat=&quot;server&quot;&gt;
&nbsp;
    bool runningOnClient()
    {
        return (Context.Request.Params.Get(&quot;RUNONCLIENT&quot;) == &quot;1&quot;);        
    }
&nbsp;
    bool hideNavigation()
    {
        return (Context.Request.Params.Get(&quot;NONAV&quot;) == &quot;1&quot;);        
    }
&nbsp;
    string getStyleRunOnClientDisplayStyle()
    {
        if (runningOnClient())
            return &quot;&quot;;
        return &quot;display:none;&quot;;
    }
&nbsp;
    string getStyleRunOnBrowserDisplayStyle()
    {
        if (runningOnClient() || hideNavigation())
            return &quot;display:none;&quot;;
        return &quot;&quot;;
    }
&nbsp;
    string getStyleRunOnBrowserBorderStyle()
    {
        if (runningOnClient() || hideNavigation())
            return &quot;border-style:none;&quot;;
        return &quot;&quot;;
    }
...</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.doens.be/2010/09/enterpris-portal-tips-tricks-part1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to make methods on fields disappear (aka a bug)</title>
		<link>http://www.doens.be/2010/08/how-to-make-methods-on-fields-disappear-aka-a-bug/</link>
		<comments>http://www.doens.be/2010/08/how-to-make-methods-on-fields-disappear-aka-a-bug/#comments</comments>
		<pubDate>Thu, 05 Aug 2010 05:00:30 +0000</pubDate>
		<dc:creator>Jeroen Doens</dc:creator>
				<category><![CDATA[Dynamics AX]]></category>
		<category><![CDATA[Ax 5.0 (2009)]]></category>
		<category><![CDATA[Bug]]></category>
		<category><![CDATA[Forms]]></category>
		<category><![CDATA[MorphX]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.doens.be/?p=647</guid>
		<description><![CDATA[Me and some of my colleagues are currently working with a customer on a Ax 2009 SP1 RU4. The other day we came to the conclusion that the modified methods on fields in a form suddenly disappeared. I know, you should write as less as possible code on a form, but sometimes there is no way [...]]]></description>
			<content:encoded><![CDATA[<p>Me and some of my colleagues are currently working with a customer on a Ax 2009 SP1 RU4. The other day we came to the conclusion that the modified methods on fields in a form suddenly disappeared. I know, you should write as less as possible code on a form, but sometimes there is no way around this.</p>
<p>After some research we found a reproduction how these methods suddenly disappeared:</p>
<ol>
<li>Go      tot the AOT and chose a form</li>
<li>Open      the [FORM] -&gt; Data Sources -&gt; [TABLE] -&gt; Fields -&gt; [A FIELD] -node</li>
<li>Add      a method <em>(for example the      modified-method)</em></li>
<li>Save your form</li>
<li>Go      to the properties of the table in the datasource</li>
<li>Place      your cursor in the table property <em>(properties      window)</em></li>
<li>Push ENTER</li>
</ol>
<p>The result is that the table will be reloaded in the form and all methods you created on the fields will be gone. So here you have another reason why you shouldn’t write lots of code on your forms. You can only lose it by accident.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.doens.be/2010/08/how-to-make-methods-on-fields-disappear-aka-a-bug/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Records with RecId 101090</title>
		<link>http://www.doens.be/2010/08/records-with-recid-101090/</link>
		<comments>http://www.doens.be/2010/08/records-with-recid-101090/#comments</comments>
		<pubDate>Wed, 04 Aug 2010 05:00:37 +0000</pubDate>
		<dc:creator>Jeroen Doens</dc:creator>
				<category><![CDATA[Dynamics AX]]></category>
		<category><![CDATA[Ax 4.0]]></category>
		<category><![CDATA[Ax 5.0 (2009)]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[X++]]></category>

		<guid isPermaLink="false">http://www.doens.be/?p=643</guid>
		<description><![CDATA[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&#8217;ve put a break-point on my postload method and noticed the recId (this.recid of the HRMBenefitType table). This is always the 101090. [...]]]></description>
			<content:encoded><![CDATA[<p>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.</p>
<p>I&#8217;ve put a break-point on my postload method and noticed the <strong>recId</strong> (this.recid of the HRMBenefitType table). This is always the <strong>101090</strong>. When I check this in the tablebrowser, this does not match the actual RecId valule.<br />
I checked the SQL-trace-log and noticed the following instruction:</p>
<blockquote><p>SELECT A.HRMBENEFITTYPEID,A.DESCRIPTION,A.RECVERSION,101090 FROM HRMBENEFITTYPE A WHERE (DATAAREAID=?) ORDER BY A.DATAAREAID,A.HRMBENEFITTYPEID OPTION(FAST 1)</p></blockquote>
<p><strong>The solution</strong> to this problem is simple. Just change the <strong>CacheLookup</strong> property to <strong>EntireTable</strong> and the strange behaviour of the RecId-field stops.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.doens.be/2010/08/records-with-recid-101090/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Enterprise Portal – titlebar issue (part 2)</title>
		<link>http://www.doens.be/2010/06/enterprise-portal-%e2%80%93-titlebar-issue-part-2/</link>
		<comments>http://www.doens.be/2010/06/enterprise-portal-%e2%80%93-titlebar-issue-part-2/#comments</comments>
		<pubDate>Fri, 25 Jun 2010 14:10:37 +0000</pubDate>
		<dc:creator>Jeroen Doens</dc:creator>
				<category><![CDATA[Dynamics AX]]></category>
		<category><![CDATA[Ax 5.0 (2009)]]></category>
		<category><![CDATA[Enterprise Portal]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tips & Tricks]]></category>

		<guid isPermaLink="false">http://www.doens.be/?p=617</guid>
		<description><![CDATA[While I was checking my previous Enterprise Portal titlebar issue, me and my colleagues found a second bug. When you use a single quote (&#8216;) in the PageTitle, the name of the Page Defenition object is displayed instead of the actual label with the singel quote. We couldn&#8217;t find a solution yet, but we&#8217;re still looking. Anyone [...]]]></description>
			<content:encoded><![CDATA[<p>While I was checking my <a href="http://www.doens.be/2010/06/enterprise-portal-%e2%80%93-titlebar-issue/">previous Enterprise Portal titlebar issue</a>, me and my colleagues found a second bug. When you use a single quote (<strong>&#8216;</strong>) in the PageTitle, the name of the Page Defenition object is displayed instead of the actual label with the singel quote. We couldn&#8217;t find a solution yet, but we&#8217;re still looking.</p>
<p>Anyone any idea?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.doens.be/2010/06/enterprise-portal-%e2%80%93-titlebar-issue-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enterprise Portal – titlebar issue</title>
		<link>http://www.doens.be/2010/06/enterprise-portal-%e2%80%93-titlebar-issue/</link>
		<comments>http://www.doens.be/2010/06/enterprise-portal-%e2%80%93-titlebar-issue/#comments</comments>
		<pubDate>Mon, 21 Jun 2010 05:00:16 +0000</pubDate>
		<dc:creator>Jeroen Doens</dc:creator>
				<category><![CDATA[Dynamics AX]]></category>
		<category><![CDATA[Ax 5.0 (2009)]]></category>
		<category><![CDATA[Enterprise Portal]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tips & Tricks]]></category>

		<guid isPermaLink="false">http://www.doens.be/?p=615</guid>
		<description><![CDATA[When you modify the PageTitle property of a new Page Definition to a label with a &#8216;special&#8217; character in it. You will see that the title is not rendered well. For example when you use a é it will be rendered as &#38;#233. I logged this case with Microsoft and for the moment there is no [...]]]></description>
			<content:encoded><![CDATA[<p>When you modify the <strong>PageTitle</strong> property of a new Page Definition to a label with a &#8216;special&#8217; character in it. You will see that the title is not rendered well. For example when you use a <strong>é</strong> it will be rendered as <strong>&amp;#233</strong>. I logged this case with Microsoft and for the moment there is no fix for this issue, but they suggested a simple workaround.</p>
<p><strong>Workaround:</strong><br />
When you edit your page in Sharepoint, you can remove the &#8216;Dynamics Page Title Web Part&#8217; and replace it by the old &#8216;Page Title Web Part&#8217;</p>
<p><strong>Explanation:<br />
</strong>The reason why there are two Web Parts is mainly the &#8220;Page Title Web Part&#8221; is the old Web Framework (Dynamics AX 4.0) &#8211; and rendering takes part in X++ code while &#8220;Dynamics Page Title Web Part&#8221; is implemented completely in C#.</p>
<p><em>(Source: Microsoft)</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.doens.be/2010/06/enterprise-portal-%e2%80%93-titlebar-issue/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

