i'm working comboboxes , filters implement option select instances of desired field. said, know use noentrytext attribute set defaults "--no entry--" "all". however, changes not seem apply when use on custom fields provided web services api (those fields "c_" before them).
strangely enough though, convention works other fields use not have "c_" before them. known defect custom fields or there workaround issue?
i filed defect replacing noentrytext custom value works rallyfieldvaluecombobox standard fields, not custom fields. if rallyfieldvaluecombobox uses standard field, e.g. environment, no entry can replaced successfully:

here js file:
ext.define('customapp', { extend: 'rally.app.app', componentcls: 'app', launch: function() { this.add({ xtype: 'rallyfieldvaluecombobox', itemid: 'abox', fieldlabel: 'filter filed:', model: 'defect', //field: 'c_custombox', field: 'environment', noentrytext: 'all', usenullfornoentryvalue: true, allownoentry: true, listeners: { select: this._onselect, ready: this._onload, scope: } }); }, _onload: function() { this.add({ xtype: 'rallygrid', columncfgs: [ 'formattedid', 'name', //'c_custombox' 'environment' ], context: this.getcontext(), storeconfig: { model: 'defect', filters: [this._getstatefilter()] }, width: 500 }); }, _getstatefilter: function() { if (!this.down('#abox').getvalue()) { return 1; } else{ return { //property: 'c_custombox', property: 'environment', operator: '=', value: this.down('#abox').getvalue() }; } }, _onselect: function() { var grid = this.down('rallygrid'), store = grid.getstore(); store.clearfilter(true); store.filter(this._getstatefilter()); } }); if same rallyfieldvaluecombobox uses custom field, no entry string cannot replaced:

in both cases functionality of replacing filtering behavior works fine.
Comments
Post a Comment