hi,
I have a situation where i need to disable the Report toolbar basing on the user. As i am changing the following lines in System.XML it is reflecting to all users.
<!-- Modify the below piece of code -->
<paramÃ, name="ui_hide">
Ã, Ã, Ã, Ã, Ã, Ã, <CRN_HEADER/>
Ã, Ã, Ã, Ã, Ã, Ã, <CRN_HEADER_OPTIONS_cc/>
Ã, Ã, Ã, Ã, Ã, Ã, <RV_TOOLBAR_BUTTONS_Save/>Ã,Â
Ã, Ã, Ã, Ã, Ã, Ã, Ã, <RV_HEADER/>
Ã, Ã, Ã, Ã, Ã, Ã, Ã, <RV_HEADER_TITLE/>
Ã, Ã, Ã, Ã, Ã, Ã, Ã, <RV_HEADER_MENU/>
Ã, Ã, Ã, Ã, Ã, Ã, Ã, <RV_HEADER_MENU_return/>
Ã, Ã, Ã, Ã, Ã, Ã, Ã, <RV_HEADER_MENU_about/>
Ã, Ã, Ã, Ã, Ã, Ã, Ã, </param>
How do i apply this disabling effect only to particular users ?
Thanks
Did you read the board rules? It's all described in the ReportNet documentation
Hi,
Yup i looked into the documentation, and more over one thing i want to say regarding the Rules. Generally people post to the forums as its need to be addressed immediately. Some times it might be in documentation but in that pressure there is general tendency of by passsing that. So if you guys know where in the documentation, please post the section. I think it wont take much time.
This is my general idea.
Ok coming to the issue. We can hide the objects in Report net by in two ways
by updating in System.XML ( which reflects to the complete cognos, which is not good practise if the Cognos is in shared environment)
second by URL which is something like this
URL&ui=user_interface_elements_to_hide
eg: &ui=h2m1m3 (which hides, Menu and Tools Menu). Now i want to know can any one tell me about the keywords for icons like (PDF, EXCEL, CSV, WORD ......)
If you know the location of documentation please send the section that will be helpful
Thanks
Here's a direct url to the documentation:
http://localhost/crn/documentation/en/ug_cra_cstm_cc2.html#1097947
It's under "Customizing Cognos Connection" in the documentation for "Administering ReportNet"
Hi,
This customization applies to the Cognos Connection. Is there any documentaion describes the customization of Report Viewer. when I am executing the report from Cognos Connection, along with the Report Viewer, report's Name is also coming. How can I customize this.
Thnx.
Read further up the documentation.... It's all explained there..
Hi,
The document describes on hiding the toolbar as a whole tb=0 from URL , as i am not permitted to touch anything in system.XML. How do i achieve the hiding individual icons (PDF,Excel, Email ...) using URL method
Thanks
You can do it by adding it to the url but... if you want to make it permanent, system.xml is the only place to do this...
Add an HTML element to your report page and add:
<style>
.topRow { display: none }
</style>
This will remove the entire header.. buttons and all..
In this case you could also add it to your CSS file...
Hi,
Thanks for that info, but i want to hide only three icons in the toolbar .. RUN, SAVE AS, EMAIL . This i dont want to apply in system.xml, as it effects entire cognos. I want too apply hide for the above icons at the run time of the report view
Thanks
Nearly the same thing:
Add an HTML element and add:
<script language=javascript>
function hideit(id) {
if (document.getElementById) { // DOM3 = IE5, NS6
Ã, Ã, document.getElementById(id).style.display = 'none';
}
else {
Ã, Ã, if (document.layers) { // Netscape 4
Ã, Ã, Ã, document.id.display = 'none';
Ã, Ã, }
Ã, Ã, else { // IE 4
Ã, Ã, Ã, document.all.id.style.display = 'none';
Ã, Ã, }
}
}
hideit('Run');
hideit('Save');
hideit('ReportViewSave');
hideit('Send');
</script>
Hi,
I executed the script , I just created a blank report and copied the script into HTML tag. When i tried to execute it is giving javascript error
"Run time error occurred ........... Object Required ........ "
Here is the XML of the report
<report xml:lang="en-us" xmlns="http://developer.cognos.com/schemas/report/1/"><!--RS:1.1-->
<layoutList>
<layout>
<pageSet>
<page name="Page1">
<pageBody><HTMLItem>
<HTML><script language="JavaScript">
function hideit(id) {
alert(document.getElementById);
if (document.getElementById) { // DOM3 = IE5, NS6
document.getElementById(id).style.display = 'none';
}
else {
if (document.layers) { // Netscape 4
alert("else");
document.id.display = 'none';
}
else { // IE 4
alert("else");
document.all.id.style.display = 'none';
}
}
}
hideit('Run');
hideit('Save');
//hideit('ReportViewSave');
//hideit('Send');
</script></HTML></HTMLItem>
</pageBody>
</page></pageSet></layout>
</layoutList>
</report>
<script language="JavaScript">
function hideit(id) {
if (document.getElementById) { // DOM3 = IE5, NS6
document.getElementById(id).style.display = 'none';
}
else {
if (document.layers) { // Netscape 4
document.id.display = 'none';
}
else { // IE 4
document.all.id.style.display = 'none';
}
}
}
hideit('Run');
hideit('Save');
</script>
This code works for me...
Ya you didnt copy it correctly or something. You have a popup alert happening in there with no real object assigned to it..
Try copying exactly the code that RNAddict put it above and try again.. It does work.. Trust me :P
Thanks man... it works
i removed the hideit('Save'); then it worked. I am using Cognos 1.1 MR2 .. But i got the result tht i am looking for
Thanks for the great help,
Greetings - first time post. This works in HTML format but any suggestions when running in PDF format?
Hi all
How to disable to report studio icon in Cognos 8.4 Cognos Viewer globally, i couldnot find related item in system. xml file.
Thanks in advance
ub