Rally Software

  • 1.  Rally combo box for fetching the views exceeding more than size 200

    Posted Jan 23, 2019 04:58 PM

    Rally combo box for fetching the views exceeding more than size 200 - The following sharedviewcombobox configuration is not working as expected and the pagination is breaking.

     

    {
        ptype: 'rallygridboardsharedviewcontrol',
        sharedViewConfig: {
            enableUrlSharing: this.isFullPageApp !== false,
            stateful: true,
            pageSize: 200,
            limit: 200,
            queryMode: 'remote',
            stateId: this.getContext().getScopedStateId('views'),
            stateEvents: ['select', 'beforedestroy'],
            suppressViewNotFoundNotification: this._suppressViewNotFoundNotification,
            emptyText: 'Select or Add Saved View...',
            additionalFilters: [this.piTypePicker.getCurrentViewFilter()],
            defaultViews: _.map(this._getDefaultViews(), (view) => {
                Ext.apply(view, {
                    Value: Ext.JSON.encode(view.Value, true)
                });
                return view;
            }, this)
        },

    };


  • 2.  Re: Rally combo box for fetching the views exceeding more than size 200

    Broadcom Employee
    Posted Jan 25, 2019 04:47 PM

    You might try posing this question to Stack Overflow: http://stackoverflow.com/questions/ask?tags=rally 



  • 3.  Re: Rally combo box for fetching the views exceeding more than size 200

    Posted Jan 27, 2019 03:25 PM

    I did post this question - Kyle Morse has replied to my question, but then this did not help us

    javascript - Fetch more than 200 sharedviews in to rally ext combo box - Stack Overflow 



  • 4.  Re: Rally combo box for fetching the views exceeding more than size 200

    Broadcom Employee
    Posted Jan 29, 2019 11:14 AM

    Did you try changing the pagesize to '2000' or the limit to '2000' or both?

     

    Thanks,

    Sagi



  • 5.  Re: Rally combo box for fetching the views exceeding more than size 200

    Posted Jan 29, 2019 02:04 PM

    There is no straight forward way to enhance the functionality like - increasing the page size to 2000 or having infinite scroll in there. I have overridden the function to support the pagesize and finally it seems to be working.

     

    Here is the code 

     

    _getStoreConfig: function(){
         var config = this.callParent();
         config.pageSize = 2000;
         return config;
    },


  • 6.  Re: Rally combo box for fetching the views exceeding more than size 200
    Best Answer

    Posted Jan 29, 2019 02:04 PM
    Ext.override(Rally.ui.gridboard.SharedViewComboBox, {
    _getStoreConfig: function(){
         var config = this.callParent();
         config.pageSize = 2000;
         return config;
    },

    })


  • 7.  Re: Rally combo box for fetching the views exceeding more than size 200

    Broadcom Employee
    Posted Jan 30, 2019 10:44 AM

    Good job Saikshan. Glad you got this done.

     

    Sagi