CA Service Management

 View Only
  • 1.  make the height of my recent requests configurable

    Posted Aug 27, 2014 02:54 AM

    Hi,

     

    as it is possible to configure the results per page for my recent requests in Catalog it should also be possible, to set the height of the frame itself. Otherwise the frame shows only 11 requests (even if there is a lot more space available) and you have to scroll down to see the rest of the results.

     

    I couldn't find a parameter in the catalogBrowse.xsl to edit it but when you lookup the dom inspector you can see, that there is a height set to this frame. Where can I set this value by myself`?

     

    Regards

    Chris



  • 2.  Re: make the height of my recent requests configurable

    Posted Sep 02, 2014 04:44 AM

    Hi again,

     

    in the dom inspector I found the part where the height is set:

    <div class="x-panel-body" role="presentation" style="height: 275px;" __eventBits="16384">

    <div tabIndex="0" class=" x-grid-panel x-component " id="listpage_grid" style="width: auto; height: 274px; position: relative;" hideFocus="" __listener=" .....

     

    when I set the 2 height attributes to 460/459 than all of my 20 requests are shown without scrolling. But I could find out where these divs are build up. All I could find was the part:

       <!-- commenting for boarstone CA World demo-->

      <div id="listframe"></div>

      <div style="display:none;" id='gwtRefreshDiv'>

            <table class="t" cellpadding="0" cellspacing="0" >

              <tr>

                <td style="padding:0px;">

                  <xsl:call-template name="page_button">

                    <xsl:with-param name="id" select="'gwtRefreshBtn'" />

                    <xsl:with-param name="text" select="$xslcontent/refresh" />

                    <xsl:with-param name="onclick">javascript:refreshRequests()</xsl:with-param>

                  </xsl:call-template>

                </td>        

              </tr>

            </table>

      </div>

     

    Can anybody tell me where the listframe is build up?



  • 3.  Re: make the height of my recent requests configurable
    Best Answer

    Posted Sep 02, 2014 07:48 AM

    Hi Christian,

    as discussed with Samudrala, Srinath (thanks a lot to him) the following midification solves it:

     

    In catalogbrowse.xsl file which is located at ‘USM_HOME\ view\webapps\usm\explorer\request’, you find following code :

    12.8:
    <xsl:variable name="gridHeight">
                  <xsl:choose>
                         <xsl:when test="$layout='1'">455</xsl:when>
                         <xsl:otherwise>340</xsl:otherwise>
                  </xsl:choose>
           </xsl:variable>

    Change the value of 340 to 600 and put the XSL file in customs folder, delete the translets and restart the machine.

     

    12.7
      // START : Variables will be used in the GXT list pages Don't change
      <xsl:call-template name="gridmetadata">
       <xsl:with-param name="xslcontent3" select="$xslcontent3"/>
      </xsl:call-template>
      pageType = "catalogbrowse" ;  <!-- Overridden value of page Type -->
      gridHeight = 325 ;    <!-- Overridden value of grid Height -->
      // End of  GXT list pages meta data  

    Change ‘gridHeight’ value from 325 to 600.



  • 4.  Re: make the height of my recent requests configurable

    Posted Sep 02, 2014 08:20 AM

    Thanks Srinath!

     

    That is exactly what I meant... I tried to apply these changes to the other list (as my pending request etc.) as well but I couldn't find the gridheight attribute in these XSL's. Is it possible to change the height for the other lists similar?

     

    Cheers

    Chris



  • 5.  Re: make the height of my recent requests configurable

    Posted Sep 03, 2014 03:15 AM

    Hi there, I got an answer from Srinath (Thanks again!):

     

    In the following XSL files:

     

    1)catalogpendingaction.xsl

    2)catalogpendingitems.xsl

    3)catalogpastitems.xsl

     

    Search for the tag ‘gridmetadata’ and add ‘gridHeight =600’ below pageType variable as you see in catalogbrowse.xsl

     

    Delete the translets and restart the service.

     

    This worked and now all 20 requests are shown without using the scrollbar.

     

    Cheers Chris