Re: [qooxdoo-devel] [english 92%] Re: Get table cell content?

2010-12-16 Thread Gabriel Munteanu

some code would be better to see exactly where the problem is. i cannot
figure out where getUserData(x,y) comes from.
-- 
View this message in context: 
http://qooxdoo.678.n2.nabble.com/Get-table-cell-content-tp5840318p5841448.html
Sent from the qooxdoo mailing list archive at Nabble.com.

--
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


Re: [qooxdoo-devel] [english 92%] Re: Get table cell content?

2010-12-16 Thread [email protected]
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   for(var j=0;jvar 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