On Wed, Sep 15, 2010 at 13:54, DavidK <[email protected]> wrote:
> Not certain I am parsing either of your questions correctly, but:
>> {
>> label: "8 January 1790",
>> type: "Meal",
>> id: "m1790-01-08_dMeal_D",
>> URI: "/diary/1790-01-08.html",
>> subtype: "Dines",
>> date: "1790-01-08",
>> participants: [
>> "HOL04",
>> "UnCoded",
>> "KIP01",
>> "UnCoded",
>> "HOL02",
>> "HOL03"],
>> numParticipants: "6",
>> },
>>
> You can make each code the id of an item whose label is the pretty
> name:
> {type: "participant",
> id: "HOL04",
> label: "John Hollins"}
Ok if I make the json item look like:
{
label: "8 January 1790",
type: "Meal",
id: "m1790-01-08_dMeal_D",
URI: "/diary/1790-01-08.html",
subtype: "Dines",
date: "1790-01-08",
participants: [ {
type: participants,
id: "HOL04",
label: "HOL04-label", } ,
{type: participants,
id: "UnCoded",
label: "UnCoded-label",} ,
{type: participants,
id: "KIP01",
label: "KIP01-label",} ,
{type: participants,
id: "UnCoded",
label: "UnCoded-label",},
{type: participants,
id: "HOL02",
label: "HOL02-label",},
{type: participants,
id: "HOL03",
label: "HOL03-label",}],
numParticipants: "6",
},
It tells me 'ReferenceError: participants is not defined'
For the list of items as a whole I have:
properties: {
"participants" : {
valueType: "item"
}
},
at the top of the file.
Any suggestions?
> then the label instead of the id will be used in the facet
(not tried the date solution yet... will do though)
-James
--
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.