<?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: jsonreader can it read this? (Lotus Domino created JSON)</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/jsonreader-can-it-read-this-lotus-domino-created-json</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/jsonreader-can-it-read-this-lotus-domino-created-json/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on jsonreader can it read this? (Lotus Domino created JSON)</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jsonreader-can-it-read-this-lotus-domino-created-json#p3283</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jsonreader-can-it-read-this-lotus-domino-created-json#p3283</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Will check this. Maybe it is not connected with the css.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 26 Nov 2008 01:53:29 +0200</pubDate>
        </item>
        <item>
        	<title>skkarri on jsonreader can it read this? (Lotus Domino created JSON)</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jsonreader-can-it-read-this-lotus-domino-created-json#p3273</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jsonreader-can-it-read-this-lotus-domino-created-json#p3273</guid>
        	        	<description><![CDATA[<p>Thanks tony.</p>
<p>I did a second pass in the translation to move the attribute values to elements. Good job at the grid plugin...its pretty cool.</p>
<p>I had a couple of issues with the css not showing the buttons and had to change the default table css definition.</p>
<p>Also, if i make the cells editable for the grid, and there exists a sub grid, double clicking it&#160;shows the raw html with the underlying table definition. Is there a property to avoid this ?</p>
<p>Thanks,</p>
<p>SK</p>
]]></description>
        	        	<pubDate>Tue, 25 Nov 2008 21:19:39 +0200</pubDate>
        </item>
        <item>
        	<title>tony on jsonreader can it read this? (Lotus Domino created JSON)</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jsonreader-can-it-read-this-lotus-domino-created-json#p3211</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jsonreader-can-it-read-this-lotus-domino-created-json#p3211</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Hello,</p>
<p>The attribute in XML can be used only for the id - to work this</p>
<p>&#60;row&#62;</p>
<p>&#60;cell1&#62; TS1 &#60;/cell1&#62;</p>
<p>&#60;cell2&#62; TS2 &#60;/cell2&#62;</p>
<p>&#60;/row&#62;</p>
<p>{name:&#39;cell1&#39;,index:&#39;cell1&#39;,xmlmap:&#39;cell1&#39;...}</p>
<p>xmlReader : {</p>
<p>repeatitems : false,</p>
<p>row : "row"</p>
<p>root : "here_is _your_root",</p>
<p>...</p>
<p>}</p>
<p>Also refere to jsonReader in the docs on what you can do with it</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 24 Nov 2008 00:40:04 +0200</pubDate>
        </item>
        <item>
        	<title>skkarri on jsonreader can it read this? (Lotus Domino created JSON)</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jsonreader-can-it-read-this-lotus-domino-created-json#p3201</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jsonreader-can-it-read-this-lotus-domino-created-json#p3201</guid>
        	        	<description><![CDATA[<p>Also, going with the same approach&#160;using an&#160;xml as below</p>
<p>&#60;rows&#62;</p>
<p>&#160; &#60;cell1 v="TS1"/&#62;&#60;cell2 v="A01"/&#62;</p>
<p>&#60;/rows&#62;</p>
<p>&#60;rows&#62;</p>
<p>&#160; &#60;cell1 v="TS2"/&#62;&#60;cell2 v="A01"/&#62;</p>
<p>&#60;/rows&#62;</p>
<p>is the following the correct format under colmodel using xmlReader</p>
<p>{name:&#39;cell1&#39;,index:&#39;cell1.attr("v")&#39;, xmlmap:&#39;cell1.attr("v")&#39;, width:55, key:true},</p>
<p>/SK</p>
]]></description>
        	        	<pubDate>Fri, 21 Nov 2008 16:07:15 +0200</pubDate>
        </item>
        <item>
        	<title>skkarri on jsonreader can it read this? (Lotus Domino created JSON)</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jsonreader-can-it-read-this-lotus-domino-created-json#p3200</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jsonreader-can-it-read-this-lotus-domino-created-json#p3200</guid>
        	        	<description><![CDATA[<p>Thanks tony.</p>
<p>I tried</p>
<p>{name:&#39;cell1&#39;,index:&#39;cell1.v&#39;, jsonmap:&#39;cell1.v&#39;, width:55, key:true}</p>
<p>It still complains about the cell1.v</p>
<p>Is anything required under json reader. It currently reads as follows</p>
<p>jsonReader : { <br />&#160;&#160;&#160;&#160;root: "rows",<br />&#160;&#160;&#160;&#160;page: "currpage",<br />&#160;&#160;&#160;&#160;total: "totalpages",<br />&#160;&#160;&#160;&#160;records: "totalrecords",<br />&#160;&#160;&#160;&#160;repeatitems: false,<br />&#160;&#160;&#160;&#160;cell: "rows"<br />&#160;&#160;&#160;&#160;&#160; }</p>
<p>/SK</p>
]]></description>
        	        	<pubDate>Fri, 21 Nov 2008 13:47:34 +0200</pubDate>
        </item>
        <item>
        	<title>tony on jsonreader can it read this? (Lotus Domino created JSON)</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jsonreader-can-it-read-this-lotus-domino-created-json#p3189</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jsonreader-can-it-read-this-lotus-domino-created-json#p3189</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>You do not need to define</p>
<p>{name:&#39;cell1.v&#39;,index:&#39;cell1.v&#39;, jsonmap:&#39;cell1.v&#39;, width:55, key:true}</p>
<p>if you have jsonmap.</p>
<p>try this instead</p>
<p>{name:&#39;cell1&#39;,index:&#39;cell1.v&#39;, jsonmap:&#39;cell1.v&#39;, width:55, key:true}</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 21 Nov 2008 04:24:12 +0200</pubDate>
        </item>
        <item>
        	<title>skkarri on jsonreader can it read this? (Lotus Domino created JSON)</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jsonreader-can-it-read-this-lotus-domino-created-json#p3179</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jsonreader-can-it-read-this-lotus-domino-created-json#p3179</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>Even i am trying to use jsonmap to map a cell value to a arbitrary json structure and am having issues populating the grid with TS1, TS2 values below.&#160;&#160;Any help will be appreciated.</p>
<p>"rows":[{"cell1":{"v":"TS1"},"cell2":{"v":"A01"}},</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {"cell1":{"v":"TS2"},"cell2":{"v":"A02"}}]</p>
<p>&#160;I tried to define the following in coModel, but it doesnt like the cell1.v</p>
<p>{name:&#39;cell1.v&#39;,index:&#39;cell1.v&#39;, jsonmap:&#39;cell1.v&#39;, width:55, key:true}</p>
</p>
<p>/SK</p>
]]></description>
        	        	<pubDate>Fri, 21 Nov 2008 01:53:04 +0200</pubDate>
        </item>
        <item>
        	<title>FujiGW on jsonreader can it read this? (Lotus Domino created JSON)</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jsonreader-can-it-read-this-lotus-domino-created-json#p2300</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jsonreader-can-it-read-this-lotus-domino-created-json#p2300</guid>
        	        	<description><![CDATA[<p>Hi Simmi...</p>
<p>No I was not able to figure this out. I got put on a diff project for the last couple of weeks. I will probably take a look at this again over the next week and report if I get any success.</p>
]]></description>
        	        	<pubDate>Thu, 02 Oct 2008 17:15:10 +0300</pubDate>
        </item>
        <item>
        	<title>simmi on jsonreader can it read this? (Lotus Domino created JSON)</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jsonreader-can-it-read-this-lotus-domino-created-json#p2254</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jsonreader-can-it-read-this-lotus-domino-created-json#p2254</guid>
        	        	<description><![CDATA[<p>Hi there,</p>
<p>were you able to figure out whats wrong with the jsonreader?</p>
</p>
<p>thanks</p>
<p>Simmi</p>
]]></description>
        	        	<pubDate>Mon, 29 Sep 2008 17:52:55 +0300</pubDate>
        </item>
        <item>
        	<title>FujiGW on jsonreader can it read this? (Lotus Domino created JSON)</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jsonreader-can-it-read-this-lotus-domino-created-json#p1945</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jsonreader-can-it-read-this-lotus-domino-created-json#p1945</guid>
        	        	<description><![CDATA[<p>thanks Tony...</p>
]]></description>
        	        	<pubDate>Tue, 09 Sep 2008 13:48:25 +0300</pubDate>
        </item>
        <item>
        	<title>tony on jsonreader can it read this? (Lotus Domino created JSON)</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jsonreader-can-it-read-this-lotus-domino-created-json#p1906</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jsonreader-can-it-read-this-lotus-domino-created-json#p1906</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I will try to check this</p>
]]></description>
        	        	<pubDate>Sat, 06 Sep 2008 07:01:55 +0300</pubDate>
        </item>
        <item>
        	<title>FujiGW on jsonreader can it read this? (Lotus Domino created JSON)</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jsonreader-can-it-read-this-lotus-domino-created-json#p1897</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jsonreader-can-it-read-this-lotus-domino-created-json#p1897</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>I&#39;m using Lotus Domino&#39;s inbuilt functionality to render a view of data in JSON (in the domino world: nameofview?openview&#38;outputformat=json).</p>
<p>The generated JSON looks like this (I have no control over the format that is generated):</p>
<p>{</p>
<p>"@toplevelentries": "65",</p>
<p>"viewentry": [</p>
<p>{</p>
<p>"@position": "1",</p>
<p>"@unid": "033087497B8C279B882574B8007D1F25",</p>
<p>"@noteid": "9CA",</p>
<p>"@siblings": "65",</p>
<p>"entrydata": [</p>
<p>{</p>
<p>"@columnnumber": "0",</p>
<p>"@name": "AssignedTo",</p>
<p>"text": {</p>
<p>"0": "Don Green"</p>
<p>}</p>
<p>},</p>
<p>{</p>
<p>"@columnnumber": "1",</p>
<p>"@name": "$73",</p>
<p>"text": {</p>
<p>"0": "033087497B8C279B882574B8007D1F25"</p>
<p>}</p>
<p>},</p>
<p>{</p>
<p>"@columnnumber": "2",</p>
<p>"@name": "ITOwner",</p>
<p>"text": {</p>
<p>"0": "George Thomas"</p>
<p>}</p>
<p>},</p>
<p>{</p>
<p>"@columnnumber": "3",</p>
<p>"@name": "Form",</p>
<p>"text": {</p>
<p>"0": "Ticket"</p>
<p>}</p>
<p>},</p>
<p>{</p>
<p>"@columnnumber": "4",</p>
<p>"@name": "TitleShort",</p>
<p>"text": {</p>
<p>"0": "Add a new hard drive to PC"</p>
<p>}</p>
<p>}</p>
<p>]</p>
<p>},</p>
<p>{</p>
<p>"@position": "2",</p>
<p>"@unid": "0AB9D255471131B0882574B8007D1F06",</p>
<p>"@noteid": "94E",</p>
<p>"@siblings": "65",</p>
<p>"entrydata": [</p>
<p>{</p>
<p>"@columnnumber": "0",</p>
<p>"@name": "AssignedTo",</p>
<p>"text": {</p>
<p>"0": "Bela Lugosi"</p>
<p>}</p>
<p>},</p>
<p>{</p>
<p>"@columnnumber": "1",</p>
<p>"@name": "$73",</p>
<p>"text": {</p>
<p>"0": "0AB9D255471131B0882574B8007D1F06"</p>
<p>}...</p>
<p>I&#39;m new to JSON and jquery, and was wondering if anyone could show me the correct jsonreader and colmodel for the above json? Is it possible to use the json as generated above?</p>
<p>My attempt looks like this:</p>
<p>&#160;&#160;jQuery("#list").jqGrid({<br />&#160;&#160;height:&#39;300px;&#39;,<br />&#160;&#160;<a href="&#39;myview?readviewentries&#38;outputformat=json&#38;count=-1&#39;" target="_blank">url:&#39;myview?readviewentries&#38;outputformat=json&#38;count=-1&#39;</a>,<br />&#160;&#160;datatype: &#39;json&#39;,<br />&#160;&#160;mtype: &#39;GET&#39;,<br />&#160;&#160;jsonReader : {<br />&#160;&#160;&#160;root: "viewentry",<br />&#160;&#160;&#160;rows: "@position",<br />&#160;&#160;&#160;page: "page",<br />&#160;&#160;&#160;records: "@toplevelentries",<br />&#160;&#160;&#160;repeatitems: false,<br />&#160;&#160;&#160;cell: "entrydata",<br />&#160;&#160;&#160;id: "@position",<br />&#160;&#160;},<br />&#160;&#160;colNames:[&#39;UNID&#39;, &#39;AssignedTo&#39;, &#39;ShortTitle&#39;],<br />&#160;&#160;colModel :[<br />&#160;&#160;&#160;{name:&#39;UNID&#39;, index:&#39;UNID&#39;, jsonmap: &#39;text[0]&#39;, width:200, key:true},<br />&#160;&#160;&#160;{name:&#39;AssignedTo&#39;, index:&#39;AssignedTo&#39;, width:200},<br />&#160;&#160;&#160;{name:&#39;ShortTitle&#39;, index:&#39;ShortTitle&#39;, width:200},<br />&#160;&#160;],<br />&#160;&#160;pager: jQuery(&#39;#pager&#39;),<br />&#160;&#160;rowNum:10, rowList:[10,20,30],<br />&#160;&#160;sortname: &#39;id&#39;,<br />&#160;&#160;sortorder: "desc",<br />&#160;&#160;viewrecords: true,<br />&#160;&#160;imgpath: &#39;themes/basic/images&#39;,<br />&#160;&#160;caption: &#39;Service Requests&#39;<br />&#160;});</p>
<p>What I can see in firebug is that I am getting the json correctly, and the grid draws on the page with the columns, but they are all empty (no data). This is because my jsonreader isn&#39;t correct?</p>
<p>Thanks</p>
<p>GW</p>
]]></description>
        	        	<pubDate>Fri, 05 Sep 2008 12:02:26 +0300</pubDate>
        </item>
</channel>
</rss>