EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB18115: How to disable printing and exporting when executing Report Services documents in Flash mode in MicroStrategy Web 8.1.x


Community Admin

• Strategy


Before customization:
 

ka04W00000147u9QAA_0EM440000002GyW.jpeg

 
After customization
 

ka04W00000147u9QAA_0EM440000002GyV.jpeg

 
This customization hides the print and export icons, effectively disabling this functionality for all users when viewing Report Services documents in Flash mode in Strategy Web 8.1.x.
 
To do so, familiarize with the following Strategy Developer Library (MSDL) document this explains best practices to carry out this customization:
 
https://support.microstrategy.com/MSDL/MSDL811/Hiding_Toolbar_Shortcuts_Based_on_Feature_Availabilitys.htm
 
This example makes use of Strategy's Web features to check for the document execution mode.
 
The MSDL contains more information on web features:
 
https://support.microstrategy.com/MSDL/MSDL811/Understanding_Web_Features.htm
 
The web feature used here is rw-flash-view-mode. This web feature returns true when the Report Services document is viewed in Flash mode. Because this example should show the shortcuts when NOT in Flash mode, it uses the ! sign in front the web feature.
 
For this customization, users need to modify rwStandardToolbar.xml found under Web ASPx\WEB-INF\xml\config.
 
For the Print and Export shortcuts, add the above web feature so the shortcuts are only displayed when not in Flash mode
 
Printing Shortcuts
 
<shortcut append-state="true" base-bean="rwframe.rwb" desc="Print" desc-id="mstrWeb.314" feature-id="pdf;enable-pdf;!show-rw-export-options;!rw-flash-view-mode" name="tbPrint" onclick="submitExportForm(this.href,this.target); return false;" target="mstrExportWindow" type="button">
 
<shortcut append-state="true" base-bean="rwframe.rwb" desc="Print" desc-id="mstrWeb.314" extra-url="&executionMode=3" feature-id="pdf;enable-pdf;show-rw-export-options;!rw-flash-view-mode" href="#" onclick="submitExportForm(this.href,this.target); return false;" iframe="true" name="tbPrintOptions" type="button">
 
Export Shortcuts
 
<shortcut append-state="true" base-bean="rwframe.rwb" desc="Export..." desc-id="mstrWeb.2110" feature-id="export;enable-export;!rw-flash-view-mode" name="tbExport" onclick="openExport(this.href,this.target); return false;" target="mstrExportWindow" type="button">
 
<shortcut append-state="true" base-bean="rwframe.rwb" desc="Export..." desc-id="mstrWeb.2110" extra-url="&executionMode=4" feature-id="export;enable-export;show-rw-export-options;!rw-flash-view-mode" href="#" onclick="openExport(this.href,this.target); return false;" iframe="true" name="tbExportOptions" type="button">
 
WARNING MESSAGE
Customization Code Warning:
This customization is provided as a convenience to Strategy users and is only directly applicable to the version stated. While this code may apply to other releases directly, Strategy Technical Support makes no guarantees that the code provided will apply to any future or previous builds. In the event of a code change in future builds, Strategy may not be able to provide additional code on this matter even though this customization is provided at this time for this specific build
 


Comment

0 comments

Details

Knowledge Article

Published:

June 21, 2017

Last Updated:

November 28, 2019