06-29-2010 05:01 AM
var nombrepdf = document.name;
var nombrepai = nombrepdf.replace("OCR_","");
var nodepai = space.parent;
var documentA= nodepai.childByNamePath(nombrepai);
if (documentA != null)
{
documentA.content = document.content;
document.remove();
}
var nombrepdf = document.name;
var nombrepai = nombrepdf.replace("OCR_","");
var nodepai = space.parent;
var documentA= nodepai.childByNamePath(nombrepai);
if (documentA != null)
{
document.move(nodepai);
document.properties = documentA.properties;
documentA.remove();
}
10:27:55,703 ERROR [org.alfresco.web.ui.common.Utils] Ocurrió un error del sistema durante la operación: Failed to execute script 'workspace://SpacesStore/941bd772-00f1-448a-afa5-d42f5d4ba8ab': Java class "org.alfresco.repo.jscript.ScriptNode" has no public instance field or method named "properties". (AlfrescoScript#27)
org.alfresco.scripts.ScriptException: Failed to execute script 'workspace://SpacesStore/941bd772-00f1-448a-afa5-d42f5d4ba8ab': Java class "org.alfresco.repo.jscript.ScriptNode" has no public instance field or method named "properties". (AlfrescoScript#27)
at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:156)
at org.alfresco.repo.processor.ScriptServiceImpl.executeScript(ScriptServiceImpl.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
…
06-29-2010 08:03 AM
var nombrepdf = document.name;
var nombrepai = nombrepdf.replace("OCR_","");
var nodepai = space.parent;
var documentA= nodepai.childByNamePath(nombrepai);
if (documentA != null)
{
documentA.properties.content.write(document.properties.content);
documentA.save();
document.remove();
}
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.