 




<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Subfile</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/subfile-9/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/subfile-9/</link>
	<description></description>
	<lastBuildDate>Thu, 23 May 2013 12:31:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: nutangujar</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/subfile-9/#comment-69626</link>
		<dc:creator>nutangujar</dc:creator>
		<pubDate>Wed, 28 Oct 2009 16:56:08 +0000</pubDate>
		<guid isPermaLink="false">#comment-69626</guid>
		<description><![CDATA[ok I used two mirror image subfiles which seems to be simple solution..

thanks,
Nutan.]]></description>
		<content:encoded><![CDATA[<p>ok I used two mirror image subfiles which seems to be simple solution..</p>
<p>thanks,<br />
Nutan.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sloopy</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/subfile-9/#comment-69621</link>
		<dc:creator>sloopy</dc:creator>
		<pubDate>Wed, 28 Oct 2009 15:53:33 +0000</pubDate>
		<guid isPermaLink="false">#comment-69621</guid>
		<description><![CDATA[Let&#039;s not use two subfile.

I do this sort of toggling all the time. In the case where you have two possible columns occupying the same space and with the same length, it&#039;s quite easy.

Store both values in hidden fields in the subfile line. When the toggle is set one way, and the subfile is first filled, both these fields are filled, AND the displayable field is filled with the right value - first tim in, let&#039;s say #PROCP values.

When the user presses the toggle function key, either you can just refresh the subfile and load the displayable field with #ORDERP data, or you can read through the subfile and copy the #ORDERP data from its hidden field into the displayable field.

Storing both pieces of data in hidden fields means that when you read a specific subfile record, you have that data available to you in your program.

Don&#039;t forget to change the heading in the subfile control format (or header format) to show the user which data is being displayed.

Using this technique, you can do all sorts of things with a subfile, like having the sort of window left/right function you can see in the spool file display screen. Because you store ALL the data you want to display conditionally in hidden fields in the subfile record, you don&#039;t have to reload the subfile when the toggle is pressed.

Regards,

Sloopy]]></description>
		<content:encoded><![CDATA[<p>Let&#8217;s not use two subfile.</p>
<p>I do this sort of toggling all the time. In the case where you have two possible columns occupying the same space and with the same length, it&#8217;s quite easy.</p>
<p>Store both values in hidden fields in the subfile line. When the toggle is set one way, and the subfile is first filled, both these fields are filled, AND the displayable field is filled with the right value &#8211; first tim in, let&#8217;s say #PROCP values.</p>
<p>When the user presses the toggle function key, either you can just refresh the subfile and load the displayable field with #ORDERP data, or you can read through the subfile and copy the #ORDERP data from its hidden field into the displayable field.</p>
<p>Storing both pieces of data in hidden fields means that when you read a specific subfile record, you have that data available to you in your program.</p>
<p>Don&#8217;t forget to change the heading in the subfile control format (or header format) to show the user which data is being displayed.</p>
<p>Using this technique, you can do all sorts of things with a subfile, like having the sort of window left/right function you can see in the spool file display screen. Because you store ALL the data you want to display conditionally in hidden fields in the subfile record, you don&#8217;t have to reload the subfile when the toggle is pressed.</p>
<p>Regards,</p>
<p>Sloopy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bigkat</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/subfile-9/#comment-69609</link>
		<dc:creator>bigkat</dc:creator>
		<pubDate>Wed, 28 Oct 2009 13:18:06 +0000</pubDate>
		<guid isPermaLink="false">#comment-69609</guid>
		<description><![CDATA[You would have to read in every record in the subfile and update it with the new *IN15 value to have one subfile with the conditioned display.]]></description>
		<content:encoded><![CDATA[<p>You would have to read in every record in the subfile and update it with the new *IN15 value to have one subfile with the conditioned display.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/subfile-9/#comment-69593</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Wed, 28 Oct 2009 00:10:19 +0000</pubDate>
		<guid isPermaLink="false">#comment-69593</guid>
		<description><![CDATA[Exactly -- you make two subfiles identical except one has one field showing and the other as hidden and the other has the mirror image

When you write records to the subfile you write to both
You exfmt on the control for the first subfile, if use hits the function key for the change exfmt on second.
Phil]]></description>
		<content:encoded><![CDATA[<p>Exactly &#8212; you make two subfiles identical except one has one field showing and the other as hidden and the other has the mirror image</p>
<p>When you write records to the subfile you write to both<br />
You exfmt on the control for the first subfile, if use hits the function key for the change exfmt on second.<br />
Phil</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/subfile-9/#comment-69576</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Tue, 27 Oct 2009 21:18:12 +0000</pubDate>
		<guid isPermaLink="false">#comment-69576</guid>
		<description><![CDATA[AFAIK, you actually want to toggle between two subfiles -- the toggle will make one or the other subfile active.

(And when I say you &quot;want&quot; to, I mean that that&#039;s the facility you need to look at. I&#039;m pretty sure it&#039;s not what any of us would &lt;b&gt;want&lt;/b&gt; to do in this circumstance!)

I&#039;m pretty sure that&#039;s what CharlieBrowne was getting at back in his first comment.

Tom]]></description>
		<content:encoded><![CDATA[<p>AFAIK, you actually want to toggle between two subfiles &#8212; the toggle will make one or the other subfile active.</p>
<p>(And when I say you &#8220;want&#8221; to, I mean that that&#8217;s the facility you need to look at. I&#8217;m pretty sure it&#8217;s not what any of us would <b>want</b> to do in this circumstance!)</p>
<p>I&#8217;m pretty sure that&#8217;s what CharlieBrowne was getting at back in his first comment.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nutangujar</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/subfile-9/#comment-69575</link>
		<dc:creator>nutangujar</dc:creator>
		<pubDate>Tue, 27 Oct 2009 20:53:47 +0000</pubDate>
		<guid isPermaLink="false">#comment-69575</guid>
		<description><![CDATA[how can i toggle between 2 columns then in SFL?]]></description>
		<content:encoded><![CDATA[<p>how can i toggle between 2 columns then in SFL?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/subfile-9/#comment-69574</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Tue, 27 Oct 2009 20:40:30 +0000</pubDate>
		<guid isPermaLink="false">#comment-69574</guid>
		<description><![CDATA[Regardless of whether *IN15 is on or off, ND will be in effect at the field position your data is displayed.

Tom]]></description>
		<content:encoded><![CDATA[<p>Regardless of whether *IN15 is on or off, ND will be in effect at the field position your data is displayed.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nutangujar</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/subfile-9/#comment-69573</link>
		<dc:creator>nutangujar</dc:creator>
		<pubDate>Tue, 27 Oct 2009 20:38:22 +0000</pubDate>
		<guid isPermaLink="false">#comment-69573</guid>
		<description><![CDATA[i actually have only one column different in both sfls ....defining new subfile may need a new set of variables and then bunch of move&#039;s
do you think this is the only way?]]></description>
		<content:encoded><![CDATA[<p>i actually have only one column different in both sfls &#8230;.defining new subfile may need a new set of variables and then bunch of move&#8217;s<br />
do you think this is the only way?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nutangujar</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/subfile-9/#comment-69571</link>
		<dc:creator>nutangujar</dc:creator>
		<pubDate>Tue, 27 Oct 2009 20:36:46 +0000</pubDate>
		<guid isPermaLink="false">#comment-69571</guid>
		<description><![CDATA[yes, I do update the subfile after switching the indicator on]]></description>
		<content:encoded><![CDATA[<p>yes, I do update the subfile after switching the indicator on</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: charliebrowne</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/subfile-9/#comment-69564</link>
		<dc:creator>charliebrowne</dc:creator>
		<pubDate>Tue, 27 Oct 2009 19:53:57 +0000</pubDate>
		<guid isPermaLink="false">#comment-69564</guid>
		<description><![CDATA[Sometimes it is easier to have two subfiles in the program and you build them at the same time. Everything being the same except that #PROCP is in subfile1 and #ORDERP is in subfile2. Then *IN15 just conditions which EXFMT to use.]]></description>
		<content:encoded><![CDATA[<p>Sometimes it is easier to have two subfiles in the program and you build them at the same time. Everything being the same except that #PROCP is in subfile1 and #ORDERP is in subfile2. Then *IN15 just conditions which EXFMT to use.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 6/9 queries in 0.013 seconds using memcached
Object Caching 394/397 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-23 12:37:38 -->