Ocultar mensagem "Web Ad Query and Reporting has been repace by the new Interactive Reporting Client. It is privided as a convenience but will no longer be enhanced or offically." do WAQR no Pentaho BA 5.2 CE
Autor: cjrocha | Publicado: 2014-12-22T21:41:00-02:00


O WAQR é um recurso para criação de relatórios Ad Hoc que compõe a solução Pentaho BA. Assim como na versão 4.x, o WAQR passou a vir com a mensagem de advertência "Web Ad Query and Reporting has been repace by the new Interactive Reporting Client. It is privided as a convenience but will no longer be enhanced or offically.", informando sobre a descontinuidade deste recurso.
O propósito deste post, é ocultar a referida mensagem para possibilitar o funcionamento do Pentaho em um ambiente de produção, com uma aparência mais limpa, amigável.


Segue abaixo uma demonstração de como fica a aparência default do WAQR após sua instalação através do Marketplace.





Para ocultar esta mensagem, é bem simples. Basta fazer um backup do arquivo que contem a mensagem, e excluir as linhas referentes à mensagem de advertência.
1. Parar o serviço do Pentaho BA.
2. Faça o backup do arquivo.
~# cp ./biserver-ce/pentaho-solutions/system/waqr/resources/waqr.html ./biserver-ce/pentaho-solutions/system/waqr/resources/waqr.html.bkp
3. Edite o arquivo "./biserver-ce/pentaho-solutions/system/waqr/resources/waqr.html" e localize os comentários "BEGIN FOOTER CONTENT" e "END FOOTER CONTENT". Entre estes comentários, comente também o código conforme destacado abaixo. Altere também o tamanho do table para 50% para alinhar o "combobox do tipo de preview" e os "botões", à direita, no canto inferior da tela.
&lt;!-- ======================================================&nbsp;&nbsp; ==&nbsp;&nbsp; BEGIN FOOTER CONTENT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ==&nbsp;&nbsp;&nbsp;&nbsp; ====================================================== --&gt;&lt;div id="footer"&gt;&nbsp; &lt;table width="50%;" border="0" align="right" cellpadding="0" cellspacing="0"&nbsp;&nbsp;&nbsp; &lt;tr&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td id='busyContainer' style='width:30%;'&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/td&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!--&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td valign="middle"; id="waqrDeprecatedAlert"&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;table width="460px" style="background-color: #fffdd5; border-style: solid; border-color: #dcb114; border-width= 1px; font: normal .70em Tahoma, 'Trebuchet MS', Arial"&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;tr&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;img src="resources/images/warning.png"/&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/td&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Web Ad Hoc Query and Reporting has been replace by the new Interactive Reporting client.&lt;br/&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; It is provided as a convenience but will no longer be enhanced or offically supported by Pentaho.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/td&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/tr&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/table&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/td&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td id="previewFormatPrompt" nowrap style="width:12ex;white-space:nowrap; font: normal .85em Tahoma, 'Trebuchet MS', Arial;" valign="middle"&gt;&lt;!-- Preview As:&amp;nbsp; --&gt;&lt;/td&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td id="previewTypeContainer"&gt;&lt;/td&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td id="previewContainer"&gt;&lt;/td&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td&gt;&lt;div style='width:30px'&gt;&lt;/div&gt;&lt;/td&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td id="backContainer"&gt;&lt;/td&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td id="nextContainer"&gt;&lt;/td&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td&gt;&lt;div style='width:30px'&gt;&lt;/div&gt;&lt;/td&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td id="saveContainer"&gt;&lt;/td&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td id="saveAsContainer"&gt;&lt;/td&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td style='padding-right:15px;' id="cancelContainer"&gt;&lt;/td&gt;&nbsp;&nbsp;&nbsp; &lt;/tr&gt;&nbsp; &lt;/table&gt;&lt;/div&gt;&lt;!-- ======================================================&nbsp;&nbsp; ==&nbsp;&nbsp; END FOOTER CONTENT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ==&nbsp;&nbsp;&nbsp;&nbsp; ====================================================== --&gt;
4. Inicie o serviço do Pentaho BA e veja se o resultado ficará conforme a ilustração abaixo.