Hi Stewart, I guess you could implement an custom event on your subclass of qx.ui.table.model.remote.
So first define an event like "onRowCountCompleted" In the handler of function _loadRowCount you could do like this: _loadRowCount : function(firstRow, lastRow) { var clazz = this; handler = function(result, ex, id) { // We got (presumably) valid data. Apply it to the table clazz._onRowCountLoaded(result); clazz.fireDataEvent('onRowCountCompleted', result); }; ... So you should able to add a listener to your table model and easyly check if e.getData() is 0 ;) If you need more detailed information, so be free to ask. Hope, could help! regards Mustafa Sak > Sak -- Thanks for your response. It took me a second to wrap my head > around what you were telling me, but I think I understand and I don't > think I explained myself very well. I don't think I want to clear my > table, I just want access to the row count before the table is actually > displayed on the screen. > > I think I see where I wasn't clear. I have a single button that > searches several different data sets, which I display in a tabbed > interface. I want to hide the tabs with no search results (or, at the > very least, change the titles of the tabs to include the number of hits > -- but if I could access that property ahead of time, I wouldn't have to > display the tabs at all...) I'm guessing that I *could* change > everything once it's on the screen, but that seems horribly inefficient > and doesn't seem like the "right" way to do it. Everything else works > (even if the multiple table renders seem a bit slow), but getting that > row count early just has me stumped! > > So is there any way to get the number of rows in a given remote table > model before displaying it? The question is difficult to ask because > EVERY time I start typing again, I think of another thing to try -- and > I just ran out of new thoughts! getRowCount *does* return the correct > number of rows, eventually, but I think the async call is returning a > zero value while waiting for the correct value to replace it. I've > tried (maybe improperly) to tell it to use a sync request instead or > block/unblock concurrent requests or not return anything until the > request has stopped running, but none of those worked out for me. Even > as I type this, I keep thinking it *shouldn't* be as difficult as I'm > obviously making it... > > All help is appreciated. Hopefully I'll be able to return the favor > someday! > > Stewart > > > > On 6/20/2011 4:36 PM, Mustafa Sak wrote: >> IMHO it's not even good to use getrowcount at remote tablemodel. Because >> you wouldn't get all rows, just the cached ones or even 0 in new >> releases, who knows. So if you want to clear your table just use >> .getTableModel().setData([]); >> or >> getTableModel().setDataAsMapArray([], true); >> >> Regards Sak >> >> Von meinem iPhone gesendet >> >> Am 20.06.2011 um 23:09 schrieb Stewart Dean<stud...@aieg.com>: >> >>> suppress >> ------------------------------------------------------------------------------ >> EditLive Enterprise is the world's most technically advanced content >> authoring tool. Experience the power of Track Changes, Inline Image >> Editing and ensure content is compliant with Accessibility Checking. >> http://p.sf.net/sfu/ephox-dev2dev >> _______________________________________________ >> qooxdoo-devel mailing list >> qooxdoo-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > ------------------------------------------------------------------------------ > EditLive Enterprise is the world's most technically advanced content > authoring tool. Experience the power of Track Changes, Inline Image > Editing and ensure content is compliant with Accessibility Checking. > http://p.sf.net/sfu/ephox-dev2dev > _______________________________________________ > qooxdoo-devel mailing list > qooxdoo-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > ------------------------------------------------------------------------------ EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel