Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Mar 2007
    Posts
    61
    Vote Rating
    0
    greyknght1 is on a distinguished road

      0  

    Question [CLOSED] Problem with the PivotGrid

    [CLOSED] Problem with the PivotGrid


    I am trying to extend the PivotGrid (which is awesome!) but I am running into a few issues: First the code:
    PHP Code:
    /**
     * pivotTestCostByTestType
     *
     * @author    STAHLE MICHAEL A
     * @copyright (c) 2008, by Brandaris, USAF
     * @date      7/26/2010
     * @version   1
     *
     * 
     */
     
    /*global ux object  pivotTestCostByTestType*/

    // To Do: 

    /**
     * @class Ext.ux.pivotTestCostByTestType
     * @extends Ext.grid.PivotGrid
     */    
        
    Ext.ux.pivotTestCostByTestType Ext.extend(Ext.grid.PivotGrid, {
        
    // Additional Class Properties
        
        // Additional Class Methods
        
        // Init the Component
        
    initComponent:function() {
        
            
    // Data Store
            
    var summaryByYearAndTypeYearTotalsDataStore = new Ext.data.Store({
                
    scopethis,
                
    proxy: new Ext.data.HttpProxy({url'../../Master/xml/universal_xml_generator_withDbSelection.asp'}),
                
    baseParams: {
                    
    table'summaryByYearAndTypeYearTotals',
                    
    db'TIPS'
                
    },
                
    //remoteSort: true,
                
    autoLoadtrue,
                
    //groupField: 'test_year',
                
    reader: new Ext.data.XmlReader({
                    
    record'item',
                    
    totalProperty'total',
                    
    id'xmlid'
                    
    }, [
                        {
    name'test_year'mapping'test_year'type'string'},
                        {
    name'test_type'mapping'test_type'type'string'},
                        {
    name'TotalCost'mapping'TotalCost'type'float'}
                    ])
            });                    
            
            
    // Apply Init Function
            
    Ext.apply(this, {            
                
    title'Test Cost By Test Type',
                
    autoHeighttrue,
                
    autoWidthtrue,
                
    scopethis,
                
    autoScrolltrue,
                
    storesummaryByYearAndTypeYearTotalsDataStore,            
                
    aggregator'sum',
                
    measure'TotalCost',

                
    leftAxis: [
                    {
    width80,   dataIndex'test_type'header'Test Type'direction'ASC'}
                ],            
                
    topAxis: [
                    {
    dataIndex'test_year'header'Year'direction'ASC'}
                ]

            });
        
         }, 
    // eo function initComponent
        
        
    onRender:function() {         
            
    Ext.ux.pivotTestCostByTestType.superclass.onRender.apply(thisarguments);
        } 
    // eo function onRender
    });
     
    // Register your new class
    // Remember that the first variable for the registration must be in lower case 
    Ext.reg('pivottestcostbytesttype'Ext.ux.pivotTestCostByTestType); 
    The error that is being thrown when creating this ux xtype is as follows:
    this.grid.leftAxis.buildHeaders is not a function and this.leftAxis.getTuples is not a function.

    I know it is due to the PivotAxis.js file but I can't seem to figure out what is causing this bug to occur.

    Maybe I am just doing something wrong but, I haven't run into an instance where the sub files for a object aren't loaded when extending the object. Is this a bug or just something stupid in my code?

    V/R,

    Michael
    Last edited by greyknght1; 19 Aug 2010 at 11:32 AM. Reason: Solved

  2. #2
    Sencha User
    Join Date
    Mar 2007
    Posts
    61
    Vote Rating
    0
    greyknght1 is on a distinguished road

      0  

    Default


    Yep, it was my mistake, but there still is a bug in the code.

    First the code I was missing:
    PHP Code:
    // Very Important
            
    Ext.ux.pivotTestCostByTestType.superclass.initComponent.apply(thisarguments); 
    But the problem is that when rendering this object into my tab panel it is not setting the height of the rows correctly. See the following for more information:
    http://www.sencha.com/forum/showthre...ight=PivotGrid

    V/R,

    Michael

  3. #3
    Sencha User
    Join Date
    Mar 2007
    Posts
    61
    Vote Rating
    0
    greyknght1 is on a distinguished road

      0  

    Default


    Missed this code:
    Ext.ux.pivotTestCostByTestType.superclass.initComponent.apply(this, arguments);

    But still having the following problem:
    http://www.sencha.com/forum/showthre...ight=PivotGrid

Similar Threads

  1. PivotGrid in 3.3.0
    By yakovsh in forum Community Discussion
    Replies: 13
    Last Post: 3 Dec 2010, 11:56 PM
  2. [FIXED-1170][3.3 Beta] PivotGrid, rowspan bug
    By amlody in forum Ext 3.x: Bugs
    Replies: 4
    Last Post: 2 Aug 2010, 1:41 PM
  3. [CLOSED] [1.2.2]problem with DataListBinder
    By Webflash in forum Ext GWT: Bugs (1.x)
    Replies: 3
    Last Post: 10 Feb 2009, 2:21 AM
  4. [CLOSED] problem with DateField
    By masa2 in forum Ext 1.x: Bugs
    Replies: 2
    Last Post: 2 Nov 2007, 9:31 AM

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi