Hitachi Vantara Pentaho Community Forums
Results 1 to 4 of 4

Thread: How to remove the background button

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2007
    Posts
    17

    Default How to remove the background button

    Hi ,
    I am using Pentaho 1.2 . While running the report there is a a button called 'Background'. I want to remove this button. How i can do this. Which jsp or java file i have to edit.
    If anybody come to know about this please let me know.
    Thanks in advance
    Jerin

  2. #2
    rhasija Guest

    Default

    Hi Jerin,

    There's a file called DefaultParameterForm.xsl, that has following snippet of code:

    <input type="button" class="portlet-form-button">
    <xsl:attribute name="value">Run in Background</xsl:attribute>
    <xsl:attribute name="onClick">doRun("<xsl:value-of select="/filters/id" />", '<xsl:value-of select="/filters/action"/>', '<xsl:value-of select="/filters/target"/>', true);</xsl:attribute>
    <xsl:attribute name="id">run2button<xsl:value-of select="/filters/id" /></xsl:attribute>
    </input>

    Remove that code and see how it goes.

    Personally, I am not sure why you would like to remove the button?

    Ravi H.

  3. #3

    Default Como remover o "Run in background button"?

    Como remover o "Run in background button"?

    Edite o arquivo chamado:

    DefaultParameterForm.xsl

    Na pasta:

    pentaho-solutions\system\custom\xsl\


    A forma encontrada para remover é a seguinte:


    Altere o input type para hidden assim o campo continua existindo porém o usuário
    não precisa escolher.

    Por padrão o valor é sempre NO, para não rodar em background.

    Não existe como remover tudo, por que ele precisa.

    Antes:

    Code:
                          <fieldset class="parameter_fieldset">
                                  <legend>
                                      Run in Background
                                  </legend>
    
                                  <input id="run_as_background_yes" name="run_as_background" class="portlet-form-field" value="Yes" type="radio"/>
                                  <span class="portlet-form-field-label">Yes</span>
                                  <input name="run_as_background" class="portlet-form-field" value="No" checked="checked" type="radio"/>
                                  <span class="portlet-form-field-label">No</span>
                                  
                                </fieldset>
    Depois:

    Code:
                           <fieldset class="parameter_fieldset">
                                  <legend>
                                      Clique OK para rodar
                                  </legend>
    
                                  <input id="run_as_background_yes" name="run_as_background" class="portlet-form-field" value="Yes" type="hidden"/>
                                  <span class="portlet-form-field-label"></span>
                                  <input name="run_as_background" class="portlet-form-field" value="No" checked="checked" type="hidden"/>
                                  <span class="portlet-form-field-label"></span>
                                  
                           </fieldset>

  4. #4

    Default How to remove the "Run in background button"?

    How to remove the "Run in background button"?

    Edit the file called:

    pentaho-solutions\system\custom\xsl\DefaultParameterForm.xsl

    Probably there are a lot of ways to do it, but I did like this:

    Changed the input type to "hidden" and deleted the "Yes" and "No" text, then
    changed the text to "Clique OK para rodar" a friendly Brazilian way to tell the user "Click OK to run".


    Before:

    Code:
                          <fieldset class="parameter_fieldset">
                                  <legend>
                                      Run in Background
                                  </legend>
    
                                  <input id="run_as_background_yes" name="run_as_background" class="portlet-form-field" value="Yes" type="radio"/>
                                  <span class="portlet-form-field-label">Yes</span>
                                  <input name="run_as_background" class="portlet-form-field" value="No" checked="checked" type="radio"/>
                                  <span class="portlet-form-field-label">No</span>
                                  
                                </fieldset>
    After:

    Code:
                           <fieldset class="parameter_fieldset">
                                  <legend>
                                      Clique OK para rodar
                                  </legend>
    
                                  <input id="run_as_background_yes" name="run_as_background" class="portlet-form-field" value="Yes" type="hidden"/>
                                  <span class="portlet-form-field-label"></span>
                                  <input name="run_as_background" class="portlet-form-field" value="No" checked="checked" type="hidden"/>
                                  <span class="portlet-form-field-label"></span>
                                  
                           </fieldset>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.