hi, some general advice based on my experience with the table:
1) you can set table models more than once, but you need to dispose of the old one manually in order not to create memory leaks. (fabian has a message on that if you search the archives) 2) i hide columns in changeTableModel event of the table. that doesn't cause the artifact you mentioned. 3) table is a fickle beast that's disliked by the majority of the qooxdoo community. so you can bash it without getting anybody's feelings hurt :) best regards burak On 10/12/10 23:10, nrg-b wrote: > Hi Qooxdoo Chefs, > > What's cookin' ? (Sorry - all puns intended). > > Although I can only spare a few hours of week on my mini qx project to put a > prototype qx gui to front our financial trading system I think I'm making > reasonable yet pleasing results. > > I am using the qx Rpc class to communicate to a back-end java-servlet > (RpcServlet) which returns JSON data. I have plugged the returned json data > into multi-valued widgets like SelectBox and Table. > > 1. When I tried to call a member function, myfunc(), in the rpc handler I > got a "myfunc() is not defined" error message. If I called the member > function by qualifying as "this.myfunc()" then I get "this.myfunc is not a > function". I noted that when adding a listener, there is an option to pass > in 'this' in order to set the function's context. Please can you tell me > what is the value 'this' in an Rpc handler function? The only way I could > get round the issue about was to make the function a static one. > > 2. The json data returned is an array of nested maps (ie array of > composites). In SelectBox a property chain (ie dot-notation path) can be > used to bind the displayed labels to a value deep within a nested object > structure. I wanted to do the same thing for tables. Please may I ask if > this is part of your roadmap then when do you think its likely this feature > will be released? I am using qx version 1.2. In the meantime, I've written > some bespoke code to create the rowdata (2d array) for a Simple tablemodel > from the json data and an array of property-paths. > > 3. I have some hidden table columns. AFAIK, table column visibility is set > via the column model eg: mytable.getTableColumnModel().setColumnVisible(0, > false); // make 1st col invisible > > But this only happens after the table model is set which could briefly show > all cols before the desired ones are made invisible. Is it possible to set > the column visibility when configuring the table model ie before the table > model is set into a table? > > Sorry for the long post and hope I don't sound too whiny. You guys are doing > an excellent job! > > Cheers, > > Bharat > > > ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
