<?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: Defining ID parameter in formatter's showlink</title>
	<link>http://www.trirand.com/blog/?page_id=393/feature-request/defining-id-parameter-in-formatters-showlink</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/feature-request/defining-id-parameter-in-formatters-showlink/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Defining ID parameter in formatter's showlink</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/defining-id-parameter-in-formatters-showlink#p5810</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/defining-id-parameter-in-formatters-showlink#p5810</guid>
        	        	<description><![CDATA[<p>Hello Tac,</p>
<p>Thanks for this. I think that using template is one very good approach. The question is how to do this in easy way for the developer. I will think about this. If you have ideas will be glad to hear.</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 03 Apr 2009 02:52:47 +0300</pubDate>
        </item>
        <item>
        	<title>tacman1123 on Defining ID parameter in formatter's showlink</title>
        	<link>http://www.trirand.com/blog/?page_id=393/feature-request/defining-id-parameter-in-formatters-showlink#p5795</link>
        	<category>Feature Request</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/feature-request/defining-id-parameter-in-formatters-showlink#p5795</guid>
        	        	<description><![CDATA[<p>Formatter automatically appends id=n, where n is the primary key of a row if the formatter is set to showlink. &#160;This happens in other places as well (edit, search). &#160;Would it be possible to set the name of the primary key when initializing the class? &#160;If I&#39;m displaying a list of customers and I want to see their invoices, and I set a column to showlink (say, the number of open invoices), I want to call a script in the format invoices.php?customer_id=n, not id=n (which may give me invoice number n, if anything). &#160;This is further complicated if I&#39;m showing a list of products sold, and I want to see all the invoices where they were sold. &#160;If I set showlink, the default comes out to invoices.php?id=x</p>
<p>Obviously, I can add my own extra parameter to this id=n&#38;id_name=customer_id.</p>
<p>Even better would be a template or sprintf that would define where I wanted the ID. &#160;For example, I use a lot of rewrite rules, for our news table I don&#39;t want articles.php?id=777&#38;id_name=article_id, I want the much cleaner</p>
<p>/news/article_777.html</p>
<p>Also, can you explain showaction? &#160;I can&#39;t figure out how to use it.</p>
<p>Thanks!</p>
<p>Tac</p>
]]></description>
        	        	<pubDate>Thu, 02 Apr 2009 16:58:59 +0300</pubDate>
        </item>
</channel>
</rss>