(defview foo (...)
name age)
vs.
(defview bar (...)
age name)
At the moment a dervied view cannot declaratively change the order of
fields defined in the base view. This is a limitation that eventually
needs to be solved.
I suspect this has something to do with the way you're using view
inheritance. If you have a base view (including a scaffold) like this:
(defview base (...)
(a ...)
(b ...)
(c ...))
And then you derive like this:
(defview derived (:inherits-from base)
(foo :reader "test")
(b ...))
The field FOO will be placed at the end. This is because the merge
algorithm will interpret field B in the derived view as a field that
"overrides" the one in base view. So, it will first place field A,
then the derived B, then C, and finally the derived FOO.
There is no way at the moment for a derived view to place fields
before the ones defined in a base view. It's a limitation that will
need to be solved.
This is somewhat difficult to track down without a self-contained
example, so I'm just trying to narrow done where the problem comes
from.
Could you post your elephant store code? I'd be very interested in
integrating it into weblocks.
> If all else fails I can give you access to the whole code base.
I'll try to recreate it here. Meanwhile, if you could track it down
and/or create a small self-contained example, that'd be great. If this
doesn't work, we'll move to drastic measures :)
Did you get anywhere with the column order problem?
Is there a possibility for setting the column order of a table view?
This would be useful.