the tablemodel has a method "setDataAsMapArray" where you can put an 
array of dictionaries to the table.

the method "setColumns" takes an optional parameter "column-id's" which 
is a list of keys for the given dictionaries.

so: you can create dictionaries

data = [ {name:"Jimi Hendrix", id:1}, {name:"Janis Joplin",id:2} ]

call

setColumns (["Name"],["name"])
setDataAsMapArray (data)

and only the name will be displayd although every item has an id.

hope code is correct, i only typed it how it should be, nothing tested 
:-). simply read the docs.

</usc>

Andréas Kühne wrote:
> Hi all,
>  
> At our firm we are developing a webbased course administration system 
> using qooxdoo. The framework is just great and specially the new 
> "namespace" version. Our integration with Struts is working just 
> perfectly and is really easy to expand.
>  
> But now to our problem. We are using the listview widget in several 
> places, but in one place I would like to be able to create editable 
> cells, and I am currently looking at the Table widget.
>  
> The problem is however, when I work with the SimpleTableModel version I 
> am not able to create a table row that includes "hidden" values. For 
> example when using a listview, I can push variables into the data that 
> is not shown in the listview. Is this also possible within a table?
>  
> Regards,
>  
> Andréas
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to