is TabView an instance of NewTable? if the answer is no, it shouldn't work.
You need to add the listener to the class that will fire the data event.
On Mon, Nov 8, 2010 at 6:14 PM, georg <[email protected]> wrote:
>
> Hello,
>
> i have a problem with the firedataevent. When i call the firedataevent in
> the same class, the listener is working. But when the listener is in
> another
> class nothing happens.
>
> Can anyone help me, please.
>
> Best regards,
>
> Georg
>
> NewTable.js
> events : {
> "data" : "qx.event.type.Data"
> },
> ....
> btn2.addListener("execute", function() {
> var data = {
> name : checkName.getValue(),
> date : datefield.getValue()
> };
> win.close();
> this.fireDataEvent("data", data);
> },this);
> win.add(btn2);
>
>
> tabview.js:
>
> tabView.addListener("data", function(ev) {
> alert("data");
> var data = ev.getData();
> alert(data.monat + " " + data.name);
> table = new moto.MainTable("false",data.date);
> pages = this.getChildren();
> alert(pages[0]);
> pages[0].add(table, {row:1, column:0});
> },this);
> --
> View this message in context:
> http://qooxdoo.678.n2.nabble.com/fireDataEvent-tp5718493p5718493.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> The Next 800 Companies to Lead America's Growth: New Video Whitepaper
> David G. Thomson, author of the best-selling book "Blueprint to a
> Billion" shares his insights and actions to help propel your
> business during the next growth cycle. Listen Now!
> http://p.sf.net/sfu/SAP-dev2dev
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a
Billion" shares his insights and actions to help propel your
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel