chiphi13
08-09-2007, 03:02 PM
I am trying to refresh a single category view with another category without using the categorycombobox. I have seen that there is a new method-- refresh added to the uiview.
I have tried to use this method by passing in the following :
el.refresh({params:{RestrictToCategory:'xxxxxx'}});
But, it appears that this doesn't work since the line of code:
var p = Ext.apply(options.params || {}, this.baseParams);
in the load method of the DominoViewStore is overriding that value with the baseParams. Would it make sense to reverse the parameters of that method to allow the baseParams to be overridden?
To get around this I have currently created a prototype method for the uiview:
Ext.nd.UIView.prototype.handleCategoryChangeWithoutBox=function(category) {
this.grid.dataSource.baseParams.RestrictToCategory = category;
this.grid.dataSource.load({params:{start:1}});
}
which is currently working.
I have tried to use this method by passing in the following :
el.refresh({params:{RestrictToCategory:'xxxxxx'}});
But, it appears that this doesn't work since the line of code:
var p = Ext.apply(options.params || {}, this.baseParams);
in the load method of the DominoViewStore is overriding that value with the baseParams. Would it make sense to reverse the parameters of that method to allow the baseParams to be overridden?
To get around this I have currently created a prototype method for the uiview:
Ext.nd.UIView.prototype.handleCategoryChangeWithoutBox=function(category) {
this.grid.dataSource.baseParams.RestrictToCategory = category;
this.grid.dataSource.load({params:{start:1}});
}
which is currently working.