If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

Insert a locked HTMLItem

Started by webgeri, 29 Sep 2016 09:38:08 AM

Previous topic - Next topic

webgeri

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