Christopher, The references from one item to other items are by IDs, so you need to change "outage" : ["Outage_1, super outages","Outage_2"], to "outage" : ["7","7777"],
(Note that "id" is a system property.) Cheers, David Smith, Christopher (GE Indust, ConsInd) wrote: > Team, > below is a snippet of a data file . in which the *"outage"* attribute > is an Item. > I am having trouble accessing the outage items properties in a lens. > Any ideas > Thanks > ============ lens snippet below ========================= > <body> > <!-- used to show only certain item types see > http://simile.mit.edu/wiki/Exhibit/2.0/Collections --> > <div ex:role="collection" ex:itemTypes="outageObject"></div> > ......... > > <table ex:role="lens" ex:itemTypes="outageObject" class="nobelist"> > <tr> > <td><img ex:src-content=".imageURL" /></td> > <td> > <a target="_blank" > ex:href-subcontent="http://formula.amer.consind.ge.com:8181/portal/Controller/pid/{{.formula_id > > <http://formula.amer.consind.ge.com:8181/portal/Controller/pid/%7B%7B.formula_id>}}" > > ><span ex:content=".label" /></a> > <div ex:content=".Application_Name" class="name"></div> > <div> > <span ex:content=".Application_Owner" class="year"></span> > </div> > <div> > <span ex:content=".underlying_issue" class="year"></span> > </div> > <div class="name">Short Term Fix:</div> > <div> > <span ex:content=".Short_Term_Fix" class="year"></span> > </div> > <div class="name">Long Term Prevention:</div> > <div> > <span ex:content=".Long_Term_Prevention" class="year"></span> > </div> > <!-- try to see if multiple outages can be handled --> > <div class="name">Outage:</div> > <div> > * <span ex:content=".outage" class="year"></span> <!-- here I cannot > access any properties of the outage "object" .outage.label does not > work -->* > </div> > <!-- try to see if multiple outages can be handled --> > </td> > </tr> > </table> > ==============data snippet below =============== > { > "items" : [ > { > "addressLatLng" : "38.898748,-77.037684", > "type" : "outageObject", > "starts" : "2008-01-10", > "Sub-Business" : "0", > "Business" : "Security", > "Function" : "0", > "Short_Term_Fix" : " ITSG quickly identified the issue and we > terminated the jobs immediately, which then restored CICS. Parts team > restructured the job sequence to run single threaded to better manage > load/performance.", > "label" : "COPS", > "Outage_Length" : "35 min", > "outage" : ["Outage_1, super outages","Outage_2"], > "ends" : "2008-01-10", > "Component" : "Config", > "impact" : "Application unavailable", > "Underlying_Issue" : "Parts IT was running some critical batch jobs > (reports) for the business to support 2008 price inflation analysis & > planning. 12 simultaneous monthly batch jobs overloaded primary memory > allocation on IVORY and consumed temp memory allocation, which in turn > crashed CICS online. Parts team was not aware batch could have direct > impact on CICS online.", > "id" : "3", > "imageURL" : "file:///D:/projects/qmi/images/robert.freshmen.jpg", > "Category" : "App Infra", > "Application_Owner" : "John Bright", > "Application_Name" : "COPS", > "Long_Term_Prevention" : "Proactively communicate any irregular, large > batch job(s) to ITSG team before running.", > "FW" : "FW-2", > "formula_id" : "141" > }, > { > "addressLatLng" : "38.898748,-77.037684", > "type" : "outageObject", > "starts" : "2007-09-17", > "Sub-Business" : "0", > "Business" : "Consumer & Industrial", > "Function" : "Technology", > "Short_Term_Fix" : "Replaced impaired server with a new one", > "label" : "MyWorkplace", > "Outage_Length" : "37", > "outage" : "Outage_xx", > "ends" : "2007-09-17", > "Component" : "Back-up", > "impact" : "Application unavailable", > "Underlying_Issue" : "App Infra = Directory server was placed in > de-bug mode in order to investigate root cause of previous outages. > This caused performance degradation on the master SSO directory server.", > "id" : "7", > "imageURL" : "file:///D:/projects/qmi/images/daniel.whitsell.jpg", > "Category" : "App Infra", > "Application_Owner" : "Daniel Whitsell", > "Application_Name" : "Digital Cockpit", > "Long_Term_Prevention" : "Replaced directory server and upgraded to a > new version; adding add’l redundancy FW4", > "FW" : "FW-51", > "formula_id" : "15" > }, > > { > "addressLatLng" : "38.898748,-77.037684", > "type" : "item", > "starts" : "2008-01-10", > "Short_Term_Fix" : " ITSG quickly identified the issue and we > terminated the jobs immediately, which then restored CICS. Parts team > restructured the job sequence to run single threaded to better manage > load/performance.", > "label" : "Outage_1", > "Outage_Length" : "35 min", > "ends" : "2008-01-10", > "Component" : "Configzzzzzzzzzzzzzzz", > "impact" : "Application unavailable", > "Underlying_Issue" : "Parts IT was running some critical batch jobs > (reports) for the business to support 2008 price inflation analysis & > planning. 12 simultaneous monthly batch jobs overloaded primary memory > allocation on IVORY and consumed temp memory allocation, which in turn > crashed CICS online. Parts team was not aware batch could have direct > impact on CICS online.", > "id" : "7777", > "imageURL" : "file:///D:/projects/qmi/images/robert.freshmen.jpg", > "Category" : "App Infra", > "Application_Owner" : "John Bright", > "Application_Name" : "COPS", > "Long_Term_Prevention" : "Proactively communicate any irregular, large > batch job(s) to ITSG team before running.", > "FW" : "FW-2", > "formula_id" : "141" > } > > ], > "types" : { > "Item" : { > "uri" : "http://127.0.0.1/Item" > } > }, > "properties" : { > "Business" : { > "uri" : "http://127.0.0.1/Business" > }, > "Function" : { > "uri" : "http://127.0.0.1/Function" > }, > "Outage_Length" : { > "uri" : "http://127.0.0.1/Outage_Length" > }, > "starts" : { > "uri" : "http://127.0.0.1/starts" > }, > "imageURL" : { > "uri" : "http://127.0.0.1/imageURL" > }, > "Application_Name" : { > "uri" : "http://127.0.0.1/Application_Name" > }, > "Underlying_Issue" : { > "uri" : "http://127.0.0.1/Underlying_Issue" > }, > "Long_Term_Prevention" : { > "uri" : "http://127.0.0.1/Long_Term_Prevention" > }, > "Sub-Business" : { > "uri" : "http://127.0.0.1/Sub-Business" > }, > "ends" : { > "uri" : "http://127.0.0.1/ends" > }, > "FW" : { > "uri" : "http://127.0.0.1/FW" > }, > "Category" : { > "uri" : "http://127.0.0.1/Category" > }, > "Component" : { > "uri" : "http://127.0.0.1/Component" > }, > "Application_Owner" : { > "uri" : "http://127.0.0.1/Application_Owner" > }, > "addressLatLng" : { > "uri" : "http://127.0.0.1/addressLatLng" > }, > "Short_Term_Fix" : { > "uri" : "http://127.0.0.1/Short_Term_Fix" > }, > > "outage" : { > valueType: "item" > } > } > > } > ------------------------------------------------------------------------ > > _______________________________________________ > General mailing list > [email protected] > http://simile.mit.edu/mailman/listinfo/general > _______________________________________________ General mailing list [email protected] http://simile.mit.edu/mailman/listinfo/general
