<?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: colModel name vs index</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/colmodel-name-vs-index</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/help/colmodel-name-vs-index/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>squid on colModel name vs index</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/colmodel-name-vs-index#p17373</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/colmodel-name-vs-index#p17373</guid>
        	        	<description><![CDATA[<p>The index is the key in the database used for certain operations (like searching). &#160;For example, I have a status_id column in one table that is mapped via a join to get the status name from the status table (i.e. &#160;table.status_id is a foreign key). &#160;Then, for searching, I have jqGrid create a dropdown of statuses that can be searched on. &#160;When jqGrid submits the request to the PHP script, instead of asking for status=&#39;blah&#39; (for example), it would say status_id = 1 (assuming status_id was set as the index, and blah = 1 in the status table). &#160;Does that help?</p>
]]></description>
        	        	<pubDate>Thu, 20 May 2010 23:47:20 +0300</pubDate>
        </item>
        <item>
        	<title>Energetic Pixels on colModel name vs index</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/colmodel-name-vs-index#p17363</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/colmodel-name-vs-index#p17363</guid>
        	        	<description><![CDATA[<p>Good Morning Tony,</p>
</p>
<p>&#160; &#160; Yes, I did read it. &#160;That was why I was asking for clarification.</p>
</p>
<p>&#160; &#160; Since my earlier post, I have went back into my colModel and made both name and index unique through out the whole colModel. &#160;My thinking was that I might have a conflict somewhere in there. &#160;Come to find out, that did not change my outcome.</p>
</p>
<p>&#160; &#160; I finally got it to work. &#160;I uploaded the whole project to a outside web space that we have. &#160;I cleared my IE cache (several times). &#160;I did a voodoo dance over IE.</p>
</p>
<p>&#160; &#160; Now everything works. &#160;What craziness!</p>
</p>
<p>&#160; &#160;but it was your suggestion that did give me insight. &#160;Thanks.</p>
<p>Tony&#160;<img class="spSmiley" style="margin:0" title="Cool" src="/blog/wp-content/forum-smileys/sf-cool.gif" alt="Cool" /><img class="spSmiley" style="margin:0" title="Smile" src="/blog/wp-content/forum-smileys/sf-smile.gif" alt="Smile" /></p>
]]></description>
        	        	<pubDate>Thu, 20 May 2010 20:09:09 +0300</pubDate>
        </item>
        <item>
        	<title>tony on colModel name vs index</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/colmodel-name-vs-index#p17354</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/colmodel-name-vs-index#p17354</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Did you have consult the docs regrading this?</p>
