PDA

View Full Version : How to remove the background button



jerin
07-16-2007, 12:42 PM
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

rhasija
10-17-2007, 04:04 PM
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.

caiomsouza
08-03-2009, 10:31 AM
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:




<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:




<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>

caiomsouza
08-03-2009, 10:39 AM
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:




<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:




<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>