Report Studio has a number of annoying default settings, using legacy charts instead of the new and improved ones. While RS should save your settings in a cookie, in my experience it doesn’t always remember them. So instead of constantly changing the settings, I find it easier to change the XML sheet controlling the defaults.
Open ..webcontent\pat\profiles\profile_professional.xml
The file is unfortunately sparse. Most of the settings I change don’t appear. Fortunately, we can guess at them.
Unsetting the legacy charts is easy:
<setting name="UseLegacyCharting" defaultValue="false"/>
When working with dimensional data, Cognos has a nasty habit of aliasing MUNs. You drag a MUN into an exxpression and instead of showing you the full value ([Cube].[Dim].[Hier].[Level]->[all].[whatever]) it aliases it to [whatever] and creates a new data item on the report. To turn that off add the following line:
<setting name="AliasMUNs" defaultValue="false"/>
Also when working with dimensional data, if you drag in a member, or level or a set, it will create what’s called an “extended data item”. Once it’s created, you can’t modify it. To disable that behaviour on an existing report go to File->Report Properties-> uncheck Always create extended data items. Add the following line to disable it by default.
<setting name="CreateExtendedDataItemsForNewReports" defaultValue="false"/>
Animated windows annoy me as I’m often connecting remotely to help developers:
<setting name="EnableAnimation" defaultValue="false"/>
While I like the new charts, the preview is annoying:
<setting name="DisableDesignViewChartPreview" defaultValue="false"/>
The following settings are normally hidden. They may be hidden for a reason, but I use them constantly and have never had a problem. Maybe they’re features in development?
Another annoyance is the calculated member classes. When a query expression item is dragged into a crosstab, the node uses the class Crosstab member cell (calculated).
<setting name="UseCalculatedMemberClasses" defaultValue="false"/>
When building reports I occasionally need to switch between Page Design and Page Structure. Having to click on View then “Page Structure” takes too long; wouldn’t it be easier if there were buttons on the toolbar like the following:
<setting name="ShowViewButtons" defaultValue="true"/>
Do you use table styles? Do you ever wish you could apply the styles to crosstabs?
<setting name="ShowCrosstabTableStyleOptions" defaultValue="true"/>
The next one isn’t incredibly useful, but nice if you like seeing icons in the property sheet:
<setting name="showLabelSmallIcons" defaultValue="true"/>
Forget the tiny icons, do you ever wish you could have the Business Insight style propertysheet in Report Studio?
<setting name="UsePropertySheet2" defaultValue="true"/>
As always, whenever modifying any Cognos internal file, make sure to back up the original file. You will need to delete your temporary files (remember to uncheck “Preserve Favorites website data”) before these take effect.
What if you want set your own palette?
I don’t think there’s a way to set the default palette of a chart using this. Whenever you set a palette on a chart, it simply copies the XML from ReportPresets.xml. When the chart is first created it doesn’t have any palette values in the XML, so Cognos uses the default palette.
http://www.ibm.com/developerworks/data/library/cognos/infrastructure/cognos_specific/page571.html
NIce as always paul..ty for sharing 🙂
cheerz
Great stuff!
Have you found a way to add the Tabular view to the menu bar which was removed in 8.4?
That is actually what prompted me to go poking through the files in the first place. As far as I can tell the layout of the menu bars is set by JavaScript embedded in rsapp.htm. The file is obfuscated – everything is difficult to read. The file also changes with every version and fix pack meaning any changes would have to be repeated on upgrade.
That being said, various third party tools do add menu items to RS, so I’m convinced there has to be another way besides modifying the file itself. I just haven’t found it yet.
Paul, great post!
From time to time I will add an element to a report to aid in filtering and then hide it. If I want to modify that element in the future I have to select View > Visual Aids > Show hidden objects.
It would be nice if the default for “Show hidden objects” was enabled by default. Any thought where that might be?
Show hidden is:
<setting name="ShowHidden" defaultValue="true"/>
Just paste that under the AdornmentsContainerSelectors row.
Full list for that menu is:
Hi Paul – this is a very interesting post and we could definitely benefit from some of these settings.
The issue I am having is the setting “showLabelSmallIcons” does not work – is there something extra I have to do? Thanks!
Which version of Cognos are you using?
Version 10.1
Great post. This information is hard to find anywhere else. What about the Automatically populate Values List Option in Report Studio in 10.1? Does anyone know the XML to change that to default to No?
Looks like
setting name="AutoSelectValues" defaultValue="false"/
is what you need.I am running an instance of Cognos 10.1.1 and modified the file in question and that is not working for me, is there another step that I am missing?
I think that profile_bua_standalone covers advanced, but I haven’t had a chance to check.
First thing to check. Are you putting the values under RSCustomizations/defaultSettings? In my setup, I have
between AdornmentsContainerSelectors and ChartTypeConfigList.
Have you flushed your cache? The browser may have cached the old version. Do ctrl-shift-delete, and remember to uncheck “Preserve favorites”. Hopefully the next time you open RS you’ll see the changes.
Thanks Paul, clearing the cache was the missing step.
Hi Paul, does the same file apply for changing the defaults for Business Insight/Workspace Advanced?
Dear Champ,
I have created a column chart with 2 data items (id in category axis , measure in y axis). Requirement is to format the measure in HH:MM, i am able to do that and graph is plotted in required format. but Y axis labels are still showing 100,200,300 rather than showin in HH:MM. I have tried data format option but nothing working out. I am able to complete this with legacy chart(bar chart) but not with default chart.I am using Cognos 10.1.1
Paul,
If you haven’t tired of this thread yet, I have one more for your consideration. When dragging the Table tool to a report, the default action for our authors is to uncheck the Table Style property ‘Maximize width’. Is a way to make that the default setting?
That’s a hard one. Tables are actually generated through JavaScript. It looks like it’s hardcoded into rsapp.htm. Open that in notepad++ (or the text editor of your choice) and search for “tb”. There are a few instances of what looks like JS setting the width of something to 100%. Change those as needed, but make sure you backup rsapp first!
Hi, Is there a way to disable the property “Generated SQL” under report studio — query explorer — query subject –> properties — data — Generated SQL.
Not that I Can see, it looks like this is hardcoded into the rsapp. You might be able to figure out where the elements are in the html file, but it’s a pain to hack.
Hi !
the showLabelSmallIcons options does work with the 10.2 version.
Or i miss something ?
No, you’re not missing something. It looks like it doesn’t work in this version.
Hi Paul , First of all tks for sharing this interesting post, I wanna know if there’s possible to customize our own tables style. I wanna be able to choose my own table style when I right click on the table instead of Accountant 1, 2 etccccc
If so which files I have to focus on ? in which folder?path?
My Cognos Version is 10.2.1. Thank you in avance for your feedback
Hi Yann,
You can add or modify the table styles. Check the file
..\webcontent\pat\res\TableStyles.xml
The table styles are in there. You can create a new one there, then add a row in reportstudio_en.xml
My Style
Hi Paul,
What are all the steps to add a chart pallette to the “Chart pallette presets” toolbar icon? Thanks in advance.