<?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: Foreign Keys</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/foreign-keys</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/foreign-keys/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>palobo on Foreign Keys</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/foreign-keys#p3256</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/foreign-keys#p3256</guid>
        	        	<description><![CDATA[<p>Hi Barry,</p>
<p>The method I mentioned for Pete was setting a column with the needed id. If you are talking about the problem with the select input (Post returns value as it should but then when we load value, it displays value and not label 🙁 ) I had to do some serverside juggling to display the results correctly.</p>
<p>Cheers,<br />P.</p>
]]></description>
        	        	<pubDate>Tue, 25 Nov 2008 06:54:06 +0200</pubDate>
        </item>
        <item>
        	<title>Barry on Foreign Keys</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/foreign-keys#p3239</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/foreign-keys#p3239</guid>
        	        	<description><![CDATA[<p>Pete,</p>
<p>Did this work for you? I&#39;ve got a grid with several foreign keys. I made it work, but I&#39;m looking for a cleaner way.</p>
<p>Barry</p>
]]></description>
        	        	<pubDate>Mon, 24 Nov 2008 17:27:18 +0200</pubDate>
        </item>
        <item>
        	<title>palobo on Foreign Keys</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/foreign-keys#p3236</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/foreign-keys#p3236</guid>
        	        	<description><![CDATA[<p>Glad I could help! 😉</p>
<p>Cheers,<br />P.</p>
]]></description>
        	        	<pubDate>Mon, 24 Nov 2008 16:48:43 +0200</pubDate>
        </item>
        <item>
        	<title>kpdirection on Foreign Keys</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/foreign-keys#p3208</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/foreign-keys#p3208</guid>
        	        	<description><![CDATA[<p>Hi Palobo,</p>
<p>Yes, that&#39;s exactly what I want to do! Thank you!</p>
<p>(I&#39;m still a newbie at JQuery stuff, so sometimes the basic real answers get lost in the noise!)</p>
</p>
<p>Thanks again.</p>
</p>
<p>Pete.</p>
]]></description>
        	        	<pubDate>Mon, 24 Nov 2008 00:18:12 +0200</pubDate>
        </item>
        <item>
        	<title>palobo on Foreign Keys</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/foreign-keys#p3192</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/foreign-keys#p3192</guid>
        	        	<description><![CDATA[<p>Hi Pete.</p>
<p>I&#39;m not quite sure I get what you want to do, but try the following:</p>
<p>Pass the salesrepid as a colum also, set key:true and hidden:true. Column salesrep should be there also but visible. That way you can reference salesrepid and view salesrep.</p>
<p>Hopes this helps</p>
<p>P.</p>
]]></description>
        	        	<pubDate>Fri, 21 Nov 2008 06:13:05 +0200</pubDate>
        </item>
        <item>
        	<title>kpdirection on Foreign Keys</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/foreign-keys#p3166</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/foreign-keys#p3166</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>I have a database in 3rd normal form; simplistic structures as follows;</p>
<p>branch:</p>
<p>branchid integer,</p>
<p>salesrepid integer,</p>
<p>branchaddress char(255);</p>
</p>
<p>salesrep:</p>
<p>salesrepid integer,</p>
<p>salesrepname char(50);</p>
</p>
<p>When I display the table of branches, it shows the sales rep ids, not their names.</p>
<p>I need the sales rep ids in there so that I can record updates, but I only want the customer to see the sales rep name.</p>
<p>Using JSON, the colmodel for the branch sales rep is as follows;</p>
<p>{name:&#39;salesrep&#39;,index:&#39;salesrep&#39;, width:90, editable: true, edittype:"select", editoptions:{value:"0:Fred;1:George;2:Noah"} },</p>
<p>So from this, I&#39;d like the customer to see Fred, George and Noah as drop down options (this works), and when the customer just looks at the list of branches, he sees the correct foreign key reference - Fred, George or Noah as appropriate, and NOT 0,1 or 2, which is what happens at present.</p>
<p>What am I doing wrong?</p>
</p>
<p>Regards,</p>
</p>
<p>Pete.</p>
]]></description>
        	        	<pubDate>Wed, 19 Nov 2008 23:51:03 +0200</pubDate>
        </item>
</channel>
</rss>