02-24-2011 09:44 AM
03-01-2011 03:38 AM
03-03-2011 05:43 PM
03-10-2011 09:58 AM
03-10-2011 11:00 AM
03-10-2011 05:03 PM
//———————————————————————-
// add an aspect to a document with properties from parent
//———————————————————————-
// define Array for properties
var props = new Array();
// transfer aspect properties from parent
props["my:propertie1"] = document.parent.properties["my:propertie1"];
props["my:propertie2"] = document.parent.properties["my:propertie2"];
props["my:propertie3"] = document.parent.properties["my:propertie3"];
// add aspect to document
document.addAspect("my:aspect", props);
03-11-2011 02:33 AM
var props = new Array();
var names = new Array();
// Name und Vorname aus Ordner extrahieren
names = document.properties.name.split(', ', 2);
props["lz:a_nachname"] = names[0]
props["lz:a_vorname"] = names[1];
// Aspect schreiben
document.addAspect("lz:schueler", props);
//———————————————————————-
// add an aspect to a document with properties from parent
//———————————————————————-
// define Array for properties
var props = new Array();
// exists aspect in Parent?
if (document.parent.hasAspect("lz:schueler") == true)
{
// transfer aspect properties from parent
props["lz:a_schuelerIdx"] = document.parent.properties["lz:a_schuelerIdx"];
props["lz:a_vorname"] = document.parent.properties["lz:a_vorname"];
props["lz:a_nachname"] = document.parent.properties["lz:a_nachname"]
props["lz:a_kzInaktiv"] = document.parent.properties["lz:a_kzInaktiv"];
props["lz:a_inaktivJahr"] = document.parent.properties["lz:a_inaktivJahr"];
props["lz:a_jugendamt"] = document.parent.properties["lz:a_jugendamt"];
props["lz:a_jaName"] = document.parent.properties["lz:a_jaName"];
// add aspect to document
document.addAspect("lz:schueler", props);
}
else
{
// add aspect to document
document.addAspect("lz:schueler");
}
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.