<?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>NextEqualZero.com &#187; NAV 101</title>
	<atom:link href="http://www.nextequalzero.com/category/nav-101/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nextequalzero.com</link>
	<description>A technical eye on Microsoft Dynamics NAV</description>
	<lastBuildDate>Fri, 05 Feb 2010 17:30:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>NAV 101: Make the request form visible again</title>
		<link>http://www.nextequalzero.com/2009/06/make-the-request-form-visible/</link>
		<comments>http://www.nextequalzero.com/2009/06/make-the-request-form-visible/#comments</comments>
		<pubDate>Sat, 06 Jun 2009 14:12:14 +0000</pubDate>
		<dc:creator>Ian Crocker</dc:creator>
				<category><![CDATA[NAV 101]]></category>

		<guid isPermaLink="false">http://www.nextequalzero.com/?p=107</guid>
		<description><![CDATA[When you select a key by filling in the DataItemTableView property on a report DataItem, the request form is no longer shown.
How can we make it visible again?


The request form consists of two things, aside from the little list icon in the left hand corner:

Request fields/filters where the user can select fields from the underlying table [...]]]></description>
			<content:encoded><![CDATA[<p>When you select a key by filling in the DataItemTableView property on a report DataItem, the request form is no longer shown.</p>
<p>How can we make it visible again?</p>
<p><span id="more-107"></span></p>
<p><img class="alignnone size-full wp-image-115" title="nav101-01-01" src="http://www.nextequalzero.com/wp-content/uploads/2009/01/nav101-01-01.jpg" alt="nav101-01-01" width="382" height="254" /></p>
<p>The request form consists of two things, aside from the little list icon in the left hand corner:</p>
<ol>
<li>Request fields/filters where the user can select fields from the underlying table and filter on those fields if required.</li>
<li>The Sort button where the user can select a sort order for the report.</li>
</ol>
<p><img class="alignnone size-full wp-image-119" title="nav101-01-02" src="http://www.nextequalzero.com/wp-content/uploads/2009/01/nav101-01-02.jpg" alt="nav101-01-02" width="382" height="254" /></p>
<p>As shown in the first image above, the request form will be blank if we choose a key for a DataItem at design time.</p>
<p>This is because NAV removes the Sort button to prevent the key defined at design time from being overridden by the user.</p>
<p>This is a good thing because running a report using a different sort order may produce unexpected or incorrect results.</p>
<p>We may well want to lock down the sort order, but what if want to allow the user to specify some filters when running the report?</p>
<p>To make this possible and to make the request form visible again we can enter one or more default filter fields in the ReqFilterField property.</p>
<h3>Conclusion</h3>
<p>By specifying a key in the DataItemTable view property <em>and</em> one or more fields in the ReqFilterField property we&#8217;re saying that we <em>don&#8217;t</em> want the user to select a key, but we <em>do</em> want to give them the option of specifying field filters.</p>
<p>The request form will then become visible again minus the Sort button.</p>
<p><img class="alignnone size-full wp-image-128" title="nav101-01-031" src="http://www.nextequalzero.com/wp-content/uploads/2009/01/nav101-01-031.jpg" alt="nav101-01-031" width="382" height="254" /></p>
<p>You can see how this works in the following video clip.</p>
<p><!-- Smart Youtube --><span class="youtube"><object width="435" height="326"><param name="movie" value="http://www.youtube.com/v/Nfdox9_4jEY&amp;rel=0&amp;color1=d6d6d6&amp;color2=f0f0f0&amp;border=0&amp;fs=1&amp;hl=en&amp;autoplay=0&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0&amp;ap=%2526fmt%3D18" /><param name="allowFullScreen" value="true" /><embed wmode="transparent" src="http://www.youtube.com/v/Nfdox9_4jEY&amp;rel=0&amp;color1=d6d6d6&amp;color2=f0f0f0&amp;border=0&amp;fs=1&amp;hl=en&amp;autoplay=0&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0&amp;ap=%2526fmt%3D18" type="application/x-shockwave-flash" allowfullscreen="true" width="435" height="326" ></embed><param name="wmode" value="transparent" /></object></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.nextequalzero.com/2009/06/make-the-request-form-visible/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
