Cognos Analytics

Cognos Analytics

Connect, learn, and share with thousands of IBM Cognos Analytics users! 

 View Only
  • 1.  Box Type - None Block applied directly or via a class

    Posted 2 days ago

    Hi all,

    I have a very specific problem which means I have to use the report property Box Type None-Block.

    If I format an object directly with Box Type None Block it is not shown in the rendered report content - which is correct.

    If I create a class that has Box Type None Block, and apply the class to an object it is still rendered.

    Can anyone think why the property applied directly to an object works, but the property applied via a class doesn't?

    I know that Box type None works via a class, so was confused that Box Type None Block doesn't work via a class.

    (I very specifically need Box Type None Block for the problem I have).



    ------------------------------
    Marc Reed
    Reporting Lead
    ------------------------------


  • 2.  RE: Box Type - None Block applied directly or via a class

    Posted 2 days ago

    Hi Marc,

    I think that's a bug. The developer tools show clearly that Cognos sets an invalid value of "display:none block;" ...

    ... whereas directly formatting results in display:none and a non-standard attribute of actualdisplay="block".
    The only workaround I found is seting the property manually:
    1. Create a class in Cognos.
    You need to change at least one attribute, to make sure that Cognos does not delete this class automatically. I chose background-image:none.
    2. Add your own CSS
    To make things easy, I simply added a HTML-Element to my report. This expands the Cognos class I defined in step 1.
    <style>
        .myOwnClass {
            display: none;
        }
    </style>
    It does the job pretty fine. Anyway, I don't think the lack of that proprietary "actualdisplay" attribute will cause any harm.


    ------------------------------
    Thomas Wolf
    BI Professional
    Techniker Krankenkasse
    Hamburg
    ------------------------------



  • 3.  RE: Box Type - None Block applied directly or via a class

    Posted 2 days ago

    Thanks. Good to get confirmation it isn't me (it normally is).
    I'll get it logged as a bug.



    ------------------------------
    Marc Reed
    Reporting Lead
    ------------------------------