AnsweredAssumed Answered

How to view created document in document-details page?

Question asked by dark_rider on Sep 16, 2010
Latest reply on Sep 23, 2010 by talija83
In document-details page, I have to view the new created document using Javascript API.
The following transformDocument method creates a new document in same folder and returns the new node. I want to display the new node  instead of old document… Any sugesstion?
Here is the code;

var newNode;
var regExp = " " + type;
if ( > 0 ){
newNode = node.transformImage(type);
} else {
newNode = node.transformDocument(type);

node = newNode; // this is not working