Hi David, thanks for the reply :)
it appears to work :) i defined an invisible table within the ex:role="view" div and the substitution of (A) into column (B). however, i still have a couple of issues: - i'm pretty sure that column (B) is a valid number. however, sorting does not appear to be numeric but alphanumeric :( - what is the difference between ex:formats and ex:columnFormats? which should i use? if i define this invisible table, the contents of ex:columnFormats appear to be ignored :( given the above, how do i specify the format of the column? Thanks, Yee. On 8 Feb 2008, at 07:10, David Huynh wrote: > Yee-Ting Li wrote: >> Hi, >> >> i have a column/field which i would like to sort by in the tabular >> view (A). however, it's a little convoluted in it's contents (it's >> both numeric and alpha). now, i also have another column (X) which >> basically is a numerical representation (computed from (A)'s >> contents) >> of this field. >> >> is it possible to overload exhibit's method of sorting columns, or >> alternatively to use my 'numerical' representation (B) whilst still >> showing the value of (A) in the field? if so, how do i do this? >> > Hi Yee-Ting, > > Take a look at the presidents example > http://simile.mit.edu/exhibit/examples/presidents/presidents-2.html > and click on the Details view. Note that the "name" column actually > also > shows photos. If you sort that column, it's sorted by the names, and > the > photos just go along with the names. This is done by specifying a row > template in the Tabular view. In the HTML source code, ex:columns > specifies the expressions by which to sort the columns, while the > inner > <table> ... </table> part specifies how to render the cells in each > row. > > David > > _______________________________________________ > General mailing list > [email protected] > http://simile.mit.edu/mailman/listinfo/general _______________________________________________ General mailing list [email protected] http://simile.mit.edu/mailman/listinfo/general
