<?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>kristianfrandsen.com &#187; dataport</title>
	<atom:link href="http://kristianfrandsen.com/tag/dataport/feed/" rel="self" type="application/rss+xml" />
	<link>http://kristianfrandsen.com</link>
	<description>En nørds hverdag</description>
	<lastBuildDate>Thu, 22 Sep 2011 11:11:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Custom text boxes on a Request Form in a Dataport</title>
		<link>http://kristianfrandsen.com/2008/12/dynamics-nav-custom-text-boxes-on-a-request-form-in-a-dataport/</link>
		<comments>http://kristianfrandsen.com/2008/12/dynamics-nav-custom-text-boxes-on-a-request-form-in-a-dataport/#comments</comments>
		<pubDate>Thu, 11 Dec 2008 21:35:36 +0000</pubDate>
		<dc:creator>Kristian Ellebæk Frandsen</dc:creator>
				<category><![CDATA[Dynamics NAV]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[dataport]]></category>
		<category><![CDATA[dynamics nav]]></category>
		<category><![CDATA[export]]></category>
		<category><![CDATA[featured]]></category>
		<category><![CDATA[fields]]></category>
		<category><![CDATA[import]]></category>
		<category><![CDATA[input]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[request form]]></category>

		<guid isPermaLink="false">http://kristianfrandsen.com/?p=200</guid>
		<description><![CDATA[This article is in English because Microsoft Dynamics NAV (better known as Navision) is a world-wide product. Please excuse my English &#8211; it is not the best! In this article I will explain how you can put custom text boxes on the Request Form in a Dataport-object. As far as I know this solution works for [...]]]></description>
			<content:encoded><![CDATA[<p>This article is in English because Microsoft Dynamics NAV (better known as Navision) is a world-wide product. Please excuse my English &#8211; it is not the best!</p>
<p>In this article I will explain how you can put custom text boxes on the Request Form in a Dataport-object.<br />
As far as I know this solution works for Microsoft Dynamics NAV 5.0 SP1 and all earlier versions. I have not tested this on Dynamics NAV 2009, but my best guess is that this work-around works for the Classic Client in Dynamics NAV 2009 too.</p>
<p>The problem with the Request Form and custom text boxes is that when you put your custom text boxes on the Request Form, the normal text box for choosing what file to import/export will disapear.</p>
<p>To solve this problem you have to do the following steps:</p>
<ol>
<li>Create a new global variable - I will call the variable &#8220;VarFilename&#8221; in my example.</li>
<li>Insert a new text box (don&#8217;t forget a label for the text box) from the Toolbox.</li>
<li>Set the ID of the new text box to &#8217;1&#8242;.</li>
<li>Put the following code in the &#8220;OnAssistEdit()&#8221;-function of the new text box:<br />
<code>CurrDataport.FILENAME := VarFilename;</code></li>
</ol>
<p>Now run the Dataport and see that is works.</p>
<p>To follow NAV-guidelines remember to give the label, linked to the text box, the correct caption as if it was a standard Dataport, and remember to place the text box at the top of the Request Form.</p>
<p>Good luck with the coding! <img src='http://kristianfrandsen.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://kristianfrandsen.com/2008/12/dynamics-nav-custom-text-boxes-on-a-request-form-in-a-dataport/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

