07-21-2008 07:29 AM
07-21-2008 10:12 AM
07-21-2008 10:35 AM
07-21-2008 10:44 AM
child.properties["cm:from"] <= todayCheers, Jan
07-21-2008 11:06 AM
(child.properties["cm:from"] <= today)
really works, if i comment out the move(..) line everything works fine
07-21-2008 11:20 AM
var stagingFolder = companyhome.childByNamePath("Intranet/Staging");
var productionFolder = companyhome.childByNamePath("Intranet/Production");
if(stagingFolder != null)
{
var today = new Date();
for each(child in stagingFolder.children)
{
if(child.properties["cm:from"] <= today)
{
child.move(productionFolder);
}
}
}
Cheers, Jan
07-21-2008 11:33 AM
hm,
there is another bug in your javascript. i is always =0.
It should be sth. like this:Cheers, Jan
var stagingFolder = companyhome.childByNamePath("Intranet/Staging");
var productionFolder = companyhome.childByNamePath("Intranet/Production");
if(stagingFolder != null)
{
var today = new Date();
for each(child in stagingFolder.children)
{
if(child.properties["cm:from"] <= today)
{
child.move(productionFolder);
}
}
}
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.