Cognos Analytics

Cognos Analytics

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

 View Only
Expand all | Collapse all

Resizing of Search & Select prompt in Cognos 11.1

  • 1.  Resizing of Search & Select prompt in Cognos 11.1

    Posted Wed June 26, 2019 06:27 AM
    Hi All,

    I am new to Cognos Analytics 11.1 and I created  report with around 6 different Search & Select prompts.I need to resize the Search & select prompt default size,I try with the below script,but not working.

    html 1 (before the prompt):
    <div id="MyPrompt">

    html 2 (after the prompt):

    <script  type="text/javascript">
    setTimeout(function(){
      var e=document.getElementById('MyPrompt');
      var block1 = e.getElementsByTagName('select')[0];
      block1.style.width='250';
      var block2 = e.getElementsByTagName('select')[1];
      block2.style.width='250';
    },100);
    </script>

    Could please anyone help me on this.

    Thanks,
    Ravikanth

    ------------------------------
    Ravikanth Edupuganti
    ------------------------------

    #CognosAnalyticswithWatson


  • 2.  RE: Resizing of Search & Select prompt in Cognos 11.1

    Posted Thu June 27, 2019 08:39 AM

    @Ravikanth Edupuganti

    If you are using the non-interactive viewer, the Javascript in the below technote will work : (I tested it on CA 11.1.1)

    Use the JS under the Heading Cognos 10
    https://www-01.ibm.com/support/docview.wss?uid=swg21341018



    ------------------------------
    DENNY NAREZNY
    ------------------------------