[aida] WebGrid Sorting

Rob Rothwell r.j.rothwell at gmail.com
Sun Apr 6 21:48:33 CEST 2008


On Sun, Apr 6, 2008 at 6:02 PM, Nicolas Petton <petton.nicolas at gmail.com>
wrote:

> Rob,
>
> Why do you have nil elements in your grid?


Ahh...well, I am using WebGrid's primarily to display data from our hospital
systems, which can frequently contain NULL values.  So, rather than mix my
data types and display an empty string (which would really make sorting
hard), we were happy to just see "nil" so we know that no data is available.

> I also have a WebGrid>>bindTo: method which will bind a WebGrid to an
> > ODBCResultTable.  Would database components be generally useful to
> > anyone else?  Probably not, unless you are planning on writing a
> > DbVisualizer type of thing in Smalltalk (which I was thinking of doing
> > as a more "business oriented" example).
>
> Can you explain a bit more please ?
>

Sure...I thought it would be a fun example to create an application to
connect to arbitrary data sources and explore their contents.  When you do
that, you DEFINITELY get nil values in your grid as well!

Anyway, as a start, I just created a binding method to load the contents of
a query into a WebGrid.  Ultimately, I think I would like a little more
control over the grid (dragable columns, etc...) but that would require
learning way more about JavaScript than I know right now!

Except for the features of the WebGrid, though, I think it would be pretty
"easy" to create such an example with Aida...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.aidaweb.si/pipermail/aida/attachments/20080406/b95a21c6/attachment-0001.htm 


More information about the Aida mailing list