Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
how to disable scroll widget on reports
kimyx
I'm using the Actuate 11 M9 beta to integrate reports into an existing mashup. The reports are formatted in such a way that scrolling is not needed. So far they are simple tables with a limited number of rows.<br />
<br />
Is there a way to disable the 2D scroll widget? I found that I can hide it like this:<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
document.getElementById('MapControl').style.visibility = 'hidden';
</pre>
<br />
but this still has some disadvantages:<br />
<br />
1. the widget shows up briefly before disappearing<br />
2. the widget seems to subtract from the horizontal layout space<br />
3. the mouse scroll wheel still scrolls the table when positioned over the report.<br />
<br />
I've tried all the "enable" methods whose name seems likely but none of them help.<br />
<br />
Thanks,<br />
Kim
Find more posts tagged with
Comments
rmurphy
Kim,<br />
Here is some sample code to create a viewer without the scroll control<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
var scrollPanel = new actuate.viewer.ScrollPanel();
scrollPanel.setScrollControlEnabled(false);
scrollPanel.setPanInOutEnabled(false);
scrollPanel.setMouseScrollingEnabled(false);
var config = new actuate.viewer.UIConfig();
config.setContentPanel(scrollPanel);
var sumViewer = new actuate.Viewer("MyDiv", config);
sumViewer.setReportName("/Public/MyReport.rptdesign");
sumViewer.setWidth(300);
sumViewer.setHeight(200);
var uiopts = new actuate.viewer.UIOptions();
uiopts.enableToolBar(false);
sumViewer.setUIOptions(uiopts);
sumViewer.submit();
</pre>
<br />
Rob
kimyx
Thank you!