View Full Version : [INFOREQ] TypeError: 'undefined' is not an object (evaluating 'operation.method.apply')

25 Apr 2012, 6:28 AM
I saw this was a bug that was fixed in previously in Sencha Touch but it's happening to me when I am using Architect. Basically what I am doing is getting the value of a select field and setting a hidden field equal to the value of a select field.

This error happens after I set the value and after I log the value to the console. There is no more code left to execute after that. So I have no idea how this error is getting generated.

var hType = this.getHWindowType(); // this is a reference in the controller to a hidden field
var val = newValue.data.name; // name is the important part for me
var selector = selectfield.getId(); //this gets the id of the selector that triggered the function

... hType.setValue(val);
console.log(hType.getValue()); // The error shows up right after this executes.

25 Apr 2012, 3:48 PM
This looks like it might be being thrown by ComponentQuery.

Are you using any refs that might have invalid controlQueries? any query/child/down/etc methods that have invalid queries?

27 Apr 2012, 8:23 AM
To follow up with this thread, this is exactly what my issue was, thanks again!