var fecha=document.properties["custom:fecha"];
var ano=fecha.getFullYear();
var mes=fecha.getMonth() +1 ;
var textomes = new Array (12);
textomes[1]="Enero";
textomes[2]="Febrero";
textomes[3]="Marzo";
textomes[4]="Abril";
textomes[5]="Mayo";
textomes[6]="Junio";
textomes[7]="Julio";
textomes[7]="Agosto";
textomes[9]="Septiembre";
textomes[10]="Octubre";
textomes[11]="Noviembre";
textomes[12]="Diciembre";
var espacioAno = space.childByNamePath(ano);
if (espacioAno == null && space.hasPermission("CreateChildren"))
{
// create the folder for the first time
espacioAno = space.createFolder(ano);
var espacioMes = space.childByNamePath(textomes[mes]);
if (espacioMes == null && space.hasPermission("CreateChildren"))
{
// create the folder for the first time
espacioMes = space.createFolder(textomes[mes]);
}
}
if (espacioAno != null && espacioAno.hasPermission("CreateChildren"))
{
var move = document.move(espacioAno);
if (move != null)
{
move;
if (espacioMes != null && espacioMes.hasPermission("CreateChildren"))
{
var move = document.move(espacioMes);
if (move != null)
{
// change the name so we know it's a backup
move;
}
}
}
}
var ParentSpace = space.childByNamePath("parentSpaceName");
if (ParentSpace != null && space.hasPermission("CreateChildren"))
{
ChildSpace = space.createFolder("ChildName");
}
var fecha=document.properties["custom:fecha"];
var ano=fecha.getFullYear();
var mes=fecha.getMonth() +1 ;
var textomes = new Array (12);
textomes[1]="Enero";
textomes[2]="Febrero";
textomes[3]="Marzo";
textomes[4]="Abril";
textomes[5]="Mayo";
textomes[6]="Junio";
textomes[7]="Julio";
textomes[7]="Agosto";
textomes[9]="Septiembre";
textomes[10]="Octubre";
textomes[11]="Noviembre";
textomes[12]="Diciembre";
var espacioAno = space.childByNamePath(ano);
if (espacioAno == null && space.hasPermission("CreateChildren")) {
// create the folder for the first time
espacioAno = space.createFolder(ano);
var espacioMes = espacioAno.childByNamePath(textomes[mes]);
if (espacioMes == null && space.hasPermission("CreateChildren")) {
// create the folder for the first time
espacioMes = espacioAno.createFolder(textomes[mes]);
if (espacioMes != null && espacioMes.hasPermission("CreateChildren")) {
var move = document.move(espacioMes);
}
}
}
var fecha=document.properties["custom:fecha"];
var ano=fecha.getFullYear();
var mes=fecha.getMonth() +1 ;
var textomes = new Array (12);
textomes[1]="Enero";
textomes[2]="Febrero";
textomes[3]="Marzo";
textomes[4]="Abril";
textomes[5]="Mayo";
textomes[6]="Junio";
textomes[7]="Julio";
textomes[7]="Agosto";
textomes[9]="Septiembre";
textomes[10]="Octubre";
textomes[11]="Noviembre";
textomes[12]="Diciembre";
var espacioAno = space.childByNamePath(ano);
if (espacioAno == null && space.hasPermission("CreateChildren")) {
// create the folder for the first time
espacioAno = space.createFolder(ano);
}
if (espacioAno != null && espacioAno.hasPermission("CreateChildren")) {
var espacioMes = espacioAno.childByNamePath(textomes[mes]);
if (espacioMes == null && space.hasPermission("CreateChildren")) {
// create the folder for the first time
espacioMes = espacioAno.createFolder(textomes[mes]);
if (espacioMes != null && espacioMes.hasPermission("CreateChildren")) {
var move = document.move(espacioMes);
}
}
}
Content from pre 2016 and from language groups that have been closed.
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.