thanks David that worked :)

related to my other thread about lenses, i am using your recommended  
method to substitute a field by defining the <table/> within the <div  
ex:role="view" ex:viewClass="Tabular"/>... but i also wish to have a  
lens on this over-riden tabular view... how can i do this? simply  
defining the lens along with the <table/> does not appear to work :(

thanks,

Yee.

On 12 Feb 2008, at 06:37, David Huynh wrote:

> Yee-Ting Li wrote:
>> 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 :(
>>
> Try declaring the value type for that property in your data file,  
> e.g.,
>
>    {
>       items: [
>          ...
>       ],
>       properties: {
>          "price": {
>             valueType: "number"
>          }
>       }
>    }
>
>
>> - 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?
>>
> If you define that table, then use ex:formats and define the value  
> types
> for the properties (see above).
>
>    <div ex:role="view" ex:viewClass="Tabular" ...>
>       <table>
>          <tr>
>             <td ex:formats="number { decimal-digits: 2 }">
>                Only <span ex:content=".price"></span>!!!
>             </td>
>             ...
>          </tr>
>       </table>
>    </div>
>
> I haven't tested that case, so let me know if it works for you.
>
> 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

Reply via email to