cols is an object not an array. So it does not have any method like push or append.

Sebastian


Malangon Perez schrieb:

var myView = new QxListView(data, cols);
----------------------------
cols.removeAll();
cols.append(newArrayFromSomeOtherSource1);
-----------------------------
data.removeAll();
data.append(newArrayFromSomeOtherSource);
myView.update();

Not works.
Thanks.
PS: My language native is not english (spanish).

--- Sebastian Werner <[EMAIL PROTECTED]>
wrote:

Malangon Perez schrieb:
Hi:
How to change columns name property and it´s
number?.

Sorry I don't understand what you mean. Could you
more exactly present your question?

Sebastian

Thanks.

--- Sebastian Werner <[EMAIL PROTECTED]>
wrote:

Hi Jeronimo,

I think you don't need this:

this._pane.setData(vNewData);

and don't need this:

 > In QxListViewPane.js:
 > ...
 > proto.setData = function(vNewData) {
 >    this._data.removeAll();
 >    this._data.append(vNewData);
 >    this._updateLayout();
 >    this._updateRendering(true);
 > };

at all.

Please try it again with this modifications.

Thanks.

Sebastian


Jeronimo Milea schrieb:
Hello Sebastian,

BJ�rn Lindqvist schrieb:

Just do something like:

var myView = new QxListView(data, cols);

data.removeAll();
data.append(newArrayFromSomeOtherSource);
myView.update();

In my personal qooxdoo extension library I
also
have a setData()
method. The reason is that the above is four
lines, this:
myView.setData(newArrayFromSomeOtherSource);

Yes, but you can implement your method the
same
way. You don't think
it's a good idea to redefine the array. It's
better to replace it's
content. This is what the above content
should
show.
Sebastian

I came up with different solution based on ur
comments this is what my
methods look now:

In QxListView.js:
...
proto.setData = function(vNewData) {
   this._data.removeAll();
   this._data.append(vNewData);
   this._pane.setData(vNewData);
   this.update();
};
...

In QxListViewPane.js:
...
proto.setData = function(vNewData) {
   this._data.removeAll();
   this._data.append(vNewData);
   this._updateLayout();
   this._updateRendering(true);
};
...

The thing is: I'm not sure about calling
_updateLayout and
_updateRendering in QxListViewPane :S

Thanks for ur hard work Sebastian :D

VoidMain







-------------------------------------------------------
This SF.Net email is sponsored by xPML, a
groundbreaking scripting language
that extends applications into web and mobile
media. Attend the live
webcast
and join the prime developer group breaking
into
this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
[email protected]

https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a
groundbreaking scripting language
that extends applications into web and mobile
media.
Attend the live webcast
and join the prime developer group breaking
into
this new coding territory!

http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
[email protected]

https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam
protection around
http://mail.yahoo.com


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a
groundbreaking scripting language
that extends applications into web and mobile
media. Attend the live webcast
and join the prime developer group breaking into
this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
=== message truncated ===


__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to