<?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>Microsoft Dynamics NAV Archives - Shan Abeywickrama | Dynamics NAV &amp; Business Central Insights</title>
	<atom:link href="https://navsupports.com/tag/microsoft-dynamics-nav/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>Microsoft Dynamics NAV &#124; Business Central</description>
	<lastBuildDate>Wed, 03 Aug 2022 05:59:35 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.5</generator>

<image>
	<url>https://navsupports.com/wp-content/uploads/2018/11/cropped-fav-1-32x32.png</url>
	<title>Microsoft Dynamics NAV Archives - Shan Abeywickrama | Dynamics NAV &amp; Business Central Insights</title>
	<link></link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Get data from MySQL database using ODBC Connection</title>
		<link>https://navsupports.com/get-data-from-mysql-database-using-odbc-connection/</link>
		
		<dc:creator><![CDATA[Shan Abeywickrema]]></dc:creator>
		<pubDate>Wed, 03 Aug 2022 05:59:35 +0000</pubDate>
				<category><![CDATA[C/AL]]></category>
		<category><![CDATA[Microsoft Dynamics NAV]]></category>
		<category><![CDATA[MySQL Database]]></category>
		<category><![CDATA[MySQL ODBC Driver]]></category>
		<category><![CDATA[ODBC Connection]]></category>
		<guid isPermaLink="false">http://navsupports.com/?p=209</guid>

					<description><![CDATA[<p>This topic shows you how to connect to MySQL database using ODBC Connection. You may have to download the ODBC</p>
<p>The post <a href="https://navsupports.com/get-data-from-mysql-database-using-odbc-connection/">Get data from MySQL database using ODBC Connection</a> appeared first on <a href="https://navsupports.com">Shan Abeywickrama | Dynamics NAV &amp; Business Central Insights</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>This topic shows you how to connect to <strong>MySQL</strong> database using <strong>ODBC Connection</strong>.</p>
<p>You may have to download the O<strong>DBC MySQL driver</strong> from MySQL Community downloads.</p>
<p><span style="text-decoration: underline;">Download ODBC MySQL Connector</span><br />
<a href="https://dev.mysql.com/downloads/connector/odbc/">https://dev.mysql.com/downloads/connector/odbc/</a></p>
<p>You may also have to look up the required connection info that you have to provide. You can get connection string details with samples from this third-party site <a href="https://www.connectionstrings.com/">https://www.connectionstrings.com/</a></p>
<p>before  you start, it would better read and understand ODBC Connection.</p>
<p><span style="text-decoration: underline;"><strong>ODBC Connection</strong></span></p>
<p>https://docs.microsoft.com/en-us/dotnet/api/system.data.odbc.odbcconnection?view=dotnet-plat-ext-6.0</p>
<p><span style="text-decoration: underline;"><strong>ODBC Command Type</strong></span><br />
https://docs.microsoft.com/en-us/dotnet/api/system.data.odbc.odbccommand.commandtype?view=dotnet-plat-ext-6.0</p>
<h5 id="make-sure-the-driver-you-want-is-installed" class="heading-anchor">Make sure the driver you want is installed</h5>
<ol>
<li> Navigate to ODBC Data Sources (64-bit)</li>
<li> On the Drivers tab, you can find list of drivers</li>
</ol>
<figure id="attachment_213" aria-describedby="caption-attachment-213" style="width: 300px" class="wp-caption aligncenter"><img fetchpriority="high" decoding="async" class="size-medium wp-image-213" src="http://navsupports.com/wp-content/uploads/2022/08/ODBC-Driver-300x216.jpg" alt="" width="300" height="216" srcset="https://navsupports.com/wp-content/uploads/2022/08/ODBC-Driver-300x216.jpg 300w, https://navsupports.com/wp-content/uploads/2022/08/ODBC-Driver.jpg 592w" sizes="(max-width: 300px) 100vw, 300px" /><figcaption id="caption-attachment-213" class="wp-caption-text">ODBC Data Source Administrator</figcaption></figure>
<p>&nbsp;</p>
<p><span style="text-decoration: underline;"><strong>Variables (DotNet Type)</strong></span><br />
<strong>OdbcConnection</strong><br />
System.Data.Odbc.OdbcConnection.&#8217;System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&#8242;</p>
<p><strong>Command</strong><br />
System.Data.Odbc.OdbcCommand.&#8217;System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&#8242;</p>
<p><strong>QueryReader</strong><br />
System.Data.Odbc.OdbcDataReader.&#8217;System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&#8242;</p>
<p><span style="text-decoration: underline;"><strong>Text Constants </strong></span><br />
<strong>ConnectionStr</strong><br />
DRIVER={MySQL ODBC 5.3 ANSI Driver}; Server=YourServerName/IP; PORT=MysqlPORT;Database=mysql; User=UserName; Password=PassWord; Option=1;</p>
<p><strong>MySqlQuery</strong><br />
SELECT * FROM mysql.db</p>
<p>C/AL Code</p>
<p><img decoding="async" class="alignnone size-full wp-image-218" src="http://navsupports.com/wp-content/uploads/2022/08/Code-Snippet.jpg" alt="" width="577" height="397" srcset="https://navsupports.com/wp-content/uploads/2022/08/Code-Snippet.jpg 577w, https://navsupports.com/wp-content/uploads/2022/08/Code-Snippet-300x206.jpg 300w" sizes="(max-width: 577px) 100vw, 577px" /></p>
<p><img decoding="async" class="alignnone size-full wp-image-219" src="http://navsupports.com/wp-content/uploads/2022/08/Table-data.jpg" alt="" width="1019" height="125" srcset="https://navsupports.com/wp-content/uploads/2022/08/Table-data.jpg 1019w, https://navsupports.com/wp-content/uploads/2022/08/Table-data-300x37.jpg 300w, https://navsupports.com/wp-content/uploads/2022/08/Table-data-768x94.jpg 768w" sizes="(max-width: 1019px) 100vw, 1019px" /></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>The post <a href="https://navsupports.com/get-data-from-mysql-database-using-odbc-connection/">Get data from MySQL database using ODBC Connection</a> appeared first on <a href="https://navsupports.com">Shan Abeywickrama | Dynamics NAV &amp; Business Central Insights</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Dynamics NAV Job Queue</title>
		<link>https://navsupports.com/dynamics-nav-job-queue/</link>
					<comments>https://navsupports.com/dynamics-nav-job-queue/#respond</comments>
		
		<dc:creator><![CDATA[Shan Abeywickrema]]></dc:creator>
		<pubDate>Thu, 05 Jan 2017 08:03:56 +0000</pubDate>
				<category><![CDATA[knowledge]]></category>
		<category><![CDATA[Dynamics NAV]]></category>
		<category><![CDATA[Dynamics NAV2009]]></category>
		<category><![CDATA[HKEY_LOCAL_MACHINE]]></category>
		<category><![CDATA[How to: Set Up Job Queues]]></category>
		<category><![CDATA[Job Queue]]></category>
		<category><![CDATA[JOBQUEUE]]></category>
		<category><![CDATA[Microsoft Dynamics NAV]]></category>
		<category><![CDATA[NAS Setup]]></category>
		<category><![CDATA[Navision]]></category>
		<category><![CDATA[regedit]]></category>
		<category><![CDATA[setup]]></category>
		<category><![CDATA[Use Job Queues]]></category>
		<category><![CDATA[Use Job Queues to Schedule Tasks]]></category>
		<guid isPermaLink="false">http://navsupports.com/?p=84</guid>

					<description><![CDATA[<p>Dynamics nav Job Queue allow users to schedule and run specific reports and codeunits. You can set up jobs to run</p>
<p>The post <a href="https://navsupports.com/dynamics-nav-job-queue/">Dynamics NAV Job Queue</a> appeared first on <a href="https://navsupports.com">Shan Abeywickrama | Dynamics NAV &amp; Business Central Insights</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>Dynamics nav Job Queue</strong> allow users to schedule and run specific reports and <strong>codeunits</strong>. You can set up jobs to run one time or recurring. For instance , user wants to run customer statement report weekly then email to the customers, to obtain this you can use job queues.</p>
<p>In the <strong>Dynamics Nav Job Queue Entries</strong> window, you need to add information about the job queue entry that you want to schedule, such as a report or codeunit for the object type, the name and object ID of the object that you want to run, recurrence, priority, and status. You can also add parameters to specify the behavior of the job queue entry.</p>
<p>Let&#8217;s setup NAS Server first , you can find NAS Server setup inside the dynamics nav setup cd. After installation completed, application server comes as windows service. But when you try to start the service, you cannot start it,it gives an error. So simple solution can be provided to resolve it.</p>
<p>Right click on <strong>Application Server for Microsoft Dynamics NAV Classic NAVISION-SQL</strong> and select properties then <strong>Select windows user and set password.</strong></p>
<p><img loading="lazy" decoding="async" class="alignnone wp-image-85 size-medium" title="Dynamics Nav Job Queue" src="http://navsupports.com/wp-content/uploads/2017/01/img-300x168.jpg" alt="Dynamics Nav Job Queue" width="300" height="168" srcset="https://navsupports.com/wp-content/uploads/2017/01/img-300x168.jpg 300w, https://navsupports.com/wp-content/uploads/2017/01/img.jpg 479w" sizes="auto, (max-width: 300px) 100vw, 300px" /></p>
<p>Then go to  <strong>regedit </strong>Select <em><strong>HKEY_LOCAL_MACH</strong><strong>INE then </strong><strong> SYSTEM then </strong><strong>Services then NAVISION-CLASSIC</strong> </em>(this depends if you install default settings only)</p>
<p><img loading="lazy" decoding="async" class="alignnone size-medium wp-image-86" src="http://navsupports.com/wp-content/uploads/2017/01/i22mg-300x169.jpg" alt="i22mg" width="300" height="169" srcset="https://navsupports.com/wp-content/uploads/2017/01/i22mg-300x169.jpg 300w, https://navsupports.com/wp-content/uploads/2017/01/i22mg.jpg 502w" sizes="auto, (max-width: 300px) 100vw, 300px" /></p>
<p>Set the company,Databse,Servername,servertype (0 to 64000),Setupparamerter(set as <em><strong>JOBQUEUE</strong></em>) .After all completed you ready to start the service.</p>
<p>Now we will create simple report to insert date and time to the table to test <strong>Dynamics Nav Job Queue</strong>. First of all create new table and it should include Enrty No, Date, Time as fields and save it as Job Queue Test</p>
<p><img loading="lazy" decoding="async" class="alignnone wp-image-87 size-full" title="Dynamics Nav Job Queue" src="http://navsupports.com/wp-content/uploads/2017/01/123.png" alt="Dynamics Nav Job Queue" width="255" height="76" /></p>
<p>Now we will create the report as follows</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-88" src="http://navsupports.com/wp-content/uploads/2017/01/456.png" alt="456" width="238" height="140" /></p>
<p>you have almost completed ,now go to Job Queue Entries and fill the suitable details . I will share my details.</p>
<figure id="attachment_89" aria-describedby="caption-attachment-89" style="width: 300px" class="wp-caption alignnone"><img loading="lazy" decoding="async" class="wp-image-89 size-medium" title="Job Queue Setup" src="http://navsupports.com/wp-content/uploads/2017/01/1500-300x169.png" alt="1500" width="300" height="169" srcset="https://navsupports.com/wp-content/uploads/2017/01/1500-300x169.png 300w, https://navsupports.com/wp-content/uploads/2017/01/1500.png 663w" sizes="auto, (max-width: 300px) 100vw, 300px" /><figcaption id="caption-attachment-89" class="wp-caption-text">Job Queue Setup</figcaption></figure>
<figure id="attachment_90" aria-describedby="caption-attachment-90" style="width: 300px" class="wp-caption alignnone"><img loading="lazy" decoding="async" class="wp-image-90 size-medium" title="Job Queue Setup" src="http://navsupports.com/wp-content/uploads/2017/01/1504850-300x169.png" alt="1504850" width="300" height="169" srcset="https://navsupports.com/wp-content/uploads/2017/01/1504850-300x169.png 300w, https://navsupports.com/wp-content/uploads/2017/01/1504850.png 663w" sizes="auto, (max-width: 300px) 100vw, 300px" /><figcaption id="caption-attachment-90" class="wp-caption-text">Job Queue Setup</figcaption></figure>
<p><strong>Set the job queue to Reset Status</strong></p>
<p><strong> </strong><strong>Go to job queue setup and tick the Job activate. </strong><strong>In 2009 you have to run codeunit 448 manually. It is only for 1<sup>st</sup> time. </strong></p>
<p>Hope you have gained knowledge and please comment for questions.</p>
<p>The post <a href="https://navsupports.com/dynamics-nav-job-queue/">Dynamics NAV Job Queue</a> appeared first on <a href="https://navsupports.com">Shan Abeywickrama | Dynamics NAV &amp; Business Central Insights</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://navsupports.com/dynamics-nav-job-queue/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to use TESTFIELD Function in Dynamics NAV developments</title>
		<link>https://navsupports.com/use-testfield-function-dynamics-nav-developments/</link>
					<comments>https://navsupports.com/use-testfield-function-dynamics-nav-developments/#comments</comments>
		
		<dc:creator><![CDATA[Shan Abeywickrema]]></dc:creator>
		<pubDate>Tue, 06 Dec 2016 17:40:55 +0000</pubDate>
				<category><![CDATA[knowledge]]></category>
		<category><![CDATA[C/AL]]></category>
		<category><![CDATA[Microsoft Dynamics NAV]]></category>
		<category><![CDATA[TESTFIELD]]></category>
		<guid isPermaLink="false">http://navsupports.com/?p=50</guid>

					<description><![CDATA[<p>Hello guys, Let&#8217;s have a look about TESTFIELD. Most probably you may used this function when you do the coding.</p>
<p>The post <a href="https://navsupports.com/use-testfield-function-dynamics-nav-developments/">How to use TESTFIELD Function in Dynamics NAV developments</a> appeared first on <a href="https://navsupports.com">Shan Abeywickrama | Dynamics NAV &amp; Business Central Insights</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Hello guys, Let&#8217;s have a look about TESTFIELD. Most probably you may used this function when you do the coding. As I learn we can use TESTFIELD function for Tests whether the contents of a field match a given value or if any mandatory field there you can use this function.</p>
<p>Let&#8217;s have a quick look about how it looks like. Record.TESTFIELD(Field, [Value]) .Testfiled you can use with the record type variable or with a record. Let&#8217;s take a simple example, In the item table we have a field called<strong> Gross Weight ,</strong>When the particular item uses in sales order we need to check whether it matches with the given value in Sales Line. For this instance you can use TESTFIELD function. Let me take another example. User wants to mandory Gross Weight when the creation of Item. for this instance also you can use TESTFIELD function.</p>
<p>Here is a sample code for your better understanding.</p>
<div id="mainSection">
<div id="mainBody">
<div id="codeExampleSection" class="section">
<p><strong>This example shows how to use the TESTFIELD function without the <span class="parameter">Value</span> parameter. This example requires that you create the following variable in the C/AL Globals window.</strong></p>
<div class="tableSection">
<table style="height: 69px;" width="473" cellspacing="2" cellpadding="5">
<tbody>
<tr>
<th>Variable name</th>
<th>DataType</th>
<th>Subtype</th>
</tr>
<tr>
<td><em>CustomerRec</em></td>
<td><em>Record</em></td>
<td><em>Customer</em></td>
</tr>
</tbody>
</table>
<p><em>CustomerRec.&#8221;No.&#8221; := &#8221;;</em><br />
<em>CustomerRec.TESTFIELD(&#8220;No.&#8221;)</em></p>
<p><em>The following error message is displayed:</em><br />
<em>You must specify No. in Customer No.=&#8221;.</em></p>
<p><strong>This example shows how to use the TESTFIELD function with the Value parameter. This example requires that you create the following variable in the C/AL Globals window.</strong></p>
<p><em>CustomerRec.&#8221;No.&#8221; := &#8216;TEST001&#8217;;</em><br />
<em>CustomerRec.TESTFIELD(&#8220;No.&#8221;,&#8217;5000&#8242;)</em></p>
<p><em>If No. is not 5000, then the following message is displayed:</em><br />
<em>No. must be 5000 in Customer No.=&#8217;TEST001&#8242;.</em></p>
<p>Please comment or post your ideas or questions.</p>
</div>
</div>
</div>
</div>
<p>The post <a href="https://navsupports.com/use-testfield-function-dynamics-nav-developments/">How to use TESTFIELD Function in Dynamics NAV developments</a> appeared first on <a href="https://navsupports.com">Shan Abeywickrama | Dynamics NAV &amp; Business Central Insights</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://navsupports.com/use-testfield-function-dynamics-nav-developments/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>How to take month in text from a date in Dynamics NAV</title>
		<link>https://navsupports.com/take-month-text-date-dynamics-nav/</link>
					<comments>https://navsupports.com/take-month-text-date-dynamics-nav/#respond</comments>
		
		<dc:creator><![CDATA[Shan Abeywickrema]]></dc:creator>
		<pubDate>Wed, 30 Nov 2016 11:25:46 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Dynamics NAV]]></category>
		<category><![CDATA[Dynamics NAV Technical]]></category>
		<category><![CDATA[FORMAT]]></category>
		<category><![CDATA[Microsoft Dynamics NAV]]></category>
		<category><![CDATA[Microsoft Dynamics NAV 2016]]></category>
		<category><![CDATA[Month to text]]></category>
		<category><![CDATA[Navision]]></category>
		<category><![CDATA[Navision ERP 2016]]></category>
		<guid isPermaLink="false">http://navsupports.com/?p=46</guid>

					<description><![CDATA[<p>Hello Guys, Today I am going to show you , How to take month in text from a date in</p>
<p>The post <a href="https://navsupports.com/take-month-text-date-dynamics-nav/">How to take month in text from a date in Dynamics NAV</a> appeared first on <a href="https://navsupports.com">Shan Abeywickrama | Dynamics NAV &amp; Business Central Insights</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Hello Guys,</p>
<p>Today I am going to show you , How to take month in text from a date in Dynamics NAV. It is so simple you have two ways to do it.</p>
<p>First way is use the FORMAT function and the second way is use the Date table which is virtual table in Dynamics NAV.</p>
<p>Let&#8217;s move for the first way, This is very simple what you need to do, use FORMAT and send the proper parameters.</p>
<p>FORMAT(&#8220;Posting Date&#8221;,0,'&lt;Month Text&gt;&#8217;);</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>The post <a href="https://navsupports.com/take-month-text-date-dynamics-nav/">How to take month in text from a date in Dynamics NAV</a> appeared first on <a href="https://navsupports.com">Shan Abeywickrama | Dynamics NAV &amp; Business Central Insights</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://navsupports.com/take-month-text-date-dynamics-nav/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
