//———————————————————————-
// 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);
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");
}
Archive content from product discussions in German.
This group is now closed and content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.