Ryan & David,
That will teach me not to edit in the browser ....

My illustration of the Parent and the Child files is as follows:

Parent File

{items:[
{
type: "Parent",
id: "item1",
"label": "label for item 1",
"url": "http://url-for-metadata-field";,
"division": "some division",
"topic": "some topic",
"identifier": "http://url-for-identifier";,
"keywords": ["keyword1","keyword2"],
"tables": ["table1", "table2"]
}
]
}



Child File:

{items:[
{id: table1,
type: "Child",
label:"child label 1",
"referredPageTitle": "some title",
"referredPageDescription": "some description",
"webPublicationDate": "December 22, 2005",
"lastModifiedDate": "December 29, 2007",
"documentType": "Excel Workbook",
"fileSize": "932 kb",
"filePath": "some-file-path"
},
{id:table2,
type: "Child",
label: "child 2 label",
"referredPageTitle": "some other title",
"referredPageDescription": "yet another description",
"webPublicationDate": "October 11, 2008",
"lastModifiedDate": "October 14, 2009",
"documentType": "Excel Workbook",
"fileSize": "1292 kb",
"filePath": "some-other-file-path"
}
]
}



I am wanting to link a Parent record with the respective Child records
based on Parent.tables == Child.id

Hope this makes more sense

Cheers

Peter



On Jan 24, 6:24 am, David Karger <[email protected]> wrote:
> As Ryan says, it's generally easier to look at a partially working
> example to understand what you are aiming for.  But if I understand you
> correctly, you might be able to use the "recursive rendering" feature of
> lenses.     You can define a lens for each item type (using <div
> ex:role="lens" ex:itemTypes="Parent"> etc.).  If the lens for the Parent
> type displays the child, then the child lens will be invoked to display
> each child.
>
> <div ex:role="lens" ex:itemTypes="Parent">
> ...
> <div ex:content=".tables"></div>
>
> In place of the tables div, each child item should be displayed using
> the child lens.
>
> you need to specify that the valuetype of the tables property is "item"
>
> On 1/18/2012 12:15 PM, [email protected] wrote:
>
>
>
>
>
> > Hello group
>
> > I have 2 data sets:  One is a list of records with several fields per
> > record, and the other is a list of urls and other information that
> > goes with each url.  Each record is linked to one or more urls.  I
> > want to provide a view that presents each record together with the
> > urls (and associated information).  I would appreciate guidance and
> > perhaps illustrations on how to do that using Exhibit.
>
> > Example data:
>
> > Parent
>
> > {items:[
> > {
> > type: "Parent",
> > id: "item1",
> > "label": "label for item 1",
> > "url": "http://url-for-metadata-field";,
> > "division": "some division",
> > "topic": "some topic",
> > "identifier": "http://url-for-identifier";,
> > "keywords": ["keyword1","keyword2"],
> > "tables": ["table1
> > <http://www.scotland.gov.uk/Resource/Doc/933/0092739.xls>", "table2
> > <http://www.scotland.gov.uk/Resource/Doc/933/table2.xls>"]
> > }
> > ]
> > }
>
> > Child:
>
> > {items:[
> > {id: table1,
> > type: "Child",
> > label:"child label 1
> > <http://www.scotland.gov.uk/Resource/Doc/933/0092739.xls>",
> > "referredPageTitle": "some title",
> > "referredPageDescription": "some description",
> > "webPublicationDate": "December 22, 2005",
> > "lastModifiedDate": "December 29, 2007",
> > "documentType": "Excel Workbook",
> > "fileSize": "932 kb",
> > "filePath": "some-file-path
> > <http://www.scotland.gov.uk/Resource/Doc/933/0092739.xls>"
> > },
> > {id:table2,
> > type: "Child",
> > label: "child 2 label
> > <http://www.scotland.gov.uk/Resource/Doc/933/table2.xls>",
> > "referredPageTitle": "some other title",
> > "referredPageDescription": "yet another description",
> > "webPublicationDate": "October 11, 2008",
> > "lastModifiedDate": "October 14, 2009",
> > "documentType": "Excel Workbook",
> > "fileSize": "1292 kb",
> > "filePath": "some-other-file-path
> > <http://www.scotland.gov.uk/Resource/Doc/933/table2.xls>"
> > }
> > ]
> > }
>
> > Many thanks
>
> > Peter
>
> > *******************************************************
>
> > This e-mail (and any files or other attachments transmitted with it) is
>
> > intended solely for the attention of the addressee(s). Unauthorised
>
> > use, disclosure, storage, copying or distribution of any part of this
>
> > e-mail is not permitted. If you are not the intended recipient please
>
> > destroy the email, remove any copies from your system and inform
>
> > the sender immediately by return.
>
> > Communications with the Scottish Government may be monitored or
>
> > recorded in order to secure the effective operation of the system and
>
> > for other lawful purposes. The views or opinions contained within
>
> > this e-mail may not necessarily reflect those of the
>
> > Scottish Government.
>
> > ********************************************************
>
> > The original of this email was scanned for viruses by the Government
> > Secure Intranet virus scanning service supplied by Cable&Wireless
> > Worldwide in partnership with MessageLabs. (CCTM Certificate Number
> > 2009/09/0052.) On leaving the GSi this email was certified virus free.
> > Communications via the GSi may be automatically logged, monitored
> > and/or recorded for legal purposes.
> > --
> > 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.- Hide quoted text -
>
> - Show quoted text -

-- 
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.

Reply via email to