Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
move logout to widget bar and remove printer icon
DQM
<p>Hi,</p>
<p>we currently place a link to logout.do in the report itself, but ideally we would like to place it in the actuate widget bar on top of the page (see screenshot)</p>
<p>How do I achieve that?</p>
<p> </p>
<p>And also: How do I remove the printer icon including its functionality from the top bar?</p>
Find more posts tagged with
Comments
DQM
<p>Anyone?</p>
Clement Wong
<p>The printer icon is rendered via the minimized JavaScript file <strong>dashboard.widget.js</strong>. It is located in the Information Console iportal\dashboard\main\dashboard.widget directory. It's not readable, but you can use a JavaScript code beautifier like <a data-ipb='nomediaparse' href='
http://jsbeautifier.org/'>http://jsbeautifier.org</a>
, or Notepad++'s plugin JSTool.</p>
<p> </p>
<p>Around line 8202 (depending on your version), you'll see the Toolbar array entry:</p>
<pre class="_prettyXprint">
cls : "actuate-dashboard-print-toolbar-btn",
overCls : "actuate-dashboard-print-toolbar-btn-over",
listeners : {
render : function (D) {
if (C.isDesigner) {
D.hide();
}
}
},</pre>
<p>You can change to</p>
<pre class="_prettyXprint">
cls : "actuate-dashboard-print-toolbar-btn",
overCls : "actuate-dashboard-print-toolbar-btn-over",
listeners : {
render : function (D) {
// Force to hidden
D.hide();
}
},</pre>
<p>Make sure you clear your browser's cache before testing.</p>
<p> </p>
<p> </p>
<p>Modifying this core JavaScript file is typically not recommended. Additional customized code would be required to add the logged in as and log out into the Dashboard toolbar.</p>
<p> </p>
DQM
<p>Hi Clement, thanks for your answer.</p>
<p>However <span style="color:#0000ff;">"<span style="font-family:'Source Sans Pro', sans-serif;">Modifying this core JavaScript file is typically not recommended."</span></span><span style="color:rgb(40,40,40);font-family:'Source Sans Pro', sans-serif;"> prompts me to think a safer solution would be to simply replace the printer icon (and all its states) with a transparent .png file of the same size (or, even better, 1x1px in size), thus rendering it invisible.</span></p>
<p>Am I right in presuming <span style="color:#0000ff;">"<span style="font-family:'Source Sans Pro', sans-serif;">Additional customized code would be required to add the logged in as and log out into the Dashboard toolbar."</span></span><span style="color:rgb(40,40,40);font-family:'Source Sans Pro', sans-serif;"> would also entail modifying a core JavaScript file? </span></p>
Clement Wong
<p>Yes, that is correct.</p>