<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>jQuery Grid Plugin - jqGrid - Topic: stype="select" search field name is wrong</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/stypeselect-search-field-name-is-wrong</link>
	<description><![CDATA[Grid plugin]]></description>
	<generator>Simple:Press Version 5.7.5.3</generator>
	<atom:link href="http://www.trirand.com/blog/?page_id=393/bugs/stypeselect-search-field-name-is-wrong/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>blejzu on stype="select" search field name is wrong</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/stypeselect-search-field-name-is-wrong#p12199</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/stypeselect-search-field-name-is-wrong#p12199</guid>
        	        	<description><![CDATA[<p>I&#39;m not sure if it&#39;s related to this bug, but Advanced Search example in jqGrid demo is broken. After choosing "Tax" field you get undefined instead of tax values.</p>
]]></description>
        	        	<pubDate>Thu, 19 Nov 2009 13:28:56 +0200</pubDate>
        </item>
        <item>
        	<title>tony on stype="select" search field name is wrong</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/stypeselect-search-field-name-is-wrong#p12161</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/stypeselect-search-field-name-is-wrong#p12161</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>@Klaus - Thanks for this and the recommendation. I will look on this right now.</p>
<p>@magic_pie4 - Thanks for this. Will test with your options and let you know about the result</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 19 Nov 2009 04:22:52 +0200</pubDate>
        </item>
        <item>
        	<title>magic_pie4 on stype="select" search field name is wrong</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/stypeselect-search-field-name-is-wrong#p12122</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/stypeselect-search-field-name-is-wrong#p12122</guid>
        	        	<description><![CDATA[<p>I am doing a single search. The problem I&#39;m having is when I use the</p>
<p>stype:&#39;select&#39;, searchoptions:{value:&#8221;0003:ABC Company;0004:XYZCompany&#8221;}&#160;</p>
<p>To generate a dropdown for the search, then the parm that it sends my data layer for</p>
<p>searchField is the string &#8220;0003:ABC Company;0004:XYZCompany&#8221; and not the name or index value of merch_id.</p>
<p>Basically, then my sql query tries to run this sql:</p>
<p>$sql = &#39;SELECT * from merchants WHERE&#160;0003:ABC Company;0004:XYZCompany= &#8220;XYZCompany =&#160;0003&#8243;</p>
<p>It is stuffing the wrong value for the searchField Parm in the post/get.</p>
<p>The information I provided earlier is from the firebug output.</p>
<p><a href="http://www.webdbi.com/searchField_wrong.JPG"><img src="http://www.webdbi.com/searchField_wrong.JPG" width="100"  class="sfimageleft spUserImage" alt="" /><img src="http://www.trirand.com/blog/wp-content/sp-resources/forum-themes/default/images/sp_Mouse.png" class="sfimageleft sfmouseleft" alt="Image Enlarger" /></a></p>
</p>
<p>If I am doing this incorrectly, any help would be appreciated. I basically just want <br />1) for select to send it&#39;s value as the search string, and <br />2) for the searchField to be the actual field, and not the list of values.</p>
]]></description>
        	        	<pubDate>Wed, 18 Nov 2009 08:39:51 +0200</pubDate>
        </item>
        <item>
        	<title>Klaus on stype="select" search field name is wrong</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/stypeselect-search-field-name-is-wrong#p12121</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/stypeselect-search-field-name-is-wrong#p12121</guid>
        	        	<description><![CDATA[<p>I&#39;ve noticed similar problems with the definition of the value-attribute for stype:select in the search-/editoptions and my table search <strong>still does not work</strong> with the patch (of changing the order of the soptions-extend) mentioned above!</p>
</p>
<p>I solved the problem the following way, which in my option is not really a clean solution:</p>
<p>... stype: &#39;select&#39;, editoptions:{value:{&#39;yes&#39;:&#39;yes&#39;,&#39;no&#39;:&#39;no&#39;}}&#160;&#160;&#160;&#160;&#160; // set the values for the select field via the editoptions attribute - and do not overwrite value of searchoptions</p>
<p>... // and change the order of the if-statement in grid.formedit.js (because soptions.value is inherited from somewhere with the column name (and is also required to be so, otherwise the problem of the field=[Object Object] occurs)</p>
<p>if(this.stype == &#39;select&#39;) {</p>
<p>...</p>
<p>&#160; &#160; if(this.editoptions)<br />&#160; &#160; &#160; &#160; eov = this.editoptions.value;<br />&#160;&#160;&#160; else if(soptions.value)<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; eov = soptions.value;*/</p>
<p>...</p>
</p>
<p>I would prefer a clean attribute naming which does not conflict with the column name stored in the value field.</p>
<p>Internally the select key-value pairs are stored in the soptions.dataValues array, so why not pass it in the column model either via the searchoptions or the editoptions as attribute "<strong>datavalues</strong>"???</p>
</p>
<p>Kind regard,</p>
<p>Klaus.</p></p>
]]></description>
        	        	<pubDate>Wed, 18 Nov 2009 08:37:20 +0200</pubDate>
        </item>
        <item>
        	<title>tony on stype="select" search field name is wrong</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/stypeselect-search-field-name-is-wrong#p12111</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/stypeselect-search-field-name-is-wrong#p12111</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>@magic_pie4 - In case of single search that are the parameters. Please refer to docs in order to see the difference.</p>
<p>@ssss...s - I have made the changes in GitHub.</p>
</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 18 Nov 2009 07:18:52 +0200</pubDate>
        </item>
        <item>
        	<title>ssssssssssss on stype="select" search field name is wrong</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/stypeselect-search-field-name-is-wrong#p12097</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/stypeselect-search-field-name-is-wrong#p12097</guid>
        	        	<description><![CDATA[<p>I&#39;m not so familiar with params you listed, so I guess you are not using the 3.6 release.</p>
<p>Actually, if you are using the version 3.6,you will notice a param called:filters. That&#39;s the key/value what we are talking about.</p>
]]></description>
        	        	<pubDate>Tue, 17 Nov 2009 19:51:02 +0200</pubDate>
        </item>
        <item>
        	<title>magic_pie4 on stype="select" search field name is wrong</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/stypeselect-search-field-name-is-wrong#p12080</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/stypeselect-search-field-name-is-wrong#p12080</guid>
        	        	<description><![CDATA[<p>I believe this is related due to the topic title, but I don&#39;t understand the solution.</p>
</p>
<p>I have a grid with a column setup as this:</p>
<p><pre id="line14">{name:&#39;merch_id&#39;,index:&#39;merch_id&#39;,width:150, align:&#39;center&#39;,editable: true, stype:&#39;select&#39;, searchoptions:{value:"00000003:ABC Company;00000004:XYZ Company", sopt:[&#39;cn&#39;,&#39;nc&#39;]}, formatter:&#39;select&#39;, edittype:"select", editoptions:{value: "00000003:ABC Company;00000004:XYZ Company"}},
</pre>
<pre id="line14"></pre>
<pre id="line14">When you bring up the search dialog, it displays the items correctly as a dropdown and you can select them, etc. Once you submit this however, it sends the following parms:</pre>
<pre id="line14"><tr><td class="netInfoParamName">_search</td><td class="netInfoParamValue"><pre>true</pre>
</td>
</tr>
<tr>
<td class="netInfoParamName">nd</td>
<td class="netInfoParamValue">
<pre>1258484858633</pre>
</td>
</tr>
<tr>
<td class="netInfoParamName">oper</td>
<td class="netInfoParamValue">
<pre>getdata</pre>
</td>
</tr>
<tr>
<td class="netInfoParamName">page</td>
<td class="netInfoParamValue">
<pre>1</pre>
</td>
</tr>
<tr>
<td class="netInfoParamName">rows</td>
<td class="netInfoParamValue">
<pre>10</pre>
</td>
</tr>
<tr>
<td class="netInfoParamName"><strong>searchField</strong></td>
<td class="netInfoParamValue">
<pre><span style="color: #ff0000;">00000003:ABC Company;00000004:XYZ Company</span></pre>
</td>
</tr>
<tr>
<td class="netInfoParamName">searchOper</td>
<td class="netInfoParamValue">
<pre>cn</pre>
</td>
</tr>
<tr>
<td class="netInfoParamName">searchString</td>
<td class="netInfoParamValue">
<pre>00000004</pre>
</td>
</tr>
<tr>
<td class="netInfoParamName">sidx</td>
<td class="netInfoParamValue">
<pre>list_name</pre>
</td>
</tr>
<tr>
<td class="netInfoParamName">sord</td>
<td class="netInfoParamValue">
<pre>asc</pre>
<pre><br />Note the searchString is correct (from the one I selected), but the searchField should be populated with merch_id. </pre>
</td>
</tr>
]]></description>
        	        	<pubDate>Tue, 17 Nov 2009 13:14:44 +0200</pubDate>
        </item>
        <item>
        	<title>ssssssssssss on stype="select" search field name is wrong</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/stypeselect-search-field-name-is-wrong#p12036</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/stypeselect-search-field-name-is-wrong#p12036</guid>
        	        	<description><![CDATA[<p>Any docs about it here?</p>
<p>the minifyed file is not so hard to read, I found this one:</p>
<p>soptions=b.extend({},{text:v[w],value:j.index&#124;&#124;j.name},this.searchoptions)</p>
<p>&#38; change to:</p>
<p>soptions=b.extend({},this.searchoptions,{text:v[w],value:j.index&#124;&#124;j.name})</p>
</p>
<p>then the options will not be displayed.</p>
]]></description>
        	        	<pubDate>Tue, 17 Nov 2009 01:05:26 +0200</pubDate>
        </item>
        <item>
        	<title>tony on stype="select" search field name is wrong</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/stypeselect-search-field-name-is-wrong#p12034</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/stypeselect-search-field-name-is-wrong#p12034</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>If you have ant istalled you can make a min file easy</p>
<p>Regards</p></p>
]]></description>
        	        	<pubDate>Tue, 17 Nov 2009 00:52:52 +0200</pubDate>
        </item>
        <item>
        	<title>ssssssssssss on stype="select" search field name is wrong</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/stypeselect-search-field-name-is-wrong#p12033</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/stypeselect-search-field-name-is-wrong#p12033</guid>
        	        	<description><![CDATA[<p>I edited the src file, it seems work, but if I edit the minifyed js file directly, the options will display "undefined". Anything wrong?</p>
<p>When &#38; where can I get the fixed release?</p>
</p>
<p>Thanks a lot!</p>
]]></description>
        	        	<pubDate>Tue, 17 Nov 2009 00:51:03 +0200</pubDate>
        </item>
        <item>
        	<title>tony on stype="select" search field name is wrong</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/stypeselect-search-field-name-is-wrong#p12008</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/stypeselect-search-field-name-is-wrong#p12008</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Aha, Thanks. Will be fixed.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 16 Nov 2009 23:20:54 +0200</pubDate>
        </item>
        <item>
        	<title>ssssssssssss on stype="select" search field name is wrong</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/stypeselect-search-field-name-is-wrong#p12002</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/stypeselect-search-field-name-is-wrong#p12002</guid>
        	        	<description><![CDATA[<p>grid.formedit.js</p>
<p>line:52</p>
<p>soptions = $.extend({},{text: colNames[i],value: v.index &#124;&#124; v.name},this.searchoptions),</p>
<p>Should be:</p>
<p>soptions = $.extend({},this.searchoptions,{text: colNames[i],value: v.index &#124;&#124; v.name}),</p>
</p>
<p>Because if the stype=="select" then searchoptions may contain the value atrribute.</p>
<p>And we will buildOption based on the fields.value which now is an object. That will make the search filter looks like this:</p>
<p>{"groupOp"%3A"AND"%2C"rules"%3A[{"field"%3A"<span style="color: #ff0000;">[Object+Object]</span>"%2C"op"%3A"eq"%2C"data"%3A"card"}]}</p>
]]></description>
        	        	<pubDate>Mon, 16 Nov 2009 22:54:23 +0200</pubDate>
        </item>
</channel>
</rss>