>From what I understand, "id" is the unique identifier for an item, and
"label" is the label (and is also used as the identifier if "id" is
not explicitly specified). However, it seems that in a few places
Exhibit uses the label even if an ID is specified. For example:
{
properties: {
manager: {
label: "Reports To", reverseLabel: "Manages", valueType:
"item"
}
},
items: [
{
id: "11111", label: "John Smith", job: "Big Manager",
phone: "555-1111", type: "Person"
},
{
id: "22222", label: "John Smith", job: "Simple Employee",
phone: "555-2222", type: "Person", manager: "11111"
}
]
}
Here I have a "Big Manager" named (and labeled) "John Smith" with an
ID of "11111"; I also have a "Simple Employee" named (also labeled)
"John Smith" with an ID of "22222", who reports to ID #11111 through
the "manager" property.
This correctly displays in the tile view (i.e. record #22222 gets a
link labeled "Reports To", that dereferences the "manager" property to
get the parent item label). However the anchored link generated is
like:
<a href="#John%20Smith">John Smith</a>
i.e. it is using the manager's label instead of the ID; I was
expecting to get:
<a href="#11111">John Smith</a>
Basically, the link should display the label of the item to which it
refers, but actually point at the ID (since that is the actual link to
the record); instead it displays and points at the label (which is not
the ID of the target record).
Eric
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---