<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>CNX Corporation    Support and Information Forums</title>
		<link>http://cnxforum.com/</link>
		<description>This is a support and information forum by CNX Corporation</description>
		<language>en</language>
		<lastBuildDate>Sun, 20 May 2012 07:03:31 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://cnxforum.com/images/misc/rss.png</url>
			<title>CNX Corporation    Support and Information Forums</title>
			<link>http://cnxforum.com/</link>
		</image>
		<item>
			<title>vvOut_buffer error with high volumes</title>
			<link>http://cnxforum.com/showthread.php?900-vvOut_buffer-error-with-high-volumes&amp;goto=newpost</link>
			<pubDate>Thu, 17 May 2012 10:38:22 GMT</pubDate>
			<description>The following piece of code works fine generating JSON without referencing an RPG field and so limiting the string size. Unfortunately when I get to...</description>
			<content:encoded><![CDATA[<div>The following piece of code works fine generating JSON without referencing an RPG field and so limiting the string size. Unfortunately when I get to about 20,000 records I get the following error:<br />
<br />
<b>To procedure  . . . . . . . :   VVOUT_DATA <br />
Statement . . . . . . . . . :   26500      <br />
Pointer not set for location referenced.</b><br />
<br />
followed by:<br />
<br />
<b>The call to VVOUT_BUFF ended in error </b><br />
<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">PHP Code:</div>
	<hr /><code class="bbcode_code"><code><span style="color: #000000">
<span style="color: #0000BB">vvOut_buffer</span><span style="color: #007700">(</span><span style="color: #DD0000">'Content-type:text/json'<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">+</span><span style="color: #0000BB">LF</span><span style="color: #007700">+</span><span style="color: #0000BB">LF</span><span style="color: #007700">+</span><span style="color: #DD0000">'{"products":'</span><span style="color: #007700">+</span><span style="color: #0000BB">OB</span><span style="color: #007700">:</span><span style="color: #0000BB">STARTBUFFER</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">i&nbsp;</span><span style="color: #007700">=</span><span style="color: #0000BB">0</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">setll&nbsp;</span><span style="color: #007700">*</span><span style="color: #0000BB">loval&nbsp;abc_pf</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">read&nbsp;abc_pf</span><span style="color: #007700">;<br /><br /></span><span style="color: #0000BB">dow&nbsp;not&nbsp;</span><span style="color: #007700">%</span><span style="color: #0000BB">eof&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">abc_pf</span><span style="color: #007700">)&nbsp;;<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">i&nbsp;</span><span style="color: #007700">+=&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">descp&nbsp;</span><span style="color: #007700">=&nbsp;&nbsp;%</span><span style="color: #0000BB">XLATE</span><span style="color: #007700">(</span><span style="color: #DD0000">'''"'</span><span style="color: #007700">:&nbsp;</span><span style="color: #DD0000">'``'</span><span style="color: #007700">:&nbsp;</span><span style="color: #0000BB">descp</span><span style="color: #007700">);<br /><br />&nbsp;&nbsp;&nbsp;if&nbsp;</span><span style="color: #0000BB">i&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">vvOut_buffer</span><span style="color: #007700">(</span><span style="color: #DD0000">'{"PFLD":"'&nbsp;</span><span style="color: #007700">+&nbsp;%</span><span style="color: #0000BB">trim</span><span style="color: #007700">(</span><span style="color: #0000BB">pfld</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+&nbsp;</span><span style="color: #DD0000">'","DFLD":"'&nbsp;</span><span style="color: #007700">+&nbsp;%</span><span style="color: #0000BB">trim</span><span style="color: #007700">(</span><span style="color: #0000BB">dfld</span><span style="color: #007700">)&nbsp;+&nbsp;</span><span style="color: #DD0000">'"}'</span><span style="color: #007700">+</span><span style="color: #DD0000">''</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;else;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">vvOut_buffer</span><span style="color: #007700">(</span><span style="color: #DD0000">',{"PFLD":"'&nbsp;</span><span style="color: #007700">+&nbsp;%</span><span style="color: #0000BB">trim</span><span style="color: #007700">(</span><span style="color: #0000BB">pfld</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+&nbsp;</span><span style="color: #DD0000">'","DFLD":"'&nbsp;</span><span style="color: #007700">+&nbsp;%</span><span style="color: #0000BB">trim</span><span style="color: #007700">(</span><span style="color: #0000BB">dfld</span><span style="color: #007700">)&nbsp;+&nbsp;</span><span style="color: #DD0000">'"}'</span><span style="color: #007700">+</span><span style="color: #DD0000">''</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;endif;<br /><br />&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">read&nbsp;abc_pf</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">enddo</span><span style="color: #007700">;<br /><br /></span><span style="color: #0000BB">vvOut_buffer</span><span style="color: #007700">(</span><span style="color: #0000BB">CB</span><span style="color: #007700">+</span><span style="color: #0000BB">CC</span><span style="color: #007700">:</span><span style="color: #0000BB">ENDBUFFER</span><span style="color: #007700">);&nbsp;<br /></span><span style="color: #0000BB"></span>
</span>
</code></code><hr />
</div>Any ideas why this might be happening?<br />
<br />
Thanks</div>

]]></content:encoded>
			<category domain="http://cnxforum.com/forumdisplay.php?23-Valence-3-X-Community-Support">Valence 3.X Community Support</category>
			<dc:creator>edward.thomas</dc:creator>
			<guid isPermaLink="true">http://cnxforum.com/showthread.php?900-vvOut_buffer-error-with-high-volumes</guid>
		</item>
		<item>
			<title><![CDATA[[HELPED] What Valence Folders Are/Are Not Affected By Valence Updates?]]></title>
			<link>http://cnxforum.com/showthread.php?895-HELPED-What-Valence-Folders-Are-Are-Not-Affected-By-Valence-Updates&amp;goto=newpost</link>
			<pubDate>Tue, 15 May 2012 20:10:04 GMT</pubDate>
			<description>I have already asked a similar question over the phone but wanted to make sure I understand the implications behind creating custom HTML/CSS/JS/MVC...</description>
			<content:encoded><![CDATA[<div>I have already asked a similar question over the phone but wanted to make sure I understand the implications behind creating custom HTML/CSS/JS/MVC folders inside /valence-3.x.  Does CNX recommend creating our own custom IFS folders to store custom code or should we create a new folder underneath the valence IFS folder?  I &quot;think&quot; the MVC apps created by Nitro App Builder automatically store them inside the /valence-3.1 folder (with no option of choosing &quot;where&quot; to store them).  If this is correct, then if we ever plan to use some sort of change management (Turnover in our case), we should probably create our custom folders inside of /valence-3.x since the MVC architecture is somewhat softcoded in DB2 files and requires references to the default Nitro App Builder folders.<br />
<br />
Do I have the correct understanding?</div>

]]></content:encoded>
			<category domain="http://cnxforum.com/forumdisplay.php?23-Valence-3-X-Community-Support">Valence 3.X Community Support</category>
			<dc:creator>rkanemeier</dc:creator>
			<guid isPermaLink="true">http://cnxforum.com/showthread.php?895-HELPED-What-Valence-Folders-Are-Are-Not-Affected-By-Valence-Updates</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] vvIn_array with numeric values]]></title>
			<link>http://cnxforum.com/showthread.php?894-SOLVED-vvIn_array-with-numeric-values&amp;goto=newpost</link>
			<pubDate>Tue, 15 May 2012 15:53:27 GMT</pubDate>
			<description>I have an array defined as 6s 0 and I am trying to get data from a JSON array in to this structure.  The values are all numbers.  They appear in...</description>
			<content:encoded><![CDATA[<div>I have an array defined as 6s 0 and I am trying to get data from a JSON array in to this structure.  The values are all numbers.  They appear in firebug as &quot;DATA	[152,1234,25410]&quot;.  I load it with &quot; numElements       = vvIn_array( 'DATA':%addr(ticketArr)<br />
 :%size(ticketArr:*all):%size(ticketArr));&quot; and I get data but the numbers are 152000, 123400, and 254100 instead of 152,1234, and 25410 as I need.  Any ideas why?</div>

]]></content:encoded>
			<category domain="http://cnxforum.com/forumdisplay.php?23-Valence-3-X-Community-Support">Valence 3.X Community Support</category>
			<dc:creator>ktoole</dc:creator>
			<guid isPermaLink="true">http://cnxforum.com/showthread.php?894-SOLVED-vvIn_array-with-numeric-values</guid>
		</item>
		<item>
			<title><![CDATA[[HELPED] Question about renderers]]></title>
			<link>http://cnxforum.com/showthread.php?892-HELPED-Question-about-renderers&amp;goto=newpost</link>
			<pubDate>Tue, 15 May 2012 14:31:53 GMT</pubDate>
			<description>I know the parms for a renderer are as follows: 
 
 
Code: 
--------- 
function renderName(value, metaData, record, rowIndex, colIndex, store)...</description>
			<content:encoded><![CDATA[<div>I know the parms for a renderer are as follows:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">function renderName(value, metaData, record, rowIndex, colIndex, store)</code><hr />
</div>Can I/how do I add an extra parm to the function, IE<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">function renderName(value, metaData, record, rowIndex, colIndex, store,<i><font color="#FF0000"> type</font></i>)</code><hr />
</div><br />
Typically the code looks like this and the parms passed are not listed.<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">renderer: this.renderUnitNumerics</code><hr />
</div><br />
Thanks...</div>

]]></content:encoded>
			<category domain="http://cnxforum.com/forumdisplay.php?23-Valence-3-X-Community-Support">Valence 3.X Community Support</category>
			<dc:creator>MCSchlemme</dc:creator>
			<guid isPermaLink="true">http://cnxforum.com/showthread.php?892-HELPED-Question-about-renderers</guid>
		</item>
		<item>
			<title>Separate ext sources from valence environment</title>
			<link>http://cnxforum.com/showthread.php?891-Separate-ext-sources-from-valence-environment&amp;goto=newpost</link>
			<pubDate>Tue, 15 May 2012 10:21:08 GMT</pubDate>
			<description>All Sencha ExtJs, Touch and FusionChart sources are stored on the IFS in the Valence 3.1 folder. The process for copying the IFS objects (manually or...</description>
			<content:encoded><![CDATA[<div>All Sencha ExtJs, Touch and FusionChart sources are stored on the IFS in the Valence 3.1 folder. The process for copying the IFS objects (manually or via instance manager) for these folders is very heavy since it contains thousands of files and takes more than an hour. Besides that this takes a lot of disk space for each created environment. <br />
<br />
We placed all these folders outside in a specific folder outside the Valence folder adjusted the aias and the directory authorization in the Apache config, like /vvweb/include/ext-3.4.0, /vvweb/include/ext-4.0.7 etc. Now copying takes about one minute.<br />
<br />
This request already has been brought in via mail</div>

]]></content:encoded>
			<category domain="http://cnxforum.com/forumdisplay.php?9-Valence-Feature-Requests">Valence Feature Requests</category>
			<dc:creator>Siebe Vos</dc:creator>
			<guid isPermaLink="true">http://cnxforum.com/showthread.php?891-Separate-ext-sources-from-valence-environment</guid>
		</item>
		<item>
			<title>Custom styling without modifying the valence.css</title>
			<link>http://cnxforum.com/showthread.php?890-Custom-styling-without-modifying-the-valence-css&amp;goto=newpost</link>
			<pubDate>Tue, 15 May 2012 10:06:39 GMT</pubDate>
			<description>Is it possible to apply a specific (css) styling to a Valence portal, without modifying the valence.css so it is clearer for users to see the...</description>
			<content:encoded><![CDATA[<div>Is it possible to apply a specific (css) styling to a Valence portal, without modifying the valence.css so it is clearer for users to see the difference between a test and production environment?</div>

]]></content:encoded>
			<category domain="http://cnxforum.com/forumdisplay.php?9-Valence-Feature-Requests">Valence Feature Requests</category>
			<dc:creator>Siebe Vos</dc:creator>
			<guid isPermaLink="true">http://cnxforum.com/showthread.php?890-Custom-styling-without-modifying-the-valence-css</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] Calling a method from within another method]]></title>
			<link>http://cnxforum.com/showthread.php?887-SOLVED-Calling-a-method-from-within-another-method&amp;goto=newpost</link>
			<pubDate>Mon, 14 May 2012 19:17:33 GMT</pubDate>
			<description><![CDATA[Can I call a method from within another method? 
 
I have both getColumns and getCompanyColumns defined in the HTML as follows: 
 
        <script...]]></description>
			<content:encoded><![CDATA[<div>Can I call a method from within another method?<br />
<br />
I have both getColumns and getCompanyColumns defined in the HTML as follows:<br />
<br />
        &lt;script type=&quot;text/javascript&quot; src=&quot;/TIDIProducts/function/getColumns.js&quot;&gt;&lt;/script&gt;<br />
        &lt;script type=&quot;text/javascript&quot; src=&quot;/TIDIProducts/function/getCompanyColumns.js&quot;&gt;&lt;/script&gt;<br />
<br />
When I used the commented code, the getColumns method works.  When I try to call getCompanyColumns from within the getColumns, Chrome debugger tells me getCompanyColumns is not defined.<br />
<br />
What's up?<br />
<br />
Thanks...<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">var getColumns = function(columnName) {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Build columns dynamically based on parm.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; switch (columnName) {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case 'Company':<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var columns = getCompanyColumns();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //var columns = [{<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //&nbsp; &nbsp; &nbsp; &nbsp; header: &quot;&lt;b&gt;Level&lt;/b&gt;&quot;,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //&nbsp; &nbsp; &nbsp; &nbsp; sortable: false,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //&nbsp; &nbsp; &nbsp; &nbsp; width: 120,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //&nbsp; &nbsp; &nbsp; &nbsp; align: 'left',<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //&nbsp; &nbsp; &nbsp; &nbsp; //dataIndex: 'M0001D1'<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //&nbsp; dataIndex: 'email'<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //}];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;</code><hr />
</div></div>

]]></content:encoded>
			<category domain="http://cnxforum.com/forumdisplay.php?23-Valence-3-X-Community-Support">Valence 3.X Community Support</category>
			<dc:creator>MCSchlemme</dc:creator>
			<guid isPermaLink="true">http://cnxforum.com/showthread.php?887-SOLVED-Calling-a-method-from-within-another-method</guid>
		</item>
		<item>
			<title><![CDATA[[HELPED] Instances]]></title>
			<link>http://cnxforum.com/showthread.php?883-HELPED-Instances&amp;goto=newpost</link>
			<pubDate>Thu, 10 May 2012 12:43:43 GMT</pubDate>
			<description><![CDATA[I'm not sure, however I think I can use instances for production/test.  I'd like to develop with using a test instance and then migrate to using a...]]></description>
			<content:encoded><![CDATA[<div>I'm not sure, however I think I can use instances for production/test.  I'd like to develop with using a test instance and then migrate to using a production instance.<br />
<br />
Is there some code I need to put in the .js file to point to a different instance?<br />
<br />
An example would be helpful.<br />
<br />
Thanks...</div>

]]></content:encoded>
			<category domain="http://cnxforum.com/forumdisplay.php?23-Valence-3-X-Community-Support">Valence 3.X Community Support</category>
			<dc:creator>MCSchlemme</dc:creator>
			<guid isPermaLink="true">http://cnxforum.com/showthread.php?883-HELPED-Instances</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] SQL Prepare Failed - Keyword FETCH not expected]]></title>
			<link>http://cnxforum.com/showthread.php?880-SOLVED-SQL-Prepare-Failed-Keyword-FETCH-not-expected&amp;goto=newpost</link>
			<pubDate>Tue, 08 May 2012 20:36:36 GMT</pubDate>
			<description><![CDATA[Hey guys, 
 
I'm trying to move a Valence 2.2 app to 3.1 and, other than recompiling the backend RPG over a Valence 3.1 library, I've done nothing to...]]></description>
			<content:encoded><![CDATA[<div><span style="font-family: tahoma">Hey guys,<br />
<br />
I'm trying to move a Valence 2.2 app to 3.1 and, other than recompiling the backend RPG over a Valence 3.1 library, I've done nothing to change it. It runs in 2.2 but when I try to run it in 3.1 I get the following error:<br />
<br />
{&quot;SUCCESS&quot;:&quot;0&quot;,&quot;MSG&quot;:&quot;ERROR OCCURED-SQL prepare failed (SQLSTT=42601) - SQL0199 - Keyword FETCH not expected. Valid tokens: FOR USE SKIP WAIT WITH OPTIMIZE.&quot;}</span><br />
<span style="font-family: tahoma"><br />
I'm using vvOut_execSqlToJson in a very simple backend RPG (with a ridiculous dynamic SQL statement):<br />
<br />
</span><div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code"> <br />
wStmt ='Select a.YAAN8, a.YAALPH, Substring(a.YAHMCU,8,2) As CC, ' +&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  'b.ABALPH, c.JMDL01, d.MCDL01, Left(e.DRDL01,3) As SHIFT ' +<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  'From PRODDTA/F060116 a ' +<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  'Left Join PRODDTA/F0101 b On a.YAANPA = b.ABAN8 ' +<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  'Left Join PRODDTA/F08001 c On a.YAJBCD = c.JMJBCD ' +<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  'And a.YAJBST = c.JMJBST ' +<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  'Left Join PRODDTA/F0006 d On ' +<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  'Substring(a.YAHMCU,4,6)= Substring(d.MCMCU,7,6) ' +<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  'Left Join PRODCTL/F0005 e On a.YASHFT = Substring(e.DRKY,10,1) ' +<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  'And e.DRSY = '+SQ+ '06' +SQ+ ' And e.DRRT = ' +SQ+ 'SH' +SQ+<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  ' Where a.YAPAST &lt;&gt; '+SQ+ 'T' +SQ;<br />
<br />
&nbsp; &nbsp; &nbsp;  // Retrieve search field values from browser page<br />
&nbsp; &nbsp; &nbsp;  vvOut.startFrom =vvIn_num('start');<br />
&nbsp; &nbsp; &nbsp;  vvOut.maxResults=vvIn_num('limit');<br />
&nbsp; &nbsp; &nbsp;  wSortField&nbsp; &nbsp; &nbsp;  =vvIn_char('sort');<br />
&nbsp; &nbsp; &nbsp;  wName&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =vvIn_char('name');<br />
&nbsp; &nbsp; &nbsp;  wCost&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =vvIn_char('cost');<br />
&nbsp; &nbsp; &nbsp;  wTitle&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  =vvIn_char('title');<br />
&nbsp; &nbsp; &nbsp;  wSupervisor&nbsp; &nbsp; &nbsp; =vvIn_char('supervisor');<br />
<br />
<br />
&nbsp; &nbsp; &nbsp;  wName = %xlate(lower:upper:wName);<br />
&nbsp; &nbsp; &nbsp;  wTitle = %xlate(lower:upper:wTitle);<br />
&nbsp; &nbsp; &nbsp;  wSupervisor = %xlate(lower:upper:wSupervisor);<br />
<br />
<br />
&nbsp; &nbsp; &nbsp;  // Continue to build SQL stmt with search criteria (if any) from user<br />
&nbsp; &nbsp; &nbsp;  If wName &lt;&gt; *blanks;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  wStmt+=' And Upper(a.YAALPH) Like '+SQ+'%'+%trim(wName)+'%'+SQ;<br />
&nbsp; &nbsp; &nbsp;  Endif;<br />
<br />
<br />
&nbsp; &nbsp; &nbsp;  If wCost &lt;&gt; *blanks;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  wStmt+=' And Substring(a.YAHMCU,8,2) Like '+SQ+'%'+%trim(wCost)+'%'+SQ;<br />
&nbsp; &nbsp; &nbsp;  Endif;<br />
<br />
<br />
&nbsp; &nbsp; &nbsp;  If wTitle &lt;&gt; *blanks;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  wStmt+=' And Upper(c.JMDL01) Like '+SQ+'%'+%trim(wTitle)+'%'+SQ;<br />
&nbsp; &nbsp; &nbsp;  Endif;<br />
<br />
<br />
&nbsp; &nbsp; &nbsp;  If wSupervisor &lt;&gt; *blanks;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  wStmt+=' And Upper(b.ABALPH) Like '+SQ+'%'+%trim(wSupervisor)+'%'+SQ;<br />
&nbsp; &nbsp; &nbsp;  Endif;<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; // Finish up SQL stmt and pass it to Valence service pgm for processing<br />
&nbsp; &nbsp; &nbsp;  wSortDir=vvIn_char('dir');<br />
&nbsp; &nbsp; &nbsp;  wStmt+=' Order By '+%trim(wSortField)+' '+%trim(wSortDir) +<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  ' For Read Only';<br />
<br />
<br />
&nbsp; &nbsp; &nbsp;  vvOut.rootName='grid1';<br />
&nbsp; &nbsp; &nbsp;  vvOut_execSqlToJson(vvOut:wStmt);</code><hr />
</div><span style="font-family: tahoma"><br />
<br />
I found another thread in the forum [&quot;SQL question&quot;] from 9/2011 that talks about vvOut_execSqlToJson and the intention to add code to the API in the next release that will append a FETCH clause to the SQL statement... wondering if that has anything to do with it. Any ideas?<br />
<br />
Thanks!<br />
Eva</span></div>

]]></content:encoded>
			<category domain="http://cnxforum.com/forumdisplay.php?23-Valence-3-X-Community-Support">Valence 3.X Community Support</category>
			<dc:creator>EvaY</dc:creator>
			<guid isPermaLink="true">http://cnxforum.com/showthread.php?880-SOLVED-SQL-Prepare-Failed-Keyword-FETCH-not-expected</guid>
		</item>
		<item>
			<title><![CDATA[[HELPED] UPDATE 20120431 : Library VALENCE on Iseries still needed ?]]></title>
			<link>http://cnxforum.com/showthread.php?879-HELPED-UPDATE-20120431-Library-VALENCE-on-Iseries-still-needed&amp;goto=newpost</link>
			<pubDate>Tue, 08 May 2012 07:14:51 GMT</pubDate>
			<description><![CDATA[Hi, 
 
yesterday, i performed the update 2012 04 31 on Valence31 and noticed that a new library 'VALENCE' has been created. 
 
Can i remove this...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
yesterday, i performed the update 2012 04 31 on Valence31 and noticed that a new library 'VALENCE' has been created.<br />
<br />
Can i remove this library : (i assume yes ?)  <br />
<br />
it contains :<br />
<br />
<span style="font-family: Courier New">  Object      Type        Attrib<br />
   VALENCE0    *FILE       SAVF  <br />
   VVUPDATEA   *FILE       SAVF  <br />
   VVUPDATEB   *FILE       SAVF  <br />
   VVUPDATEC   *FILE       SAVF  <br />
   VVUPDATED   *FILE       SAVF  </span><br />
<br />
<br />
also the VALENCE31 library contains 2 savf's  i assume these can also be removed without any problems?<br />
<span style="font-family: Courier New"><br />
VVUPDIFS    *FILE       SAVF <br />
VVUPDLIB    *FILE       SAVF </span><br />
<br />
and how or where can check or verify the version i have on my system ? <br />
<br />
<br />
Thx<br />
Thierry</div>

]]></content:encoded>
			<category domain="http://cnxforum.com/forumdisplay.php?23-Valence-3-X-Community-Support">Valence 3.X Community Support</category>
			<dc:creator>ThierryC</dc:creator>
			<guid isPermaLink="true">http://cnxforum.com/showthread.php?879-HELPED-UPDATE-20120431-Library-VALENCE-on-Iseries-still-needed</guid>
		</item>
		<item>
			<title>Training session idea</title>
			<link>http://cnxforum.com/showthread.php?878-Training-session-idea&amp;goto=newpost</link>
			<pubDate>Mon, 07 May 2012 20:53:01 GMT</pubDate>
			<description>I attended one of your training sessions recently. We spent a bit of time on debugging, but I almost think there should be a class devoted to it. A...</description>
			<content:encoded><![CDATA[<div>I attended one of your training sessions recently. We spent a bit of time on debugging, but I almost think there should be a class devoted to it. A 1-2 day class going over the Chrome and Firefox debuggers, as well as other techniques used. A problem I had today was solved via the forum, just by changing which ext class I imported in. Tips such as this could really increase productivity. If not a class, maybe some webinar sessions would suffice.</div>

]]></content:encoded>
			<category domain="http://cnxforum.com/forumdisplay.php?9-Valence-Feature-Requests">Valence Feature Requests</category>
			<dc:creator>barnettc2</dc:creator>
			<guid isPermaLink="true">http://cnxforum.com/showthread.php?878-Training-session-idea</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] Render Date-Time Stamp in Grid]]></title>
			<link>http://cnxforum.com/showthread.php?877-SOLVED-Render-Date-Time-Stamp-in-Grid&amp;goto=newpost</link>
			<pubDate>Mon, 07 May 2012 20:32:01 GMT</pubDate>
			<description><![CDATA[A Date-Time Stamp from AS400 comes in as Full Year-Month-Day-Hour.Minute.Seconds.Fraction Second. 
Example '2012-05-07-15.55.14.123000' 
 
How to...]]></description>
			<content:encoded><![CDATA[<div>A Date-Time Stamp from AS400 comes in as Full Year-Month-Day-Hour.Minute.Seconds.Fraction Second.<br />
Example '2012-05-07-15.55.14.123000'<br />
<br />
How to display in (MVC) grid as example: 05 / 07 / 2012  15:55:14.123000</div>

]]></content:encoded>
			<category domain="http://cnxforum.com/forumdisplay.php?23-Valence-3-X-Community-Support">Valence 3.X Community Support</category>
			<dc:creator>David</dc:creator>
			<guid isPermaLink="true">http://cnxforum.com/showthread.php?877-SOLVED-Render-Date-Time-Stamp-in-Grid</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] MVC popup window from controller]]></title>
			<link>http://cnxforum.com/showthread.php?876-SOLVED-MVC-popup-window-from-controller&amp;goto=newpost</link>
			<pubDate>Mon, 07 May 2012 19:17:04 GMT</pubDate>
			<description><![CDATA[I have a window class 
 
Code: 
--------- 
Ext.define('PurchaseOrder.view.AddPOWindow', { 
	extend: 'Ext.window.Window', 
	alias:...]]></description>
			<content:encoded><![CDATA[<div>I have a window class<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">Ext.define('PurchaseOrder.view.AddPOWindow', {<br />
&nbsp; &nbsp; &nbsp; &nbsp; extend: 'Ext.window.Window',<br />
&nbsp; &nbsp; &nbsp; &nbsp; alias: 'widget.purchaseorderaddpowindow',<br />
&nbsp; &nbsp; &nbsp; &nbsp; ...</code><hr />
</div>In my controller, from everything I've read, this should display my component:<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">fnNewPo: function() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Open the add window<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var newAddWindow = Ext.widget('purchaseorderaddpowindow');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //newAddWindow.show();<br />
&nbsp; &nbsp; &nbsp; &nbsp; },</code><hr />
</div>It does nothing. if I un-comment the show(), it gives an error &quot;cannot call method substring of undefined&quot;</div>

]]></content:encoded>
			<category domain="http://cnxforum.com/forumdisplay.php?23-Valence-3-X-Community-Support">Valence 3.X Community Support</category>
			<dc:creator>barnettc2</dc:creator>
			<guid isPermaLink="true">http://cnxforum.com/showthread.php?876-SOLVED-MVC-popup-window-from-controller</guid>
		</item>
		<item>
			<title><![CDATA[[HELPED] vvOut_SQLtoCSV]]></title>
			<link>http://cnxforum.com/showthread.php?869-HELPED-vvOut_SQLtoCSV&amp;goto=newpost</link>
			<pubDate>Tue, 01 May 2012 14:01:01 GMT</pubDate>
			<description><![CDATA[I get an error stating "missing ) in parenthetical" with all my titles and data there, it just does not open the csv file in firefox.  This is the...]]></description>
			<content:encoded><![CDATA[<div>I get an error stating &quot;missing ) in parenthetical&quot; with all my titles and data there, it just does not open the csv file in firefox.  This is the spec for the vvOut data structure:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">&nbsp; &nbsp; &nbsp; &nbsp;  vvOut.download = 'Y';<br />
&nbsp; &nbsp; &nbsp; &nbsp;  vvOut.file&nbsp; &nbsp;  = 'flockSchedule.csv';<br />
&nbsp; &nbsp; &nbsp; &nbsp;  vvOut.longSqlNames = 'Y';<br />
&nbsp; &nbsp; &nbsp; &nbsp;  vvOut_execSqlToCSV(vvOut:stmt);</code><hr />
</div>It appears the SQL statement is working fine, it just isn't completing the csv file process.  All the data is showing up in debug in the response.</div>

]]></content:encoded>
			<category domain="http://cnxforum.com/forumdisplay.php?23-Valence-3-X-Community-Support">Valence 3.X Community Support</category>
			<dc:creator>ktoole</dc:creator>
			<guid isPermaLink="true">http://cnxforum.com/showthread.php?869-HELPED-vvOut_SQLtoCSV</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] Grid store reload]]></title>
			<link>http://cnxforum.com/showthread.php?868-SOLVED-Grid-store-reload&amp;goto=newpost</link>
			<pubDate>Fri, 27 Apr 2012 18:19:26 GMT</pubDate>
			<description>Ok, this MVC is hurting my head. I have a grid, with an associated store. I have search fields, that should make the store reload the data and update...</description>
			<content:encoded><![CDATA[<div>Ok, this MVC is hurting my head. I have a grid, with an associated store. I have search fields, that should make the store reload the data and update the grid. I have a listener set up in my controller: <br />
                         <div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">'#searchpo': {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; specialkey: function(field, e) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (e.getKey() === e.ENTER) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var searchPOValue = this.getPurchaseOrderGrid().down(&quot;#searchpo&quot;).getValue();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var theGrid = this.getPurchaseOrderGrid();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var theGridStore = theGrid.getStore();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; theGridStore.removeAll();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; theGridStore.proxy.extraParams = {searchpo: searchPOValue};<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; theGridStore.load();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Ext.Msg.alert('Sweet!', 'You searched for PO ' + searchPOValue);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</code><hr />
</div>I get a 500 server error on the load().<br />
<br />
I can provide more info if needed.</div>

]]></content:encoded>
			<category domain="http://cnxforum.com/forumdisplay.php?23-Valence-3-X-Community-Support">Valence 3.X Community Support</category>
			<dc:creator>barnettc2</dc:creator>
			<guid isPermaLink="true">http://cnxforum.com/showthread.php?868-SOLVED-Grid-store-reload</guid>
		</item>
	</channel>
</rss>

