<?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>Got C/AL?</title>
	<atom:link href="http://gotcal.com/index.php/feed/" rel="self" type="application/rss+xml" />
	<link>http://gotcal.com</link>
	<description>Inside C/Side, Tools and random thoughts</description>
	<lastBuildDate>Tue, 24 Aug 2010 16:29:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Attachments are not released until the Microsoft Dynamics NAV client is closed when you use the SMTP mail codeunit (400)</title>
		<link>http://gotcal.com/index.php/2010/08/attachments-are-not-released-until-the-microsoft-dynamics-nav-client-is-closed-when-you-use-the-smtp-mail-codeunit-400/</link>
		<comments>http://gotcal.com/index.php/2010/08/attachments-are-not-released-until-the-microsoft-dynamics-nav-client-is-closed-when-you-use-the-smtp-mail-codeunit-400/#comments</comments>
		<pubDate>Mon, 23 Aug 2010 19:39:25 +0000</pubDate>
		<dc:creator>SNielsen</dc:creator>
				<category><![CDATA[Dynamics NAV]]></category>
		<category><![CDATA[external]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[smtp]]></category>

		<guid isPermaLink="false">http://gotcal.com/?p=551</guid>
		<description><![CDATA[As reported in multiple blogs and user forums, the SMTP component had an issue about locking the files that was attached to sent emails. This usually always caused issues, as you would clean up your temporarily generated files after having sent them with the email attachment. According to the released hotfix KB2280492, this was occurred [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-562" title="patch" src="http://gotcal.com/wp-content/uploads/2010/08/patch.png" alt="" width="299" height="234" />As reported in multiple blogs and user forums, the SMTP component had an issue about locking the files that was attached to sent emails. This usually always caused issues, as you would clean up your temporarily generated files after having sent them with the email attachment.</p>
<p>According to the released hotfix <a href="https://mbs2.microsoft.com/Knowledgebase/KBDisplay.aspx?scid=kb$EN-US$2280492&amp;wa=wsignin1.0">KB2280492</a>, this was occurred occurs because Microsoft .NET Framework waits for  the garbage collector to release resources when .NET COM objects are  retained in memory.</p>
<p>Curious as most i looked into the fix they released to see what was actually changed, as it uses some standard .NET components to send the emails with.</p>
<p><span id="more-551"></span>So to start with lets take a look at the methods of the old old mail component, that had the issue with the GC (garbage collection):</p>
<p><img class="alignnone size-full wp-image-553" title="smtpmethods" src="http://gotcal.com/wp-content/uploads/2010/08/smtpmethods.png" alt="" width="442" height="580" /></p>
<p>Next lets take a look at the new component to see the methods that has been added to handle overrides for Dispose():</p>
<p><img class="alignnone size-full wp-image-554" title="smtpmethodsNEW" src="http://gotcal.com/wp-content/uploads/2010/08/smtpmethodsNEW.png" alt="" width="329" height="150" /></p>
<p>Looking at the specific method you will see this code in the Dispose():</p>
<p><a href="http://gotcal.com/wp-content/uploads/2010/08/code.png" rel="lightbox"><img class="alignnone size-full wp-image-555" title="code" src="http://gotcal.com/wp-content/uploads/2010/08/code.png" alt="" width="190" height="103" /></a></p>
<p>Simple, thanks Microsoft for fixing and thanks to Steffen Brandt for pointing me to this hotfix! Anyways, as you can see it is back to work now &#8211; looking at a week here in southern California with temperatures in the 100&#8242;s, ouch &#8211; going to be fun!</p>
<p>The above &#8220;reflection&#8221; on .NET code is done with Red Gates .NET Reflector tool. I will do a blog posting later this week, on how to use this great tool.</p>
<p>Here is the KB files: <table style="border: 1px solid #CCC;" cellpadding="3" width="100%">
  <tr>
    <td width="35">
      <img src="http://gotcal.com/wp-content/plugins/downloads-manager/img/icons/winzip.gif" alt="http://gotcal.com/wp-content/plugins/downloads-manager/img/icons/winzip.gif">
    </td>
    <td>
      <b>download:</b> <a href="http://gotcal.com/?file_id=10">SMTP Hotfix KB2280492</a> <small>(10.96KB)</small><br />
      <b>added:</b> 24/08/2010 <br />
      <b>clicks:</b> 26 <br />
      <b>description:</b>  <br />
    </td>
  </tr>
</table></p>
]]></content:encoded>
			<wfw:commentRss>http://gotcal.com/index.php/2010/08/attachments-are-not-released-until-the-microsoft-dynamics-nav-client-is-closed-when-you-use-the-smtp-mail-codeunit-400/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>NAVication, back later in august!</title>
		<link>http://gotcal.com/index.php/2010/08/navication-back-later-in-august/</link>
		<comments>http://gotcal.com/index.php/2010/08/navication-back-later-in-august/#comments</comments>
		<pubDate>Tue, 10 Aug 2010 05:25:01 +0000</pubDate>
		<dc:creator>SNielsen</dc:creator>
				<category><![CDATA[Site news]]></category>
		<category><![CDATA[summer]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[vacation]]></category>

		<guid isPermaLink="false">http://gotcal.com/?p=544</guid>
		<description><![CDATA[Enjoying my vacation with the family. See you later this month.]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-548" title="summer" src="http://gotcal.com/wp-content/uploads/2010/08/summer.jpg" alt="" width="241" height="209" />Enjoying my vacation with the family. See you later this month.</p>
]]></content:encoded>
			<wfw:commentRss>http://gotcal.com/index.php/2010/08/navication-back-later-in-august/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is in your Dynamics NAV toolbelt? NavObjectViewer!</title>
		<link>http://gotcal.com/index.php/2010/07/what-is-in-your-dynamics-nav-toolbelt-navobjectviewer/</link>
		<comments>http://gotcal.com/index.php/2010/07/what-is-in-your-dynamics-nav-toolbelt-navobjectviewer/#comments</comments>
		<pubDate>Fri, 30 Jul 2010 19:12:53 +0000</pubDate>
		<dc:creator>SNielsen</dc:creator>
				<category><![CDATA[Dynamics NAV]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[objects]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://gotcal.com/?p=510</guid>
		<description><![CDATA[In this series of posts &#8220;What is in your Dynamics NAV toolbelt&#8221;, i will highlight some of the tools i find very usefull in my daily work, and couldn&#8217;t live without. There are probably great alternatives to them out there, so please share your experiences with me. NAVObjectViewer by Gerd Hübner is one of simplest [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://gotcal.com/wp-content/uploads/2010/07/toolbelt.jpg" rel="lightbox"><img class="alignright size-full wp-image-512" title="toolbelt" src="http://gotcal.com/wp-content/uploads/2010/07/toolbelt.jpg" alt="" width="234" height="250" /></a>In this series of posts &#8220;What is in your Dynamics NAV toolbelt&#8221;, i will highlight some of the tools i find very usefull in my daily work, and couldn&#8217;t live without. There are probably great alternatives to them out there, so please share your experiences with me.</p>
<p>NAVObjectViewer by Gerd Hübner is one of simplest and most useful tools for a NAV Developer, when you have to dig into a database with modifications, that often are undocumented or you just get a brief explanation of what a previous mod is doing. It is a great alternative to using the Developers Toolkit, as it does not require any setups and other dependencies. Just a quick and easy way to find objects with a nice search interface. And yes, it also has REGEX search capabilities.</p>
<p><span id="more-510"></span>First off download the NAVObjectViewer from this download link on <a href="http://mibuso.com">MIBUSO</a>: <a href="http://mibuso.com/dlinfo.asp?FileID=1094">http://mibuso.com/dlinfo.asp?FileID=1094</a>. This is the official description of the tool from the download page:</p>
<p style="padding-left: 30px;">&#8220;With this tool you can view and analyze NAV text object files. After  importing an object file, the objects are displayed in a treeview  (explorer like) structure.</p>
<p style="padding-left: 30px;">You can enter one or more search expressions to get only those objects  containing the search strings. You can right click an object to get  those objects which use the selected object in any way. For example if  you look for the usage of a table object, all objects where shown which  use record variables of that table. The matching search strings are  highlighted in the text part of the object viewer.</p>
<p style="padding-left: 30px;">The tool is much simpler than for example Developer&#8217;s Toolkit, but it is  much faster. You can analyze arbitrary object files from NAV version  2.0 up to 5.0 SP1. There is a new (commercial) version available which  can handle object files from NAV 2009, too, including the new page  objects and the extended report format (xml part).</p>
<p style="padding-left: 30px;">Note: If you open an object file created with NAV 2009 with this version  of the tool, it may crash due to some missing carriage return signs in  the xml part of report objects.</p>
<p style="padding-left: 30px;"><strong>Version 5.1:</strong><br />
- view, analyze and save NAV 5.0 (or older) object text files<br />
- supports regular expressions<br />
- case insensitive search possible<br />
- pdf documentation<br />
- free version 5.1</p>
<p style="padding-left: 30px;">Update 30/04/2009:<br />
This is an update with some bug fixes (in certain cases the error &#8220;No  valid NAV object file&#8221; appears, though the file is valid) &#8211; and some new  features. You can manually remove objects from the list and save the  displayed objects to a new text file (new Save-Button).&#8221;</p>
<p>How to use it very simple. Export the objects of interest from Dynamics NAV in text format from the Object Designer. Open the NAVObjectViewer and load the previously exported text file. You will be presented with something like this:</p>
<p><a href="http://gotcal.com/wp-content/uploads/2010/07/nov_s11.png" rel="lightbox"><img class="alignnone size-full wp-image-535" title="nov_s1" src="http://gotcal.com/wp-content/uploads/2010/07/nov_s11.png" alt="" width="640" height="482" /></a></p>
<p>Enter a search term, eg. the field name: &#8220;last counting period&#8221; and it filters the objects list to only show objects where this is found:</p>
<p><a href="http://gotcal.com/wp-content/uploads/2010/07/nov_s2.png" rel="lightbox"><img class="alignnone size-full wp-image-540" title="nov_s2" src="http://gotcal.com/wp-content/uploads/2010/07/nov_s2.png" alt="" width="640" height="482" /></a></p>
<p>I love this tool due to it simplistic approach and the REGEX feature for searching the code. The Developers Toolkit has more advanced functionality, but NAVObjectViewer provides 9 out of 10 times exactly what you need.</p>
<p>Thanks Gerd!</p>
]]></content:encoded>
			<wfw:commentRss>http://gotcal.com/index.php/2010/07/what-is-in-your-dynamics-nav-toolbelt-navobjectviewer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Testing App-V for Dynamics NAV RTC 2009</title>
		<link>http://gotcal.com/index.php/2010/07/testing-app-v-for-dynamics-nav-rtc-2009/</link>
		<comments>http://gotcal.com/index.php/2010/07/testing-app-v-for-dynamics-nav-rtc-2009/#comments</comments>
		<pubDate>Sun, 18 Jul 2010 17:41:41 +0000</pubDate>
		<dc:creator>SNielsen</dc:creator>
				<category><![CDATA[Dynamics NAV]]></category>
		<category><![CDATA[app-v]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[rtc]]></category>
		<category><![CDATA[SaaS]]></category>
		<category><![CDATA[upgrade]]></category>
		<category><![CDATA[virtualization]]></category>

		<guid isPermaLink="false">http://gotcal.com/?p=499</guid>
		<description><![CDATA[I recently got the test credentials for the Saasplaza RTC testdrive that i have blogged about earlier (App-V streaming of Dynamics NAV) and decided today to give it a quick spin. Along with the install there is a great installation guide for the software that provides very easy to follow step by step installation for [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-medium wp-image-503" title="app-v-usb" src="http://gotcal.com/wp-content/uploads/2010/07/app-v-usb-300x142.jpg" alt="" width="300" height="142" />I recently got the test credentials for the Saasplaza RTC testdrive that i have blogged about earlier (<a href="http://gotcal.com/index.php/2010/05/app-v-streaming-of-dynamics-nav-rtc-2/">App-V streaming of Dynamics NAV</a>) and decided today to give it a quick spin. Along with the install there is a great installation guide for the software that provides very easy to follow step by step installation for both XP and Win7 workstations. I did the Win7 x64 installation, and it took approx. 5 minutes to setup.</p>
<p>Installation is basically</p>
<ul>
<li>downloading the Microsoft Application Virtualization client<span style="font-family: Times New Roman; font-size: 12pt;"><br />
</span></li>
<li>setup credentials</li>
<li>Setup serverinformation</li>
<li>
<div>Download updates</div>
</li>
</ul>
<p><span id="more-499"></span>This blog post is mainly about the ease of installation, and my first hand experiences with installing App-V. I have never used Application Virtualization before. Here are some screenshots from my installation:</p>
<p>When i started the installer it needed to install some required components:</p>
<p><img src="http://gotcal.com/wp-content/uploads/2010/07/071410_2041_TestingAppV1.png" alt="" /><span style="font-family: Times New Roman; font-size: 12pt;"><br />
</span></p>
<p>All required software was installed and then the installer for App V presented itself:</p>
<p><img src="http://gotcal.com/wp-content/uploads/2010/07/071410_2041_TestingAppV2.png" alt="" /><span style="font-family: Times New Roman; font-size: 12pt;"><br />
</span></p>
<p>I choose the typical install (as per the documentation):</p>
<p><img src="http://gotcal.com/wp-content/uploads/2010/07/071410_2041_TestingAppV3.png" alt="" /><span style="font-family: Times New Roman; font-size: 12pt;"><br />
</span></p>
<p>That all finished within a few seconds. Next step is setup some stored credentials for virtualized applications to use. The installation guide has sections for this for the various OS you can be installing on.</p>
<p><img src="http://gotcal.com/wp-content/uploads/2010/07/071410_2041_TestingAppV4.png" alt="" /><span style="font-family: Times New Roman; font-size: 12pt;"><br />
</span></p>
<p style="margin-left: 27pt;">
<p style="margin-left: 27pt;"><img src="http://gotcal.com/wp-content/uploads/2010/07/071410_2041_TestingAppV5.png" alt="" /><span style="font-family: Times New Roman; font-size: 12pt;"><br />
</span></p>
<p>Next run the AppV client,</p>
<p><img src="http://gotcal.com/wp-content/uploads/2010/07/071410_2041_TestingAppV6.png" alt="" /><span style="font-family: Times New Roman; font-size: 12pt;"><br />
</span></p>
<p>And setup the new connection via the provided URL. The icon for Dynamics NAV 2009 SP1 gets published to your desktop, and when running the first time it downloads updates:</p>
<p><img src="http://gotcal.com/wp-content/uploads/2010/07/071410_2041_TestingAppV7.png" alt="" /><span style="font-family: Times New Roman; font-size: 12pt;"><br />
</span></p>
<p><img src="http://gotcal.com/wp-content/uploads/2010/07/071410_2041_TestingAppV8.png" alt="" /><span style="font-family: Times New Roman; font-size: 12pt;"><br />
</span></p>
<p>As you can see it is the regular NAV2009 SP1 it is running &#8211; I thought R2 release was required for AppV.</p>
<p><a href="http://gotcal.com/wp-content/uploads/2010/07/071410_2041_TestingAppV9.png" rel="lightbox"><img class="alignnone size-medium wp-image-498" title="Dynamics NAV 2009 SP1 running in AppV" src="http://gotcal.com/wp-content/uploads/2010/07/071410_2041_TestingAppV9-300x223.png" alt="" width="300" height="223" /></a><span style="font-family: Times New Roman; font-size: 12pt;"><br />
</span></p>
<p>And you are ready to go. I have not done any detailed benchmarking of the performance, but the client seems pretty responsive and pages open up quickly. And App-V it integrates perfectly with all of your local resources.</p>
<p>Back to some testing&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://gotcal.com/index.php/2010/07/testing-app-v-for-dynamics-nav-rtc-2009/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Object Permission Report for Microsoft Dynamics NAV</title>
		<link>http://gotcal.com/index.php/2010/07/object-permission-report-for-microsoft-dynamics-nav/</link>
		<comments>http://gotcal.com/index.php/2010/07/object-permission-report-for-microsoft-dynamics-nav/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 16:54:23 +0000</pubDate>
		<dc:creator>SNielsen</dc:creator>
				<category><![CDATA[Dynamics NAV]]></category>
		<category><![CDATA[object]]></category>
		<category><![CDATA[objects]]></category>
		<category><![CDATA[report]]></category>
		<category><![CDATA[statistics]]></category>
		<category><![CDATA[system table]]></category>

		<guid isPermaLink="false">http://gotcal.com/?p=484</guid>
		<description><![CDATA[Microsoft just released the latest version of the object permission spreadsheet. Compared to what i have seen before i think this is a brand new edition with more features in it. &#8220;The purpose of this report is to provide information on what ojbects are included within the modules for Microsoft Dynamics NAV&#8221; as follows: Search [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-488" src="http://gotcal.com/wp-content/uploads/2010/07/stopgo.jpg" alt="" width="150" height="150" />Microsoft just released the latest version of the object permission spreadsheet. Compared to what i have seen before i think this is a brand new edition with more features in it.</p>
<p>&#8220;The purpose of this report is to provide information on what ojbects are included within the modules for Microsoft Dynamics NAV&#8221; as follows:</p>
<ul>
<li>Search for individual objects and review the modules that include those objects</li>
<li>Search for all objects included within specific modules</li>
<li>Description of RIMDX</li>
</ul>
<p><span id="more-484"></span>The spreadsheet has built in macros you need to enable, and looks like this when you search in it:</p>
<p><a href="http://gotcal.com/wp-content/uploads/2010/07/objsearch01.png" rel="lightbox"><img class="alignleft size-full wp-image-485" title="objsearch01" src="http://gotcal.com/wp-content/uploads/2010/07/objsearch01.png" alt="" width="766" height="241" /></a></p>
<p><a href="http://gotcal.com/wp-content/uploads/2010/07/objsearch02.png" rel="lightbox"><img class="alignleft size-full wp-image-486" title="objsearch02" src="http://gotcal.com/wp-content/uploads/2010/07/objsearch02.png" alt="" width="764" height="133" /></a></p>
<p>Due to Microsofts disclaimer in the file, im not sure i can post it in the download section here. But here is the link to the file on the Microsoft Partnersite: <a href="https://mbs.microsoft.com/partnersource/ordering/orderingnews/msdnavobjectperreport.htm">https://mbs.microsoft.com/partnersource/ordering/orderingnews/msdnavobjectperreport.htm</a></p>
<p>A real nice feature i just learned today, is when you do multiple searches it appends the results:</p>
<p><a href="http://gotcal.com/wp-content/uploads/2010/07/results.png" rel="lightbox"><img class="alignnone size-full wp-image-507" title="results" src="http://gotcal.com/wp-content/uploads/2010/07/results.png" alt="" width="1000" height="167" /></a></p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;">
<table style="border-collapse: collapse; width: 96pt;" border="0" cellspacing="0" cellpadding="0" width="128">
<col style="width: 48pt;" span="2" width="64"></col>
<tbody>
<tr style="height: 15pt;" height="20">
<td style="height: 15pt; width: 96pt;" colspan="2" width="128" height="20">The purpose of this report is to provide information on what   objects are included within the modules for Microsoft Dynamics NAV.<span> </span></td>
</tr>
<tr style="height: 15pt;" height="20">
<td style="height: 15pt;" colspan="2" height="20">The contents   of the reports are as follows -</td>
</tr>
<tr style="height: 15pt;" height="20">
<td class="xl65" style="height: 15pt;" height="20">1</td>
<td>Search for individual objects and review the modules that include those   objects.</td>
</tr>
<tr style="height: 15pt;" height="20">
<td class="xl66" style="height: 15pt;" height="20">2</td>
<td>Search for all objects included within specific modules.<span> </span></td>
</tr>
<tr style="height: 15pt;" height="20">
<td class="xl66" style="height: 15pt;" height="20">3</td>
<td>Description of RIMDX.</td>
</tr>
</tbody>
</table>
</div>
]]></content:encoded>
			<wfw:commentRss>http://gotcal.com/index.php/2010/07/object-permission-report-for-microsoft-dynamics-nav/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>RIM for Styleheets in Dynamics NAV</title>
		<link>http://gotcal.com/index.php/2010/07/rim-for-styleheets-in-dynamics-nav/</link>
		<comments>http://gotcal.com/index.php/2010/07/rim-for-styleheets-in-dynamics-nav/#comments</comments>
		<pubDate>Mon, 12 Jul 2010 09:39:24 +0000</pubDate>
		<dc:creator>SNielsen</dc:creator>
				<category><![CDATA[Dynamics NAV]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[object]]></category>
		<category><![CDATA[stylesheet]]></category>
		<category><![CDATA[system table]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://gotcal.com/?p=464</guid>
		<description><![CDATA[Microsoft Office Integration from Dynamics NAV uses stylesheets to transfer data to Excel and Word. If you are on a v5 database or higher this is standard functionality. If you have upgraded your executables, you will notice the new buttons in the toolbar, but nothing happens when you click them. In order to get them [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-medium wp-image-475" title="stylesheet" src="http://gotcal.com/wp-content/uploads/2010/07/stylesheet-300x224.jpg" alt="" width="300" height="224" />Microsoft Office Integration from Dynamics NAV uses stylesheets to transfer data to Excel and Word. If you are on a v5 database or higher this is standard functionality. If you have upgraded your executables, you will notice the new buttons in the toolbar, but nothing happens when you click them. In order to get them working you need to import some new objects, and add a couple of new functions to codeunit 1. The objects are:</p>
<ul>
<li>Form 690: Manage Style Sheets</li>
<li>Form 691: Send-to Programs</li>
<li>Form 692: Import Style Sheet</li>
<li>Form 693: Program Selections</li>
<li>Form 694: Style Sheets</li>
<li>Codeunit 403: Application Launch Management</li>
</ul>
<p>Most of this blog entry is really nothing hot of the press, but i found a nice little trick for getting the records inserted into the tables automatically.</p>
<p><span id="more-464"></span>The new functions in codeunit are:</p>
<pre class="brush: plain;">
LaunchApp(DataXML : Automation &quot;'Microsoft XML, v4.0'.DOMDocument40&quot;;StylesheetID : GUID;ApplicationXML : Automation &quot;'Microsoft XML, v
EXIT(AppLaunchMgt.LaunchApp(DataXML,StylesheetID,ApplicationXML));

SelectStyleSheet(ObjectType : Integer;ObjectID : Integer;VAR StyleSheetID : GUID) : Boolean
EXIT(AppLaunchMgt.SelectStyleSheet(ObjectType,ObjectID,StyleSheetID));

ManageStyleSheets(ObjectType : Integer;ObjectID : Integer)
StyleSheets.SetObject(ObjectType,ObjectID);
StyleSheets.RUN;
</pre>
<p>These function needs to have these specifics ID&#8217;s in codeunit 1:</p>
<ul>
<li>LaunchApp, ID=116</li>
<li>SelectStyleSheet, ID=117</li>
<li>ManageStyleSheets, ID=118</li>
</ul>
<p>when you have the objects imported, and the functions created in codeunit 1 you are almost ready to rock and roll. You just need to setup the Send-To Program in table 2000000065 and import the Stylesheets via Tools, Manage Style Sheets.<strong> At least that is the way i used to do it until i found i could just run Codeunit 403 Application Launch Management, as it actually inserts all these records for you. Nice!</strong></p>
<p>Now you are ready to go.</p>
<p>Of course you might want to change the Cronus logo in the default stylesheets to be your own logo. There are multiple guides on how to this, but i have found this to be a very quick/dirty way to do it:</p>
<ol>
<li>Open the stylesheet in eg. Notepad.exe, and search for &#8220;bindata&#8221;, you will see a big section of Base64 encoded text. That is the Cronus logo in bitmap format, encoded to Base64. Delete this.</li>
<li>Go to http://www.motobit.com/util/base64-decoder-encoder.asp and input your own logo, choose output to Base64 text and copy/paste this back into notepad, where you just deleted the Cronus logo.</li>
<li>Thats it.</li>
</ol>
<p>The previous guide i used was from <a href="http://www.nextequalzero.com/2008/03/using-send-to-functionality-in-a-non-v5-dynamics-nav-database">http://www.nextequalzero.com/2008/03/using-send-to-functionality-in-a-non-v5-dynamics-nav-database</a> but suggested inserting all the records by hand. And a guide to change logo: <a href="http://www.nextequalzero.com/2008/02/xml-stylesheets-for-dynamics-nav-adding-your-logo">http://www.nextequalzero.com/2008/02/xml-stylesheets-for-dynamics-nav-adding-your-logo</a></p>
<p>Also the official MS guide is here: <a href="https://mbs.microsoft.com/downloads/partner/Nav/50material/TechWhitePapers/XMLStyleSheetsTechWhitePaper.pdf">https://mbs.microsoft.com/downloads/partner/Nav/50material/TechWhitePapers/XMLStyleSheetsTechWhitePaper.pdf</a></p>
<p>There are also a lot of hints on this on the main user groups <a href="http://mibuso.com">MIBUSO</a> and <a href="http://dynamicsuser.net">Dynamicsuser</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://gotcal.com/index.php/2010/07/rim-for-styleheets-in-dynamics-nav/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Read a random Dynamics NAV blog entry</title>
		<link>http://gotcal.com/index.php/2010/07/read-a-random-dynamics-nav-blog-entry/</link>
		<comments>http://gotcal.com/index.php/2010/07/read-a-random-dynamics-nav-blog-entry/#comments</comments>
		<pubDate>Fri, 09 Jul 2010 07:18:41 +0000</pubDate>
		<dc:creator>SNielsen</dc:creator>
				<category><![CDATA[Dynamics NAV]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[external]]></category>

		<guid isPermaLink="false">http://gotcal.com/?p=445</guid>
		<description><![CDATA[Most of your hardcore blog-readers probably already have this link in your bookmarks, but for the pleasure of those that dont, i want to redirect you to this page of &#8220;NEXT = 0&#8243; author Ian Crocker (love the blog name ): Read a random Dynamics NAV article Really a great little that links to the [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-medium wp-image-449" title="roulette" src="http://gotcal.com/wp-content/uploads/2010/07/roulette-300x238.jpg" alt="" width="300" height="238" />Most of your hardcore blog-readers probably already have this link in your bookmarks, but for the pleasure of those that dont, i want to redirect you to this page of &#8220;NEXT = 0&#8243; author <a href="http://www.nextequalzero.com/about/">Ian Crocker</a> (love the blog name <img src='http://gotcal.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ):</p>
<p><a href="http://www.nextequalzero.com/2010/01/random-dynamics-nav-article/">Read a random Dynamics NAV article</a><br />
<span id="more-445"></span></p>
<p>Really a great little that links to the pages listed in his <a href="http://www.nextequalzero.com/inavigate/">iNAVigate</a> google search page.</p>
<p>Here is a short URL for the random NAV blog entry: <a title="Click for a random Dynamics NAV Article" onclick="javascript:pageTracker._trackPageview('/outgoing/j.mp/RandomNAV');" href="http://j.mp/RandomNAV">http://j.mp/RandomNAV</a></p>
<p>Who reads this blog? Please share a short message in the comments to this post, you can be as anonomous as you want, or you can give a short introduction to yourself. Have a great weekend!</p>
]]></content:encoded>
			<wfw:commentRss>http://gotcal.com/index.php/2010/07/read-a-random-dynamics-nav-blog-entry/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The Dynamics NAV developers Gospel of the Flying Spaghetti Monster</title>
		<link>http://gotcal.com/index.php/2010/07/the-dynamics-nav-developers-gospel-of-the-flying-spaghetti-monster/</link>
		<comments>http://gotcal.com/index.php/2010/07/the-dynamics-nav-developers-gospel-of-the-flying-spaghetti-monster/#comments</comments>
		<pubDate>Thu, 08 Jul 2010 10:17:56 +0000</pubDate>
		<dc:creator>SNielsen</dc:creator>
				<category><![CDATA[Dynamics NAV]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://gotcal.com/?p=416</guid>
		<description><![CDATA[As a NAV developer there are basically only 2 books to live by: Application Designers Guide (Also available in the F1 Online Help in the application) C/AL Programming Guide (Programming-, Naming-, Numbering-conventions in NAV) These books should be mandatory reading by any developer/person doing development, but real world experience unfortunately shows they aren&#8217;t. Even for [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-423" title="noodledoodlewall" src="http://gotcal.com/wp-content/uploads/2010/07/noodledoodlewall.jpg" alt="" width="240" height="180" />As a NAV developer there are basically only 2 books to live by:</p>
<ol>
<li>Application Designers Guide<br />
(Also available in the F1 Online Help in the application)</li>
<li>C/AL Programming Guide<br />
(Programming-, Naming-, Numbering-conventions in NAV)</li>
</ol>
<p>These books should be mandatory reading by any developer/person doing development, but real world experience unfortunately shows they aren&#8217;t. Even for ISV products you see some <span style="text-decoration: line-through;">scary</span> interesting examples.<br />
<span id="more-416"></span></p>
<p>So in case you haven&#8217;t seen this before, here they are. Fortunately some of the new Dynamics NAV books cover these basic principles too, especially on how naming conventions are in NAV:</p>
<p>&#8220;Precise and consistent terminology helps the end user work with the application. Rules for naming and abbreviating everything will also  help programmers gain an understanding of the base application and develop new features faster.&#8221;</p>
<p>So no need for using prefixes for your variables eg.:</p>
<p>recCustomer<br />
l_Customer<br />
g_Customer</p>
<p>when you just can use: Customer</p>
<p><table style="border: 1px solid #CCC;" cellpadding="3" width="100%">
  <tr>
    <td width="35">
      <img src="http://gotcal.com/wp-content/plugins/downloads-manager/img/icons/pdf.gif" alt="http://gotcal.com/wp-content/plugins/downloads-manager/img/icons/pdf.gif">
    </td>
    <td>
      <b>download:</b> <a href="http://gotcal.com/?file_id=9">CAL Programming Guide</a> <small>(908.96KB)</small><br />
      <b>added:</b> 07/07/2010 <br />
      <b>clicks:</b> 326 <br />
      <b>description:</b> To make it easy to maintain an application, it is important to
follow a few strict guidelines when writing C/AL™ code.
This chapter describes these guidelines.
· General C/AL Programming Format
· Multilanguage Functionality
· C/AL Statements
· Miscellaneous
· User-Defined Functions
· User Messages
· Table Locking
· Putting Functions in Objects <br />
    </td>
  </tr>
</table></p>
<p><table style="border: 1px solid #CCC;" cellpadding="3" width="100%">
  <tr>
    <td width="35">
      <img src="http://gotcal.com/wp-content/plugins/downloads-manager/img/icons/pdf.gif" alt="http://gotcal.com/wp-content/plugins/downloads-manager/img/icons/pdf.gif">
    </td>
    <td>
      <b>download:</b> <a href="http://gotcal.com/?file_id=8">Application Designers Guide</a> <small>(9.39MB)</small><br />
      <b>added:</b> 07/07/2010 <br />
      <b>clicks:</b> 229 <br />
      <b>description:</b> This manual provides information about the C/SIDE® development system. It is part of
the documentation and Help materials for Microsoft Dynamics™ NAV.
When you create a C/SIDE application, you combine different types of application
objects into a whole that solves a business problem. Each of the seven types of
application objects available has its own part in this manual.
The manual is divided into 12 parts. Each part contains one or more chapters. The first
chapter in a part always deals with the fundamentals, for example, "Form
Fundamentals," and the succeeding chapters present more advanced information.
In addition to this manual, C/SIDE has an online Reference Guide. Here you can find
reference information about programming issues: functions, triggers, properties, and
so on. <br />
    </td>
  </tr>
</table></p>
<p>Other books on Amazon:</p>
<div class="wp-caption alignleft" style="width: 310px"><a href="http://www.amazon.com/Implementing-Microsoft-Dynamics-NAV-2009/dp/1847195822/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1278523717&amp;sr=1-1"><img class=" " src="http://ecx.images-amazon.com/images/I/51musCu4vRL._BO2,204,203,200_PIsitb-sticker-arrow-click,TopRight,35,-76_AA300_SH20_OU01_.jpg" alt="" width="300" height="300" /></a><p class="wp-caption-text">Implementing Microsoft Dynamics NAV 2009</p></div>
<div class="wp-caption alignnone" style="width: 310px"><a href="http://www.amazon.com/Programming-Microsoft-Dynamics-NAV-2009/dp/1847196527/ref=sr_1_2?ie=UTF8&amp;s=books&amp;qid=1278523717&amp;sr=1-2"><img src="http://ecx.images-amazon.com/images/I/51iNDAW5F-L._SL500_AA300_.jpg" alt="" width="300" height="300" /></a><p class="wp-caption-text">Programming Microsoft Dynamics NAV 2009</p></div>
<div class="wp-caption alignnone" style="width: 310px"><a href="http://www.amazon.com/Microsoft-Dynamics-2009-Application-Design/dp/1849680965/ref=sr_1_3?ie=UTF8&amp;s=books&amp;qid=1278523717&amp;sr=1-3"><img src="http://ecx.images-amazon.com/images/I/51qjQItR%2BxL._BO2,204,203,200_PIsitb-sticker-arrow-click,TopRight,35,-76_AA300_SH20_OU01_.jpg" alt="" width="300" height="300" /></a><p class="wp-caption-text">Microsoft Dynamics NAV 2009 Application Design</p></div>
<div class="wp-caption alignnone" style="width: 310px"><a href="http://www.amazon.com/Programming-Microsoft-Dynamics-David-Studebaker/dp/1904811744/ref=sr_1_4?ie=UTF8&amp;s=books&amp;qid=1278523717&amp;sr=1-4"><img src="http://ecx.images-amazon.com/images/I/51NjBwAtxFL._BO2,204,203,200_PIsitb-sticker-arrow-click,TopRight,35,-76_AA300_SH20_OU01_.jpg" alt="" width="300" height="300" /></a><p class="wp-caption-text">Programming Microsoft Dynamics NAV</p></div>
<div class="wp-caption alignnone" style="width: 310px"><a href="http://www.amazon.com/NAV-SQL-Performance-Field-Guide/dp/3837014428/ref=sr_1_6?ie=UTF8&amp;s=books&amp;qid=1278523717&amp;sr=1-6"><img src="http://ecx.images-amazon.com/images/I/41mUmlf-B1L._BO2,204,203,200_PIsitb-sticker-arrow-click,TopRight,35,-76_AA300_SH20_OU01_.jpg" alt="" width="300" height="300" /></a><p class="wp-caption-text">The NAV/SQL Performance Field Guide</p></div>
]]></content:encoded>
			<wfw:commentRss>http://gotcal.com/index.php/2010/07/the-dynamics-nav-developers-gospel-of-the-flying-spaghetti-monster/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Table 2000000068: Record Link &#8211; almost great!</title>
		<link>http://gotcal.com/index.php/2010/07/table-2000000068-record-link-almost-great/</link>
		<comments>http://gotcal.com/index.php/2010/07/table-2000000068-record-link-almost-great/#comments</comments>
		<pubDate>Tue, 06 Jul 2010 22:31:37 +0000</pubDate>
		<dc:creator>SNielsen</dc:creator>
				<category><![CDATA[Dynamics NAV]]></category>
		<category><![CDATA[record link]]></category>
		<category><![CDATA[system table]]></category>

		<guid isPermaLink="false">http://gotcal.com/?p=376</guid>
		<description><![CDATA[Since version 5 of Dynamics NAV there has been the new application wide functionality for Record Links. You know the little paperclip in the toolbar. In Microsoft words: &#8220;The Record Links feature in Microsoft Dynamics NAV enables you to link Microsoft Dynamics NAV records to relevant documents such as reports and spreadsheets. For example, you [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-medium wp-image-439" title="giant-paperclip_1" src="http://gotcal.com/wp-content/uploads/2010/07/giant-paperclip_1-300x300.jpg" alt="" width="300" height="300" />Since version 5 of Dynamics NAV there has been the new application wide functionality for Record Links. You know the little paperclip in the toolbar. In Microsoft words: &#8220;<em>The Record Links feature in Microsoft Dynamics NAV enables you to link  Microsoft Dynamics NAV records to relevant documents such as reports and  spreadsheets. For example, you could link documents from Microsoft  Office SharePoint Server or on a file server to a sales order or  purchase order.</em>&#8221;<br />
<span id="more-376"></span></p>
<p>In earlier versions you were relying on either local customization or using a document management add-on like Matrix Docs. The new standard Dynamics NAV feature could have been a game-stopper for these add-ons, if it wasnt because of some limitations to the way it is implemented in Dynamics NAV. Looking at the Table 2000000068: Record Link, which is a system table, you will notice you can design this table and add code into the misc. triggers on the table for both field validation and RIMD triggers. Great, well not really &#8211; as the &#8220;form&#8221; used is not a real &#8220;form&#8221;. When you click the paperclip or use the shortcut key Ctrl+L to open the Record Links a form that looks like a real Dynamics NAV form opens up. But try to design it &#8211; nothing happens. Also when validating a field or inserting a record, you will notice it does not trigger any of your triggers on the table.</p>
<p><img src="http://gotcal.com/wp-content/uploads/2010/06/062910_2231_Table2000002.png" alt="" /><span style="font-family: Times New Roman; font-size: 12pt;"><br />
</span></p>
<p>The functionality is available from any record in the system (almost). And if you look at codeunit 80 Sales-Post and codeunit 90 Purch.-Post, you will actually notice that the standard functionality actually moves the links from Sales/Purchase Header to the posted documents.</p>
<p>Codeunit 80 Samples:</p>
<pre class="brush: plain;">
SalesShptHeader.COPYLINKS(Rec);
...
ReturnRcptHeader.COPYLINKS(Rec);
...
IF HASLINKS THEN DELETELINKS;
</pre>
<p>Lets take a look at these functions that is available on the record variables. The new functions can be found from the C/AL Symbols Menu:</p>
<p><img src="http://gotcal.com/wp-content/uploads/2010/06/062910_2231_Table2000003.png" alt="" /></p>
<p>So if you wanted to create your own links form, it would be pretty simple. Unfortunately you would have to modify each and every form where you want the new functionality on, to override the CTRL+L shortcut (and if users still use their mouse to click on the paperclip, it still will go to the standard form).</p>
]]></content:encoded>
			<wfw:commentRss>http://gotcal.com/index.php/2010/07/table-2000000068-record-link-almost-great/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>SMTP Mail functionality in Pre Dynamics NAV 5 versions</title>
		<link>http://gotcal.com/index.php/2010/06/smtp-mail-functionality-in-pre-dynamics-nav-5-version/</link>
		<comments>http://gotcal.com/index.php/2010/06/smtp-mail-functionality-in-pre-dynamics-nav-5-version/#comments</comments>
		<pubDate>Tue, 29 Jun 2010 23:17:28 +0000</pubDate>
		<dc:creator>SNielsen</dc:creator>
				<category><![CDATA[Dynamics NAV]]></category>
		<category><![CDATA[automation]]></category>
		<category><![CDATA[external]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[license]]></category>
		<category><![CDATA[objects]]></category>
		<category><![CDATA[smtp]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://gotcal.com/?p=390</guid>
		<description><![CDATA[Just a quick post here serving as shortcut for implementing Microsoft Navision Mail.SmtpMessage in older databases. All it requires is these objects: Table 409 SMTP Mail Form 409 SMTP Mail Codeunit 400 SMTP Mail And of course an updated license file for the customer, that adds the permissions for the new 5.0 objects. If they [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-medium wp-image-389" title="062910_2317_SMTPMailfun1.png" src="http://gotcal.com/wp-content/uploads/2010/06/062910_2317_SMTPMailfun1-300x236.png" alt="" width="300" height="236" />Just a quick post here serving as shortcut for implementing Microsoft Navision Mail.SmtpMessage in older databases. All it requires is these objects:</p>
<ul>
<li>Table 409 SMTP Mail<span style="font-family: Times New Roman; font-size: 12pt;"><br />
</span></li>
<li>Form 409 SMTP Mail</li>
<li>
<div>Codeunit 400 SMTP Mail</div>
<p><span id="more-390"></span></li>
</ul>
<p>And of course an updated license file for the customer, that adds the permissions for the new 5.0 objects. If they are not on the v5 executables they also need to install the &#8220;Microsoft.Navision.Mail.dll&#8221; automation control. I have created a small package here that is a selfextracting rar file, that automatically installs the component into the Global Assembly Cache.</p>
<p>Here are the objects (from 5.0SP1):</p>
<p><table style="border: 1px solid #CCC;" cellpadding="3" width="100%">
  <tr>
    <td width="35">
      <img src="http://gotcal.com/wp-content/plugins/downloads-manager/img/icons/winzip.gif" alt="http://gotcal.com/wp-content/plugins/downloads-manager/img/icons/winzip.gif">
    </td>
    <td>
      <b>download:</b> <a href="http://gotcal.com/?file_id=6">SMTP objects</a> <small>(7.11KB)</small><br />
      <b>added:</b> 29/06/2010 <br />
      <b>clicks:</b> 136 <br />
      <b>description:</b> Table 409 SMTP Mail
Form 409 SMTP Mail
Codeunit 400 SMTP Mail <br />
    </td>
  </tr>
</table></p>
<p>And the Mail automation installer:<br />
<table style="border: 1px solid #CCC;" cellpadding="3" width="100%">
  <tr>
    <td width="35">
      <img src="http://gotcal.com/wp-content/plugins/downloads-manager/img/icons/winzip.gif" alt="http://gotcal.com/wp-content/plugins/downloads-manager/img/icons/winzip.gif">
    </td>
    <td>
      <b>download:</b> <a href="http://gotcal.com/?file_id=5">Microsoft.Navision.Mail</a> <small>(156.94KB)</small><br />
      <b>added:</b> 29/06/2010 <br />
      <b>clicks:</b> 169 <br />
      <b>description:</b> External component for SMTP mail in Dynamics NAV. Updated with KB981354, to support SMTP port selection. <br />
    </td>
  </tr>
</table></p>
<p>Usage is very simple:</p>
<pre class="brush: plain;">
SMTP.CreateMessage(SenderName,SenderAddress,Recipients,Subject,Body,HtmlFormatted);
SMTP.Send();
</pre>
<p>you will see methods for AddRecipients, AddCC, AddBCC, AppendBody and AddAttachment. The component also supports HTML in the body section.</p>
<p><em><strong>Update 6/29/2010:</strong></em></p>
<p>I just received a message from my danish colleague Steffen Brandt, that a hotfix is available from Microsoft, that allows you to change the standard SMTP port 25. The <a href="https://mbs.microsoft.com/knowledgebase/KbDisplay.aspx?scid=kb;EN-US;981354">KB981354</a> has the information. I will update the download section tomorrow, so it has the latest DLL&#8217;s and fob&#8217;s.</p>
<p>Hotfix code changes:</p>
<pre class="brush: plain;">﻿Add column 6 in the SMTP Mail Setup table(409) as follow:

...
{ 6   ;   ;SMTP Server Port    ;Integer       ;InitValue=25; }
...

4.	Add the SMTP Server Port field in the SMTP Mail Setup form(409) as follow:

...
{ 14  ;TextBox      ;3850 ;1540 ;5500 ;440  ;Name=&lt;SMTP Server Port&gt;;
                                                 ParentControl=1;
                                                 InPage=0;
                                                 DecimalPlaces=0:0;
                                                 NotBlank=Yes;
                                                 Numeric=Yes;
                                                 SourceExpr=&quot;SMTP Server Port&quot;;
                                                 MinValue=1 }
    { 15  ;Label        ;440  ;1540 ;3300 ;440  ;ParentControl=14; }
...

5.	Change the code in the SMTP Mail codeunit(400) as follows:
Existing code 1

...
      Mail@1000 : Automation &quot;{68AEAA7B-9523-3511-AF5F-F2381D2C6F04} 1.0:{F9DAE2A4-D2F8-37C3-86D5-E4FFE166D860}:'Microsoft Navision Mail'.SmtpMessage&quot;;
...

Replacement code 1

...
      Mail@1000 : Automation &quot;{68AEAA7B-9523-3511-AF5F-F2381D2C6F04} 7.0:{F9DAE2A4-D2F8-37C3-86D5-E4FFE166D860}:'Microsoft Navision Mail'.SmtpMessage&quot;;
...

Existing code 2

...
                Mail.Send(
            &quot;SMTP Server&quot;,Authentication &lt;&gt; SMTPMailSetup.Authentication::Anonymous,&quot;User ID&quot;, Password);
...

Replacement code 2

...
                Mail.Send(
            &quot;SMTP Server&quot;,Authentication &lt;&gt; Authentication::Anonymous,&quot;User ID&quot;,Password,&quot;SMTP Server Port&quot;);
...
</pre>
]]></content:encoded>
			<wfw:commentRss>http://gotcal.com/index.php/2010/06/smtp-mail-functionality-in-pre-dynamics-nav-5-version/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
