<?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; FilePath</title>
	<atom:link href="http://www.doens.be/tag/filepath/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>Using FilePath on a form</title>
		<link>http://www.doens.be/2009/06/using-filepath-on-a-form/</link>
		<comments>http://www.doens.be/2009/06/using-filepath-on-a-form/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 15:17:27 +0000</pubDate>
		<dc:creator>Jeroen Doens</dc:creator>
				<category><![CDATA[Dynamics AX]]></category>
		<category><![CDATA[Ax 5.0 (2009)]]></category>
		<category><![CDATA[Data Types]]></category>
		<category><![CDATA[FilePath]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[X++]]></category>

		<guid isPermaLink="false">http://www.doens.be/?p=144</guid>
		<description><![CDATA[When you want a filebrowser on your form and you only added a field that extends from the Extended Data Type FilePath, you wil get a stack-trace/error message when you click on the folder icon. Don&#8217;t panic, there is nothing wrong with your AX. Like the error explains you just need to provide the form [...]]]></description>
			<content:encoded><![CDATA[<p>When you want a filebrowser on your form and you only added a field that extends from the Extended Data Type FilePath, you wil get a stack-trace/error message when you click on the folder icon. Don&#8217;t panic, there is nothing wrong with your AX. Like the error explains you just need to provide the form with the method filePathLookupTitle.</p>
<p><a href="http://www.doens.be/wp-content/uploads/2009/06/error_formRun_filePathLookupTitle1.PNG"><img class="size-full wp-image-147   alignnone" style="margin: 0px; border: 0px;" title="error_formRun_filePathLookupTitle" src="http://www.doens.be/wp-content/uploads/2009/06/error_formRun_filePathLookupTitle1.PNG" alt="error_formRun_filePathLookupTitle" width="400" height="266" /></a></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="xpp" style="font-family:monospace;"><span style="color: #0000ff;">public</span> LabelString filenameLookupTitle<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#123;</span>
    <span style="color: #0000ff;">return</span> <span style="color: #ff0000;">&quot;Select Import File&quot;</span>;
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

<p>Normally this should solve your problem.</p>
<p>There are some more methods you can add to control the file lookup:</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
</pre></td><td class="code"><pre class="xpp" style="font-family:monospace;"><span style="color: #0000ff;">public</span> LabelString filenameLookupFilename<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#123;</span>
    <span style="color: #0000ff;">return</span> <span style="color: #ff0000;">&quot;&quot;</span>;
<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #0000ff;">public</span> FileNameFilter filenameLookupFilter<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#123;</span>
    FileNameFilter filter;
    filter <span style="color: #00007f;">=</span> <span style="color: #000000;">&#91;</span><span style="color: #ff0000;">'All FIles'</span><span style="color: #00007f;">,</span><span style="color: #ff0000;">'*.*'</span><span style="color: #000000;">&#93;</span>;
    <span style="color: #0000ff;">return</span> filter;
<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #0000ff;">public</span> LabelString filenameLookupInitialPath<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#123;</span>
    <span style="color: #0000ff;">return</span> <span style="color: #ff0000;">&quot;&quot;</span>;
<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #0000ff;">public</span> LabelString filePathLookupTitle<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#123;</span>
    <span style="color: #0000ff;">return</span> <span style="color: #ff0000;">&quot;Select Document Path&quot;</span>;
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.doens.be/2009/06/using-filepath-on-a-form/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

