MicroStrategy ONE
Adding a Conditional Shortcut to All Pages
The default hyperlinks are Create, Shared Reports, My Reports, History List, and My Subscriptions. In MicroStrategy Web, each of these links is defined as an individual shortcut that belongs to a shortcut list. Depending upon the requirements, you can add a new shortcut that is displayed on every page or only on a specific page or pages, or you can make the display of the link conditional, based on a Web Feature such as a user group or a project. You can further refine a conditional link so that it is either visible/hidden or enabled/disabled depending on whether the preference, privilege, or setting specified by the Web feature exists/does not exist.
In this customization scenario, you add a new shortcut MicroStrategy News to all the MicroStrategy Web Pages. This shortcut is displayed only to users who have administrative privileges— that is, only if they are a member of the "administrator" user group.
Before customization:
After customization:
Deploying the plug-in provided with MicroStrategy SDK
MicroStrategy SDK provides a plug-in (ZIP file) that can simply be extracted to thepluginsfolder to view the customization in MicroStrategy Web. The following steps guide you in locating the plug-in and deploying it.
-
Access the plug-in: JSP version or ASP .NET version.
-
Extract the plug-in to the plugins subfolder inside the MicroStrategy Web installation folder.
-
Launch MicroStrategy Web to view the customization.
Using the Web Customization Editor to create a plug-in
MicroStrategy SDK provides a Web Customization Editor that can be used to create a customization plug-in. The following steps guide you in creating the plug-in and deploying it.
-
Click on MicroStrategy Web Configuration inside the Application Settings view to expand the hierarchical tree. The expanded list comprises the different settings that can be modified to perform customizations.
-
Click on Pages to expand the list of pages used in MicroStrategy Web.
-
Double-click the -1 (Default Page) page.
-
Click the Template Properties tab at the bottom in the right frame to make changes to the Default page template.
-
Click Edit Shortcuts.
-
Select the radio button for Add New Shortcut.
-
Click Next.
-
Enter MicroStrategy News in the Name text field.
-
Enter MicroStrategy News in the Descriptor text field.
-
Enter http://www.microstrategy.com in the HRef text field.:
Refer to Using the URL API to Access a MicroStrategy Web Page for instructions on creating a link that points to a new or existing MicroStrategy Web page.
-
Enter _blank in the Target text field.
-
Select false from the drop-down menu for Append State.:
If the shortcut points to a MicroStrategy Web page such as a Report Execution page, Document Execution page, etc. where you want to pass the state of a bean, keep theAppend Stateastrue.
-
Click Modify next to the text field for Display this menu item only if the following feature(s) is (are) available.
-
Select administrator and add this feature by clicking >>.
-
Click OK.
-
Click Next.
-
Click Finish.
-
Click OK in the Refresh Application window to refresh the view.
-
Save your changes.
-
Launch MicroStrategy Web to view the customization.
See Also