Olap in dialog - bug

Posted by: mary431982 on 23 May 2020, 9:34 pm EST

  • Posted 23 May 2020, 9:34 pm EST

    Hello, I am showing pivot panel with Angular Material dialog and when I show it every other time but the first time - I got the error:

    TypeError: Cannot read property ‘refresh’ of nullWjPivotPanel.PivotPanel.refresh

    My html:

    <ng-template #pivotPanelTmpl>



    <wj-pivot-panel [engine]=“pivotEngine”>





    Close



    
        @ViewChild('pivotPanelTmpl') pivotPanelTmpl: TemplateRef<any>;
    
        public showPivotPanel(): void {
            this.dialog.open(this.pivotPanelTmpl);
        };
    
    
  • Posted 23 May 2020, 9:40 pm EST

    Its urgent problem for us so please can you help us?

    Thanx!!!

  • Posted 24 May 2020, 3:19 am EST

    I figured out that in function: PivotPanel.prototype.refresh = function (t) { -

    t.collectionView.refresh() - in this line CollectionView is null but I dont know why

  • Posted 25 May 2020, 5:16 pm EST

    Hi Mary,

    We are sorry but we were unable to replicate the issue at our end. Please refer to the sample link below that we used to replicate the issue:

    https://stackblitz.com/edit/query-pivot-panel-chart-kqapdz

    Can you please let us know whether we are missing something in order to replicate the issue?

    Also, please set the pivotEngine as the itemsSource of the PivotPanel:

    <wj-pivot-panel [itemsSource]="pivotEngine"></wj-pivot-panel>
    

    And make sure that the pivotengine is initialized properly and the itemsSource of the PivotEngine is set properly.

    Regards,

    Ashwin

  • Posted 25 May 2020, 7:04 pm EST - Updated 3 October 2022, 7:06 am EST

    Hello, thanx for your reply,

    sorry - I Am using pivotEngine as the itemsSource of the PivotPanel (I made a mistake in my previous post),

    I tested you example and I DID get an error:

    Steps:

    1. click on btn to open dialog
    2. close the dialog
    3. open dialog again
    4. click on any checkbox to choose some field to add it → you will see the console error
  • Posted 26 May 2020, 4:55 pm EST

    Hi Mary,

    I was able to replicate the issue with the sample. I have forwarded this issue to the developers with internal tracking id 438146. I will update you once this issue is fixed.

    ~regards

  • Posted 26 May 2020, 5:52 pm EST

    Thank you very much!!

  • Posted 23 June 2020, 12:36 am EST

    Hello Mary,

    The issue has been fixed in the latest nightly build. You may verify the same using the sample link below:

    https://stackblitz.com/edit/query-pivot-panel-chart-qy6pf5

    Note that nightly builds have not passed through the QA cycles as all of our release builds do. So, they are not suitable for production.

    ~regards

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels