Hi Derrell,

now it works!
I am so happy. Thanks a lot for your help and your patience.
I know I have to learn a lot :-)

I have now added two addListener. One for callling my getTableData function
and one for getIframeContent

*      form.addListener('completed',function(e) {
          this.getTableData();
       }, this);
*

 *     form.addListener('completed',function(e) {
        this.debug('completed');
        file.setFieldValue('');
        var response = this.getIframeHtmlContent();
        this.debug(response);
        wm1.close();
      });
*
Then I have changed
var  tableModel = new qx.ui.table.model.Simple();

to
tableModel = new qx.ui.table.model.Simple();

and in the function from
this.tableModel.setData(content);
to
tableModel.setData(content);

I do not know if this is ok or if this is proper code but for the moment it
works finde :-)

Thanks again

kind regards
Hansjoerg


2010/3/8 Derrell Lipman <[email protected]>

> On Mon, Mar 8, 2010 at 09:17, Qoodary Doo <[email protected]> wrote:
>
>>
>> var form = this.setUserData("form", form) = new
>> firstQxApp.UploadForm('uploadFrm','/uploads/upload.php');
>>
>>
>> and
>>
>> var response = this.getUserData("form").getIframeHtmlContent();
>>
>> But know after generate.py source and build I will get this error:
>>
>> invalid assignment left-hand side
>> var form = this.setUserData("for...('uploadFrm','/uploads/upload.php');
>>
>>
> All right. I had recalled that setUserData() returned its argument, but I
> guess not. Split that into two separate statements:
>
>
> var form = new firstQxApp.UploadForm('uploadFrm','/uploads/upload.php');
> this.setUserData("form", form);
>
> BUT, let us make it easier for testing:
>> I now tried to call the "getTableData" function in the addListener.
>>
>>         form.addListener('completed',function(e) {
>>           this.getTableData();
>>          }, this);
>>
>> In the FB Console I can see the result which seems ok.
>> But the function run in an exception.
>>
>> Error while receiving table data: TypeError this.tableModel is undefined
>>
>
> That's true, it is. :-) You never assigned anything to this.tableModel. You
> had assigned to "var tableModel=..." which is very different. That makes
> tableModel a local variable that is unassociated with any particular object.
>
> Derrell
>
>
>
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to