I cannot get it work in extjs 4, it says:
Uncaught TypeError: Cannot call method 'substring' of undefined

Any suggestions and fixes?