006899 qx.io.remote.RequestQueue[360-0]: Request qx.io.remote.Request[986-0]
handler _oncompleted threw an error:  TypeError: Object
production.views.multiWorkerWrapper.MainScreenMultiWorkerWrapper[383-0] has
no method 'showJobInfo'

v 2.0.1
I have generated the application source-hybrid
I have the class
production.views.multiWorkerWrapper.MainScreenMultiWorkerWrapper:

qx.Class.define('production.views.multiWorkerWrapper.MainScreenMultiWorkerWrapper',
{
        extend: production.views.multiWorkerWrapper.MultiWorkerWrapper,
        properties: {
        },



        construct: function(viewClass){
                this.base(arguments, viewClass);
        },



        events: {
                //'jobChanged': 'qx.event.type.Data'
        },



        members: {
                // begin public
                showJobView: function(job){
                        return;
                        var view = this.__getCurrentWorkerView();
                        if(!view){throw new Error('No view exists');}
                        if(!view.showJobView){throw new Error('View has not the 
showJobView
method');}
                        view.showJobView(job);
                },
                // end public





                // begin core
                _addListenersToWorkerView: function(workerView){
                        this.base(arguments, workerView);
                },



                _removeListenersToWorkerView: function(workerView){
                        this.base(arguments, workerView);
                }
                // end core
                




                // begin boolean methods
                // end boolean methods
        }

});

I can't understand this error. Any help please?
If I use a debugger like this:
                __showJobInfoOnMainScreen: function(job){
                        var mainScreen = this.getMainScreen();

                        if(job === null){
                                // select first job on another view
                                // maybe implemented in the handler?
                        }
                        if(mainScreen){
                                debugger;
                                mainScreen.showJobInfo(job);
                        }
                },

while is debugging, I write in the browser's console:
mainScreen.showJobView, returns
function (job){

                        return;

                        var view = this.__getCurrentWorkerView();

                        if(!view){throw new Error('No view exists');}

                        if(!view.showJobView){throw new Error('View has not the 
showJobView
method');}

                        view.showJobView(job);

                }

It's strange...



thanks

--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/Error-thrown-because-has-no-method-but-the-method-exists-Any-help-please-tp7580575.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to