COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: webgeri on 29 Sep 2016 09:38:08 AM

Title: Insert a locked HTMLItem
Post by: webgeri on 29 Sep 2016 09:38:08 AM
Hi All

I inserted a new Tool in the Toolbox.
I edited the files: Toolbox.xml and ToolboxControls.xml and reportsudio_es.xml at webcontent/pat/res folder

The users can use that item, but they can edit and change that code inside.

So...

In which way the new HTMLItem object inserted could be locked by default?

These are the codes I insert in the files:

Toolbox.xml
<listItem controlRef="NewLogo" category="" idsLabel="IDS_EL_NewLogo" idsTooltip="IDS_EL_NewLogo" smallIcon="HTMLNewLogoItem.gif"/>

ToolboxControls.xml
<!-- New Logo Item -->
      <HTMLItem id="NewLogo">
          <dataSource>
                <staticValue>
                    &#60;style&#62;
                        .mainViewerTable {
                          background-image:url("../schemas/images/NewLogo.png") !important;
                          background-position: left top !important;
                          background-repeat: no-repeat !important;
                          background-color:#FFF !important;
                        }
                    &#60;&#47;style&#62;
                </staticValue>
            </dataSource>
      </HTMLItem>

reportsudio_es.xml
<string id="IDS_EL_NewLogo">Use New Logo</string>

Cheers, Alejandro