I am using Alfresco Community 5.2 & i did something like this.
- Created a script file named redirect_editmetadata.js
- Put it into Data Dictionary/Scripts folder
- Create a rule for a specific folder named X Folder, in the Shared.
- Apply rule to run when a document enter to that folder, & run redirect_editmetadata.js script.
My script is given below
var node1 = userhome.childByNamePath('findNode1.txt');
var nodeRefURL = "http://10.8.8.34:9090/share/page/context/shared/edit-metadata?nodeRef=" + node1.nodeRef;
I need to know what is the function i can called to redirect that nodeRefURL. I found some methods like,
But those methods are not working. Please help me to find a methods to this.