Hi,thank you,
i got this late at night too:) But i often dont need the lable, i need
the hidden "value" from a selectbox tableeditor inside the cell. I
often have some ids behind the selected label and i dontned the label(
How can i do this? When i replace getValue(x,y) to getUserData(x,y)
it trhows an error
> Hi,
>
> you should get the tablemodel of the table first, that is where the data
> resides.
> so, you should do:
>
> var myTableModel = myTable.getTableModel();
>
> and then you find out the numbers of columns and rows:
>
> var numberOfColumns = myTableModel.getColumnCount();
> var numberOfRows = myTableModel.getRowCount();
>
> now you are ready to get the data in all cells one by one:
>
> for(var i=0;i<numberOfColumns;i++){
> for(var j=0;j<numberOfRows;j++){
> var data = myTableModel.getValue(i,j);
> // do something with your data
> }
> }
>
> cheers,
> Gabi
------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel