I am working on a project utilizing Exhibit (what a terrific project, thanks
to all who have contributed to it!)

I am working with a data model that has "projects" and associated with each
project is a set of "milestones".  Thus, in a simplified example, I have two
item types, project and milestone. The project items have a field that
consists of the IDs of milestones (a simple one to many model).  All of the
items are in the same JSON file.

I load the file into Exhibit (V1 - trying to stay with the most stable
version, but if I need to switch to V2, let me know) and specify
Exhibit.create(null, 'Project'); in the onload tag.  Thus Exhibit is dealing
with Projects.

I have a timeline view which shows the Milestones by using a proxy.  I have
been struggling with this view for a while.  There are a few options I would
like to pursue.

1) Potentially show the Milestone label (or other field) as the event label
on the bars. It does not appear that the label "follows" the proxy. I think
this should be an option since a project with multiple milestones all have
the same label.  I think this needs to be an option since, for some data
models, you want the label to come from the "one" side and in other cases
the "many".

2) In the lens that displays when the bar is clicked, I would like to be
able to show text from both the "one" and the specific "many" record that
the bar represents. Unfortunately I have found no way to get at the fields
in the specific "many" record. The documentation on "Understanding Exhibit
Expressions" mentions an "index" predefined variable but I have been unable
to figure out how to use it.  If the "item" that the lens is passed was the
"many" it would be easy to get back to the "one" via the ! operator. There
doesn't seem to be a way to go the other way.

I would appreciate any help or recommendations!

          Charles Cowan
_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general

Reply via email to