Adding and Removing Ui Sections in Cognos Connection
Adding and Removing Ui Sections in Cognos Connection
Copyright Copyright 2008 Cognos ULC (formerly Cognos Incorporated). Cognos ULC is an IBM Company. While every attempt has been made to ensure that the information in this document is accurate and complete, some typographical errors or technical inaccuracies may exist. Cognos does not accept responsibility for any kind of loss resulting from the use of information contained in this document. This document shows the publication date. The information contained in this document is subject to change without notice. Any improvements or changes to the information contained in this document will be documented in subsequent editions. This document contains proprietary information of Cognos. All rights are reserved. No part of this document may be copied, photocopied, reproduced, stored in a retrieval system, transmitted in any form or by any means, or translated into another language without the prior written consent of Cognos. Cognos and the Cognos logo are trademarks of Cognos ULC (formerly Cognos Incorporated) in the United States and/or other countries. IBM and the IBM logo are trademarks of International Business Machines Corporation in the United States, or other countries, or both. All other names are trademarks or registered trademarks of their respective companies. Information about Cognos products can be found at www.cognos.com This document is maintained by the Best Practices, Product and Technology team. You can send comments, suggestions, and additions to [email protected] .
Contents
1 2 3 4 INTRODUCTION.......................................................................................................................... 4 IBM COGNOS CONNECTION ....................................................................................................... 4 USING THE SYSTEM.XML FILE .................................................................................................... 4 HOW TO REMOVE A CUSTOM SECTION IN IBM COGNOS CONNECTION FOR ALL USERS........... 5
5 HOW TO REMOVE A CUSTOM SECTION IN IBM COGNOS CONNECTION FOR SPECIFIC USERS, GROUPS, AND ROLES................................................................................................................................ 5 6 7 8 8.1 ADDING A NEW SECTION IN IBM COGNOS CONNECTION ......................................................... 7 HOW TO REMOVE A CUSTOM SECTION IN IBM COGNOS CONNECTION USING URLS ............... 8 APPENDIX A................................................................................................................................ 9 LIST OF SECTION THAT CAN BE HIDDEN ........................................................................................................ 9
Introduction
This document describes how administrators can add and hide specific sections within the IBM Cognos Connection UI. Using the system.xml file, parameters can be added to add or remove UI components for all users or for specific users, groups, and roles.
IBM Cognos Connection provides some easy and quick ways to add custom sections and to remove particular areas in the UI. Removing sections is especially popular as it allows administrators to simplify the end user interface. For example, in the screenshot below, specific sections in the headers were removed providing this much simpler UI for consumers.
The functionality does not end here. A fine level of granularity is available allowing administrators to removing specific links and buttons and replacing them with their links. Finally, an administrator can assign these custom sections to particular users, groups, and roles.
The system.xml file provides a lot of flexibility and control over how administrators can customize the IBM Cognos Connection UI. In this document, we will look at how
to add and remove sections of the UI using this file. The system.xml file is located in the <install-dir>/c8/templates/ps/portal directory.
How to Remove a Custom Section in IBM Cognos Connection for all Users
To remove a specific section in IBM Cognos Connection: Backup the system.xml file located in the <install-dir>/c8/templates/ps/portal directory. Edit the system.xml file. To remove a specific section, append the following parameter. <param name="ui_hide"> <CC_HEADER_MENU_home/> </param> In this case, CC_HEADER_MENU_home is the right-hand side of the IBM Cognos Connection main header. See the following section for a complete list of all of the sections that can be hidden. Note: This setting removes the section of the UI for all users. Refer to the subsequent section for more information on how to do this on a user, group, or role basis. In addition to removing this header, suppose that want to remove all headers, except the portal tabs and the main logo header. Restart the IBM Cognos 8 service for the changes to take effect.
How to Remove a Custom Section in IBM Cognos Connection for Specific Users, Groups, and Roles
It is possible to remove specific sections of the IBM Cognos Connection, but only remove them for specific users, groups, or roles. For example, suppose that I want to remove the Excel button for a particular group of users that I dont want viewing reports in Excel. To do this: In IBM Cognos Connection, browse to a particular user, group, or role. Click on Set Properties for this particular user, group, or role.
Click on the View Search Path link. A pop-up window will appear with an ID. The object ID will appear in this window. In the screenshot below, the ID for this group is: xOkNvbnN1bWVycw_.
Within a system.xml file, define this group. For example, the following syntax shows how I can define multiple groups within this file: <param name="ui_groups"> <group id="g1">xOkNvbnN1bWVycw_</group> <group id="g2">xOm5ldyBncm91cHM6dWlfUjI_</group> <group id="55">xOf5ldyBnc4htcHM6dAlfUjI_</group> </param> Note: If you are using one of the following five groups, you do not need to create a new group.
User Anonymous Description Users who can access IBM Cognos 8 without being ID Anonymous
prompted for authentication Administrators Authenticated Users Query Studio Users Report Studio Users Users who have the administration capability All authenticated users, which includes Administrators, Query Studio Users, and Report Studio Users Users who have the Query Studio capability Users who have the Report Studio capability Administrators Consumers QSUsers RSUsers
Within the same section of the system.xml file, add the following parameters: <param name="ui_hide"> <RV_TOOLBAR_BUTTONS_XLS show="Administrators g1 g2 RSUsers"/> <RV_TOOLBAR_BUTTONS_CSV show="Administrators g1 g2 RSUsers"/> <RV_TOOLBAR_BUTTONS_XLS show="Administrators g1 g2 RSUsers"/> <RV_TOOLBAR_BUTTONS_CSV show="Administrators g1 g2 RSUsers"/> <RV_TOOLBAR_BUTTONS_XLWA show="Administrators g1 g2 RSUsers"/> <RV_TOOLBAR_BUTTONS_singleXLS show="Administrators g1 g2 RSUsers"/> </param> Where the show = are exceptions. More specifically, the users and groups listed above are those users that will see these options. This means that Administrators, g1, g2, and RSUsers will see these options, but all other users will not see these options. Cognos Viewer toolbar for: Administrators, g1, g2, and RSUsers Cognos Viewer toolbar for all other Users
In addition to removing specific sections of IBM Cognos Connection, custom links and buttons can be added in a similar manner. To do this: Edit the system.xml file. To add a custom section to the top right header, add the following parameter: <param name="ui_add"> <CRN_HEADER_OPTIONS>
<item> <url>http://www.google.com</url> <target>_blank</target> <label xml:lang="en">Google</label> <tooltip xml:lang="en">Google</tooltip> <icon>action_search.gif</icon> </item> </CRN_HEADER_OPTIONS> </param> Where CRN_HEADER_OPTIONS is the section where this custom link will appear. Additionally, tooltips, language specific links, and buttons can be added in addition to the links. Restart the IBM Cognos 8 service for these changes to take effect.
In addition to making these changes through the system.xml file, users can remove these headers and toolbars using URLs. In particular, the following URL parameter, &ui=<list of header to list>, can be used to selectively hide any or all of the following header items. For example, to remove all of the headers and toolbars, append &ui=h1h2h3h4 to the end of a IBM Cognos Connection URL. Any combination of titles (t1, t2, t3, t4), menus (m1, m2, m3, m4), and headers (h1, h2, h3, h4), shown below, can be used. h1 h2 h3 h4 t t t t m1 m2 m3 m4
Notes: This only applies within IBM Cognos Connection or IBM Cognos Viewer. A header contains both a title and a menu. For example, &ui=h1 will perform the same actions as &ui=t1m1. When viewing a report, to remove all headers and toolbars, simply append this parameter to the end of the URL:
8
8.1
Appendix A
List of Section That Can be Hidden
Description The IBM Cognos Connection top header (h1) Left-hand side of the IBM Cognos Connection top header (h1) Right-hand side of the IBM Cognos Connection top header (h1) Report Studio link Query Studio link Metric Studio link Event Studio link Analysis Studio link IBM Cognos Connection link (IBM Cognos Viewer only)
<CRN_HEADER_TITLE/>
<CRN_HEADER_OPTIONS/>
<CC_HEADER/> <CC_HEADER_TITLE/>
IBM Cognos Connection header (h2) Left-hand side of the IBM Cognos Connection header (h2) Right-hand side of the IBM Cognos Connection header (h2) "home" link
<CC_HEADER_MENU/>
<CC_HEADER_MENU_home/>
10
"return" link (Cognos Viewer only) "preferences" link "logon" link "logoff" link "about" link (Cognos Viewer only) "help" link
<CC_VIEW/> <CC_VIEW_TABS/>
Cognos Connection header (h3) Left-hand side of the Cognos Connection header (h3) that includes the tabs Right-hand side of the Cognos Connection header (h3) that includes the tools "directory" link "capabilities" link "schedule" link "administration" link "content administration" link "portal administration" link "drill-through definition" link
<CC_VIEW_TOOLS/>
<CC_TOOLBAR/>
Cognos Connection header (h4) that includes the path navigation and toolbar Path navigation Toolbar buttons New Job New Folder
11
<CC_TOOLBAR_BUTTONS_newURL/> <CC_TOOLBAR_BUTTONS_newconfigurationFolder/> <CC_TOOLBAR_BUTTONS_newrole/> <CC_TOOLBAR_BUTTONS_newgroup/> <CC_TOOLBAR_BUTTONS_newnamespaceFolder/> <CC_TOOLBAR_BUTTONS_newdataSource/> <CC_TOOLBAR_BUTTONS_newdataSourceConnection/> <CC_TOOLBAR_BUTTONS_newdataSourceSignon/> <CC_TOOLBAR_BUTTONS_newcontact/> <CC_TOOLBAR_BUTTONS_newdistributionList/> <CC_TOOLBAR_BUTTONS_newprinter/> <CC_TOOLBAR_BUTTONS_newimportDeploymentFolder/> <CC_TOOLBAR_BUTTONS_newexportDeploymentFolder/> <CC_TOOLBAR_BUTTONS_import/> <CC_TOOLBAR_BUTTONS_export/> <CC_TOOLBAR_BUTTONS_cut/> <CC_TOOLBAR_BUTTONS_copy/> <CC_TOOLBAR_BUTTONS_paste/> <CC_TOOLBAR_BUTTONS_delete/> <CC_TOOLBAR_BUTTONS_refresh/> <CC_TOOLBAR_BUTTONS_selectall/> <CC_TOOLBAR_BUTTONS_deselectall/> <CC_TOOLBAR_BUTTONS_list/> <CC_TOOLBAR_BUTTONS_detail/> <CC_TOOLBAR_BUTTONS_properties/> <CC_TOOLBAR_BUTTONS_configuration_properties/> <CC_TOOLBAR_BUTTONS_order/>
New URL New Configuration Folder New Role New Group New Namespace Folder New Data Source New Connection New Data Source Signon New Contact New Distribution List New Printer New import deployment folder New export deployment folder New import specification New export Specification Cut Copy Paste Delete Refresh Select all Deselect All List view mode Detailed view mode Current folder properties Configuration folder properties Order
12
Enable Schedule Disable Schedule View Events Page sizes option in configuration tool Search Add a new portal page Edit a page
<CC_DIALOG_HEADER/> <CC_DIALOG_HEADER_help/>
<CC_RUN_OPTIONS_email_attachment/>
Cognos Viewer header Left hand side of the Cognos Viewer header Right hand side of the Cognos Viewer header "return" link "about" link
Not applicable Toolbar options in Cognos Viewer Download toolbar button. Applies when download is enabled. Save toolbar button Save As toolbar button Email toolbar button Run toolbar button
13
HTML format view button PDF format view button XLS format view button CSV format view button XML format view button Excel 2002 format view Excel 2000 format view Excel 2000 single sheet format view
<SMT_SCOPE_any/>
Any choice from the Scope selection in the Schedule Management tool. Entries I Own choice from the Scope selection in the Schedule Management tool. Public Folders choice from the Scope selection in the Schedule Management tool.
<SMT_SCOPE_entries_i_own/>
<SMT_SCOPE_public_folders/>