Re: [qooxdoo-devel] Clear a tableModel ?

2012-09-12 Thread franck34
finaly setData([]); is working for me.

I was recreating table model each time i add new rows ... silly. Thanks
mustafa

On Wed, Sep 12, 2012 at 10:11 AM, Mustafa Sak  wrote:

> Nice solution, but ist easier to use tableModel.setData([]);
>
> Regards Mustafa
>
> -Ursprüngliche Nachricht-
> Von: csfahey [mailto:[email protected]]
> Gesendet: Dienstag, 11. September 2012 19:18
> An: [email protected]
> Betreff: Re: [qooxdoo-devel] Clear a tableModel ?
>
>
> // Here is how I do it.  Given.
> var model = new qx.ui.table.model.Simple( ); var table = new
> qx.ui.table.Table( model ); // This clears it.
> model.removeRows( 0, model.getRowCount() );
>
>
>
> --
> View this message in context:
> http://qooxdoo.678.n2.nabble.com/Clear-a-tableModel-tp7581283p7581321.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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
> --
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
--
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


Re: [qooxdoo-devel] Clear a tableModel ?

2012-09-12 Thread Mustafa Sak
Nice solution, but ist easier to use tableModel.setData([]);

Regards Mustafa

-Ursprüngliche Nachricht-
Von: csfahey [mailto:[email protected]] 
Gesendet: Dienstag, 11. September 2012 19:18
An: [email protected]
Betreff: Re: [qooxdoo-devel] Clear a tableModel ?


// Here is how I do it.  Given.
var model = new qx.ui.table.model.Simple( ); var table = new qx.ui.table.Table( 
model ); // This clears it.
model.removeRows( 0, model.getRowCount() );



--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/Clear-a-tableModel-tp7581283p7581321.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
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

--
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


Re: [qooxdoo-devel] Clear a tableModel ?

2012-09-11 Thread csfahey

// Here is how I do it.  Given.
var model = new qx.ui.table.model.Simple( );
var table = new qx.ui.table.Table( model );
// This clears it.
model.removeRows( 0, model.getRowCount() );



--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/Clear-a-tableModel-tp7581283p7581321.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
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


Re: [qooxdoo-devel] Clear a tableModel ?

2012-09-09 Thread Derrell Lipman
On Sun, Sep 9, 2012 at 6:51 AM, franck34  wrote:

> Got a table, a table model (simple) - or a smart simple table model.
>
> I load data, everything is ok.
>
> Now i'd like to clean data.
>
> What the way for that ?
>
> I've tried tableModel.setDataAsMapArray([]); without luck
>

I'm not sure why setDataAsMapArray([]) isn't working. I believe it should.
The more typical way to do it, though, is with setData([]). You don't
really care whether the data is interpreted as arrays of values or maps
containing values for each row since you're passing an empty array, so even
if you're generally using map arrays, clearing the data with setData([]) is
fine.

Derrell
--
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


Re: [qooxdoo-devel] Clear a tableModel ?

2012-09-09 Thread Fritz Zaucker
tableModel.setData(null) I believe ...

Fritz Zaucker
Oetiker+Partner AG
Aarweg 15
CH-4600 Olten
+41 62 775 9903

Am 09.09.2012 um 12:51 schrieb franck34 :

> Got a table, a table model (simple) - or a smart simple table model.
> 
> I load data, everything is ok.
> 
> Now i'd like to clean data.
> 
> What the way for that ?
> 
> I've tried tableModel.setDataAsMapArray([]); without luck
> 
> 
> --
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

--
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel