Hi 2010/6/14 Nandan Bagchee <[email protected]>: >> >> I'm using webclocks-stable (installed by clbuild) with clsql store in >> Postgres. >> > > Also, have you checked out the postmodern work done by > Phil Marneweck?
No, I not tried it but will check it in future. >> When I try to add additional field to table view which populated via >> ":reader" parameter then this field always requested from Postgres but >> Postgres's table doesn't have these column. >> >> Similar problem described in "Autogenerated query for sorting in >> datagrid widgets" topic except that I has these error always. >> > > Do you get the error while sorting columns? Have you set the :sort param in > your grid? Is this problematic field the first in your view (if so, try > moving it to the last item in defview). > Finally, I remove ":inherit-from '(:scaffold some-entity)" and add all columns by hand. In this case data loaded successfully, but sorting by this column failed with similar error (column not found in table by Postgres). >> One interesting moment: >> >> When I define view like: >> (defview some-entity-view (:type table :inherit-from '(:scaffold some- >> entity)) >> (custom-reader :reader (lambda (obj) "Line"))) >> >> it works fine. >> >> When I try to hide one slot from some-entity (for example, id): >> (defview some-entity-view (:type table :inherit-from '(:scaffold some- >> entity)) >> (id :hidep t) >> (custom-reader :reader (lambda (obj) "Line"))) >> it always fails. >> > > There are ways to specify custom sorting, but first let's be sure that > that's your problem! Also I find that I can hide any another column except "id". When I hiding "id" then I have error. But this applies only to case when I using ":scaffold". I know that custom sorting will be required for column with :reader in my case. -- Alexey Martynov -- You received this message because you are subscribed to the Google Groups "weblocks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/weblocks?hl=en.
