Gerhard,
You are right.
In the IBM docs the term Report Object toolbar refers to the On-demand toolbar.
My expression was wrong.
For this 2nd application toolbar I just found a written reference: Reporting toolbar.
Our need is to remove the latter from the reports consumed by end users.
2 scenarios:
1) execution via native portal:
your code is correct it deletes the 1st line of the html page carrying the app.toolbar.
2) execution via a parameterized URL:
if your code is present in the report then do not forget to add &ui_toolbar=true at the end of the URL
Without your code, it would therefore be enough to leave &ui_toolbar=false (default) provided that the report is only used in context 2)
To just "whiten" the Reporting toolbar line we use a javascript which was provided to us by IBM a few years ago and which we adapted :
define(function() {
"use strict";
function Control() {
};
Control.prototype.initialize = function(oControlHost, fnDoneInitializing) {
fnDoneInitializing();
};
Control.prototype.show = function(oControlHost) {
// Use brute force timed loop to check for their presence as Apptoolbar loaded after page load by ajax
var loopCounter = 1;
function timedLoop() {
setTimeout(function () {
//hide Apptoolbar
var myDivs = document.getElementsByClassName('clsAppToolbar');
for (var i=0; i<myDivs.length; i++) {
myDivs[i].style.display="none";
};
if (myDivs.length >0) { loopCounter = 10; } else { loopCounter++; }
if (loopCounter < 10) { timedLoop(); }
}, 250)
}
timedLoop();
};
return Control;
});
An expression in french : « échange de bon procédé »
Thierry D.
------------------------------
Thierry DAVOINE
------------------------------
Original Message:
Sent: Mon September 02, 2024 11:29 AM
From: Andrei Istomine
Subject: Hide properties pane of reporting tool by default
The recommended solution is an Extension where you would simply call that Toggle.
In newer releases ( C12 ) you should be able to control which User Roles/Groups it will be applied for.
------------------------------
Andrei Istomine
Open to work - anything Cognos
https://www.linkedin.com/in/andreii/
Original Message:
Sent: Mon September 02, 2024 02:57 AM
From: Gerhard Lang
Subject: Hide properties pane of reporting tool by default
Hi,
if you open the reporting tool, the properties pane on the right is opened by default. i just want that the pane is closed. i do not want to remove the properties pane, just change the default behaviour (open/closed).
------------------------------
Gerhard Lang
Original Message:
Sent: Sun September 01, 2024 10:01 AM
From: Andrei Istomine
Subject: Hide properties pane of reporting tool by default
Can you please clarify what you are trying to do?
A user should be able to run the Report designer BUT not able to open Properties of any Object in the report?
A screenshot would be useful.
------------------------------
Andrei Istomine
Open to work - anything Cognos
https://www.linkedin.com/in/andreii/
Original Message:
Sent: Thu August 29, 2024 07:29 AM
From: Gerhard Lang
Subject: Hide properties pane of reporting tool by default
Hi,
any chance to hide the properties pane of the reporting tool by default?
Do i need an extension for this? Or can i control this behaviour by by modifying an application file?
In the browser console i can hide it using this command: Application.SharedState.Set(null, "showProperties", false);
------------------------------
Gerhard Lang
------------------------------