Results 1 to 2 of 2

Thread: Error when updating programmatically fields of pivot configurator

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium User
    Join Date
    Jun 2016

    Default Error when updating programmatically fields of pivot configurator


    I want to give the user the ability to select what headers will be available in the pivot configurator. The reason behind is that the model contains a lot of properties and it will be messy to have everything available.

    Steps i followed:
    1) Get reference of the pivot
    2) Get the plugin
    3) create an instance of pivot configurator field
    4) add the instance in the array of plugin fields
    5) update the pivot configurator

    var pivot = this.lookupReference('custompivot');
    var plugin = pivot.getPlugin('configpivot');
    var fields = plugin.getFields();
    var newField = Ext.create('Ext.pivot.plugin.configurator.Field',{dataIndex: 'Index'});

    (intermediate value) is not a function

    The code works if there is at least one field already defined in the pivot configurator.

  2. #2



    Please provide a test case demonstrating the problem so we can look into this for you.

    Ideally, a test case would be:

    1. A simple example using the minimal amount of code that shows an issue in a Sencha product.
    2. Locally runnable
    3. Reproducible
    4. Isolated from third party products
    5. Without requirements to access any remote resources
    6. All data needed available to be loaded locally (using a JSON or XML flat file)
    7. Preferably at fiddle.

    If your issue is specific to a browser or OS, please note that. Screen caps and Screencasts created by products like Jing may also be very helpful in tracking down any issues


    Kevin Jackson
    Sencha Support Team

Similar Threads

  1. ExtJS 6.2 : Pivot Grid getting an error
    By udayp in forum Ext JS 6.x Q&A
    Replies: 1
    Last Post: 16 Nov 2016, 7:28 AM
  2. Replies: 4
    Last Post: 30 Dec 2014, 1:42 PM
  3. Add programmatically fields to model
    By vmihaylov in forum Ext 5: Q&A
    Replies: 6
    Last Post: 19 Dec 2014, 4:36 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts