jqGrid は、Java サービスから返された応答を表示していません。
HTML:
<table id="fbDetailTable" style="display: none"></table>
Java スクリプト:
jQuery("#fbDetailTable").jqGrid({
url: "/ReportBatch/rs/ReportService/getFB?fB="+frtBill,
datatype: "json",
colNames: ['Store Number', 'Order Number', 'SKU number',
'Shipped Quantity','Order Created Date'],
colModel:[{name:'strNbr',index:'strNbr',width:100,jsonmap:'strNbr'},
{name:'orderNbr',index:'orderNbr',width:100,jsonmap:'orderNbr'},
{name:'skuNbr',index:'skuNbr',width:100,jsonmap:'skuNbr'},
{name:'shpdQty',index:'shpdQty',width:100,jsonmap:'shpdQty'},
{name:'ordCrtDt',index:'ordCrtDt',width:100,jsonmap:'ordCrtDt'}],
jsonReader: { repeatitems : false, strNbr: "0" },
viewrecords: true,
loadonce:true,
caption:"Order Details"
});
サービスの応答:
[{"strNbr":"6310",
"orderNbr":"10979577",
"skuNbr":"646274",
"shpdQty":"1",
"ordCrtDt":"2013-01-29"},
{"strNbr":"6310",
"orderNbr":"10979583",
"skuNbr":"765992",
"shpdQty":"3",
"ordCrtDt":"2013-01-29"
}]
応答ヘッダー:
Content-Type application/json
Date Mon, 04 Feb 2013 20:21:24 GMT
Server Apache-Coyote/1.1
Transfer-Encoding chunked