I have had this problem for a while, but I am reducing this issue and I think I have The main problem is now. While my JSL has php correctly called, and Firebug gives me the correct data from the database, it will not be displayed in my grid.
I have a grid with only 2 columns, and entry with one entry when I remove the log entry, will show the grid date ok, and when I create an array with the static data from the log The grid will look fine too. I think my JSONstore is simply not parsing data from mysql tables.
My code is:
var logStore = new Ext.data.JsonStore ({autoload: 'id', 'recipient', 'message'], listener: { Id / interface / config.php? List = message}, root: 'dates', idaporp: 'id', field: loadexception: function () {console.log ('load failed - argument:% o', logic) ;}}}); Var loggrid = new Ext.grid.GridPanel ({Area: 'Center', Store: Logstore, Colomodel: New Extension Grade: Column: (Column: [{Id: 'Received', Header: 'Received', DataIntex: ' Received ',' width: 250}, {id: 'message', header: 'log', dataindex: 'message', width: 750}]})}); The example of the log entry is dragging:
| New forward map was added to 9th April 9 00:00:02 dh1 dhcpd: nfxxxxich-PC.wifi-uhs.osu to 10.xxx.xx.248. | Reverse map added from 9 April 9 00:00:02 dh1 dhcpd: 248.xxxx.xxx.10.in-addr.arpa To do nxxxxxh-PC.wifi-uhs.osu | | 9 April 9 00:00:02 dh1 dhcpd: 10.xxx.xxx.248 to 00: x: 5c: x: 8c: xx (nxxxxh-pc) for 10.xxx.xxx.254 DHCPREQUEST | | 9 April 9 00:00:02 dh1 dhcpd: DHCPACK at 10.X.XX.248 to 00: X: 5C: X8C: XX (Nxx-PC) 10.193.XX.XXX via | | New forward map was added to 9 April 9 00:00:02 dh1 dhcpd: XX.wifi-uhs.XXX to 10.X.X.242. | Reverse map added from 9 April 9 00:00:02 dh1 dhcpd: 242.X.193.x.in-addr.arpa X.wifi-uhs.XXX | | 9 April 9 00:00:02 dh1 dhcpd: DHCPREQUEST 00 for X.x.242 00: X: CE: X21: 63 (Elena) 10.X.X.254. | 9 April 9 00:00:02 dh1 dhcpd: DHCPACK at 10.193.XXX.XX to 00: X: CE: X: 21: 63 (Elena) 10.X.X.254. | 9 April 9 00:00:02 dh1 dhcpd: P305-XXX.wifi-uhs.XXX to 10.193 New forward map added to xx | Added reverse map to 9 April 9 00:00:02 dh1 dhcpd: 21.241.X.x.in-addr.arpa. P 305-XXXX.wifi-uhs.XXX | There are several different letters and tabs between the date, DH1, and the log entry. Can there be a problem with avoiding these characters? I'm not sure how this happened. Any help would be appreciated.
You have not specified the type and format in the fields. And I think your php json implementation does not generate a javascript date object.
Therefore ... try returning to a UNIX timestamp and use it as a field:
field: [{name: 'id', type: '' Int '}, {name:' received ', type:' date ', date format:' ymd h: i: s'}, 'message'] alternatively You can also specify dateFormat next to type: date '. See the documentation for more information:
Comments
Post a Comment