Hello all, I am very new to ExtJS and I was asked to port an admin settings view in the classic toolkit into the modern toolkit.
I am currently using:
Ubuntu 14.04
ExtJS 6.0.2
SenchaCmd 6.5.1.240
Google Chrome 46
Given that parity has not been achieved between both toolkits, I made the decision to change the relevant xtypes that were not supported by the modern toolkit to those that were in Terms.js. As expected, this was not enough as I am getting two errors:
1. Error: [Ext.create] Invalid class name or alias 'null' specified, must be a non-empty string
2. Uncaught TypeError: Cannot read property 'getStore' of undefined
On the view, I am getting a 404 error.
Looking upon the stack trace, I found that it was happening in the Controller.js onTermsLoaded() function. But this is only happening with the modern toolkit and not the classic toolkit. Here is the function:
onTermsLoaded: function() {
var combo = this.getReferences().termSelector, // For some reason this is returning null in modern but not in classic
rec = combo.getStore().findRecord('active', true);
combo.setValue(rec.get('id'));
},
I have not changed the model or controllers in either toolkits, only the Terms.js file.
If there is any other information anyone needs, please let me know. I have been going on this for weeks and trying to see what is going on. I appreciate any help!
I tried posting the code on here but for some reason it is not allowing me to. I can message you the code if you like.
Thank you.