PDA

View Full Version : Pivot table



christophe67
18 May 2011, 6:36 AM
Hello,

I need to build a pivot table, but the header and the left axis doesn't show.
Can anybody help me, I don't what is wrong in my code.


var pivot_store = new Ext.data.Store({
url : 'sources/data_pagging_gptt.php',
baseParams:{task: "pivot"},
autoLoad: true,
reader: new Ext.data.JsonReader({
root: 'results',
idProperty: 'id_matrice_coeff'
}, recordpivottable)
});

pivot_store.load();
var pivot_table= new Ext.grid.PivotGrid({
width : 800,
height : 559,
border:false,
layout :'fszit',
store : pivot_store,
aggregator: 'count',
measure : 'etat',


leftAxis: [
{
width: 80,
dataIndex: 'reference'
}
],

topAxis: [
{
dataIndex: 'niveau'

}
]
})
thank for your help :)