In ExtJS4 no method getSelections() . You need to use getSelection() .
In previous versions, you had:
- getSelection () → Used to get the first selected record.
- getSelections () → Used for selected records.
In ExtJS4, you only have getSelection() , which returns an array of the currently selected records. Therefore, you need to change the if statement. This should solve your problem.
Note: Use the getStore() method to access the store, not using the store property name.
source share