06-17-2010 04:56 AM
<!– Done-editing document –>
<action id="done_editing_doc">
<evaluator>org.alfresco.web.action.evaluator.DoneEditingDocEvaluator</evaluator>
<label-id>done_editing</label-id>
<script>/Company Home/Data Dictionary/Scripts/append copyright.js</script>
<image>/images/icons/done_editing.gif</image>
<action-listener>#{DoneEditingDialog.handle}</action-listener>
<params>
<param name="id">#{actionContext.id}</param>
<param name="ref">#{actionContext.nodeRef}</param>
</params>
</action>
Failed to execute script 'workspace://SpacesStore/1fddd771-ff46-43df-8918-b37d989ccd7d': 05170000 ReferenceError: "document" n'est pas défini (workspace://SpacesStore/1fddd771-ff46-43df-8918-b37d989ccd7d#1)because document isn't knew …
06-18-2010 06:13 AM
var nodeRef = args["noderef"];
var mydocument = utils.getNodeFromString(nodeRef);
07-08-2010 07:40 AM
var nodeRef = args["noderef"];
var mydocument = utils.getNodeFromString(nodeRef);
var rootContest = companyhome.childByNamePath("Banco IBI/Sao Paulo/Intercambio/Processos de Contestacao");
var dataentrada = mydocument.properties["ibi:docdataentrada"];
var numcartao = mydocument.properties["ibi:docnumcartao"];
var numlote = mydocument.properties["ibi:docnumlote"];
var espacodataentrada = companyhome.childByNamePath("Banco IBI/Sao Paulo/Intercambio/Processos Aprovados/" + dataentrada);
var espaconumcartao = companyhome.childByNamePath("Banco IBI/Sao Paulo/Intercambio/Processos Aprovados/" + dataentrada + "/" + numcartao);
var espaconumlote = companyhome.childByNamePath("Banco IBI/Sao Paulo/Intercambio/Processos Aprovados/" + dataentrada + "/" + numcartao + "/" + numlote);
if (espacodataentrada == null){
espacodataentrada = rootContest.createFolder(dataentrada);
}
if (espaconumcartao == null){
espaconumcartao = espacodataentrada.createFolder("Teste");
}
if (espaconumlote == null){
espaconumlote = espaconumcartao.createFolder(numlote);
}
if(espaconumlote != null){
var movedoc = mydocument.move(espaconumlote);
}
07-08-2010 10:20 AM
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.