How can I restrict a TableView so that it only displays data of a
certain type? I suspect I ought to use lenses but the tutorial is very
short on how to use them.
I've one .js file with persons:
{
"items" : [
{
"label" : "Jsse Aafgnds",
"type" : "person",
"id" : "Jsse Aafgnds",
"countries" : ["Germany","Switzerland"]
},
[snip]
}
],
"properties" : {
"countries" : {
"valueType" : "item"
}
}
}
and a second .js file with country info:
{
"items":[
{"id":"ad",
"label":"Andorra",
"type":"Flag",
"uri":"http://www.simile-widgets.org/exhibit/examples/flags/
item#ad",
"modified":"no",
"code":"ad",
"latlng":"42.5,1.5",
"origin":"http://www.simile-widgets.org/exhibit/examples/flags/
flags.html#ad"
},
etc.
If I use a view:
<div ex:role="view"
ex:viewClass="Exhibit.TabularView"
ex:label="Voulenteer List"
ex:columns=".label,.countries"
ex:columnLabels="Member,List of Countries"
</div>
then it insists on listing all the countries too. How can I only list
the "persons" and associated countries. There are a lot more countries
in the secon .js than there are persons. But I don't want all
countries to be listed. Only those for which there is a person.
Basically list entries of type "person" only.
Any ideas?
--
Rahul
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"SIMILE Widgets" 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/simile-widgets?hl=en
-~----------~----~----~----~------~----~------~--~---