Daeja ViewONE – issues with timing

Hello all,

I am currently using the JavaScript API’s to manipulate certain features on the viewer. It works to a point but not exactly how I would want it to work. I noticed that the methods “setView(3);” as an example only fires once the document in question is in context. I have tried hitching onto “onDocumentLoaded”, “isLoaded” and then calling the method to set these settings. but to no avail. extract of code below:

var tabs = fromTabContainer.getChildren();
if (tabs != null && tabs.length > 0) {
var pane = tabs[0].contentViewerPane;
var a = ecm.widget.viewer.DocViewer.isLoaded;
if(pane.docViewer.viewer!=undefined){
pane.docViewer.viewer.setView(3);
pane.docViewer.viewer.setScale(0);
}
}

is it possible to point me in the right direction

thanks in advance.

Related:

Leave a Reply