<p><a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:colmodel_options" rel="nofollow" target="_blank"><a href="http://www.trirand.com/jqgridw" rel="nofollow">http://www.trirand.com/jqgridw</a>.....el_options</a></p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 20 May 2010 19:11:32 +0300</pubDate>
        </item>
        <item>
        	<title>Energetic Pixels on colModel name vs index</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/colmodel-name-vs-index#p17348</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/colmodel-name-vs-index#p17348</guid>
        	        	<description><![CDATA[<p>Newbie here.</p>
</p>
<p>What is the difference between the attribute name and index within the colModel? &#160;I am having issues with targeting 3rd and 4th tree levels within my static xml files. &#160;Here is part of my xml:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit7459' value='Select Code' data-codeid='sfcode7459' /></p>
<div class='sfcode' id='sfcode7459'>&#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34; standalone=&#34;yes&#34;?&#62;<br />&#60;smallArms&#62;<br /> &#60;bullet saId=&#34;1&#34;&#62;<br /> &#60;DODIC&#62;A085&#60;/DODIC&#62;<br /> &#60;size&#62;22 cal&#60;/size&#62;<br /> &#60;nomenclature&#62;CARTRIDGE, CALIBER .22 CAL SHORT, BLANK&#60;/nomenclature&#62;<br /> &#60;use&#62;Used by .22 caliber starter pistols.&#60;/use&#62;<br /> &#60;description&#62;Identified by its short brass case, no projectile and rimfire primer.&#60;/description&#62;<br /> &#60;objLength&#62;<br /> &#60;value&#62;&#60;/value&#62;<br /> &#60;unit&#62;&#60;/unit&#62;<br /> &#60;/objLength&#62;<br /> &#60;objWidth&#62;<br /> &#60;value&#62;&#60;/value&#62;<br /> &#60;unit&#62;&#60;/unit&#62;<br /> &#60;/objWidth&#62;<br /> &#60;objHeight&#62;<br /> &#60;value&#62;&#60;/value&#62;<br /> &#60;unit&#62;&#60;/unit&#62;<br /> &#60;/objHeight&#62;<br />.....&#160;</div>
<p>I am needing to individually target, say the value or unit elements from objLength level. &#160;but my jqGrid setup grid dies when it gets to this part (onSelectRow operation). &#160;So I am thinking that it may be due to a index or name conflict within the colModel. &#160;jqGrid operates just fine as long as I don&#39;t try and do something with something at the level of &#60;value&#62; or &#60;unit&#62;. &#160; Do I need to make the index values within colModel explicitly unique within the whole colModel?? &#160;Right now, my colModel has value and unit levels the same name even though they are subvalues of different elements. &#160;Here is part of my jqGrid set-up:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit2512' value='Select Code' data-codeid='sfcode2512' /></p>
<div class='sfcode' id='sfcode2512'>colModel:[<br /> {name:&#34;dodic&#34;,index:&#34;dodic&#34;, xmlmap:&#34;DODIC&#34;, width:30, align:&#34;center&#34;, search: true, stype:&#34;text&#34;, label: &#34;DODIC&#34;},<br /> {name:&#34;size&#34;, index:&#34;size&#34;, xmlmap:&#34;size&#34;,width:30, align:&#34;center&#34;, search: true, stype: &#34;float&#34;, label: &#34;Size/Caliber&#34;},<br /> {name:&#34;nomenclature&#34;,index:&#34;nomenclature&#34;, xmlmap:&#34;nomenclature&#34;, width:120, align:&#34;left&#34;, search: false, sorttype: &#34;text&#34;, label: &#34;Nomenclature&#34;},<br /> {name:&#34;used&#34;, index:&#34;used&#34;,xmlmap:&#34;used&#34;, width:120,align:&#34;left&#34;,search:false,sorttype:&#34;text&#34;, label:&#34;Use&#34;, hidden: true},<br /> {name:&#34;description&#34;, index:&#34;description&#34;, xmlmap:&#34;description&#34;,width:120, align:&#34;center&#34;, search: false, stype: &#34;float&#34;, hidden: true, label: &#39;Description&#39;},<br /> {name:&#34;objLengthvalue&#34;, index:&#34;value&#34;, xmlmap:&#34;objLength&#62;value&#34;,width:30, align:&#34;center&#34;, search: false, stype: &#34;text&#34;, hidden: true},<br /> {name:&#34;objLengthunit&#34;, index:&#34;unit&#34;, xmlmap:&#34;objLength&#62;unit&#34;,width:30, align:&#34;center&#34;, search: false, stype: &#34;text&#34;, hidden: true, label: &#39;Width&#39;},<br /> {name:&#34;objWidthvalue&#34;, index:&#34;value&#34;, xmlmap:&#34;objWidth&#62;value&#34;,width:30, align:&#34;center&#34;, search: false, stype: &#34;float&#34;, hidden: true},<br /> {name:&#34;objWidthunit&#34;, index:&#34;unit&#34;, xmlmap:&#34;objWidth&#62;unit&#34;,width:30, align:&#34;center&#34;, search: false, stype: &#34;text&#34;, hidden: true},<br /> {name:&#34;objHeightvalue&#34;, index:&#34;value&#34;, xmlmap:&#34;objHeight&#62;value&#34;,width:30, align:&#34;center&#34;, search: false, stype: &#34;float&#34;, hidden: true},<br />&#160;			{name:&#34;objHeightunit&#34;, index:&#34;unit&#34;, xmlmap:&#34;objHeight&#62;unit&#34;,width:30, align:&#34;center&#34;, search: false, stype: &#34;text&#34;, hidden: true},&#160;</div>
</p>
<p>My onSelectRow operates just fine until I try and do something like pull data from say objLength for value and unit and display it in a div. &#160;here is my onSelectRow operation from my jqGrid set up:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit7684' value='Select Code' data-codeid='sfcode7684' /></p>
<div class='sfcode' id='sfcode7684'>onSelectRow: function() {<br /> var gsr = $(&#39;#searchResults&#39;).jqGrid(&#39;getGridParam&#39;, &#39;selrow&#39;);<br /> if (gsr) {<br /> var data = $(&#39;#searchResults&#39;).jqGrid(&#39;getRowData&#39;, gsr);<br /> $(&#39;#basicMun #dodic&#39;).append(&#39;DODIC:  &#39; + data.dodic);<br /> $(&#39;#basicMun #title&#39;).append(&#39;Nomenclature:  &#39; + data.nomenclature);<br /> $(&#39;#basicMun #use&#39;).append(&#39;Use:  &#39; + data.use);<br /> $(&#39;#basicMun #description&#39;).append(&#39;Description:  &#39; + data.description);<br /> /******Below is where my code is breaking -- What the heck*************/<br /> $(&#39;#basicMun #objLength&#39;).append(&#39;Length:  &#39; + data.objLength.value + &#39; &#39; + data.objLength.unit);<br /> $(&#39;#basicMun #objWidth&#39;).append(&#39;Width:  &#39; + data.objWidth.value + &#39; &#39; + data.objWidth.unit);<br /> $(&#39;#basicMun #objHeight&#39;).append(&#39;Height:  &#39; + data.objHeight.value + &#39; &#39; + data.objHeight.unit);<br /> $(&#39;#basicMun #objDiameter&#39;).append(&#39;Diameter: &#39; + data.objDiameter.value + &#39; &#39; + data.objDiameter.unit);<br />$(&#39;#basicMun #objWeight&#39;).append(&#39;Weight: &#39; + data.objWeight.value + &#39; &#39; + data.objWeight.unit);&#160;</div>
</p>
<p>Tony&#160;<img class="spSmiley" style="margin:0" title="Confused" src="/blog/wp-content/forum-smileys/sf-confused.gif" alt="Confused" /></p>
]]></description>
        	        	<pubDate>Thu, 20 May 2010 18:48:24 +0300</pubDate>
        </item>
</channel>
</rss>