Showing posts with label tip. Show all posts
Showing posts with label tip. Show all posts
Wednesday, February 11, 2015
Tip Remove Disable Edit Option Mode For wcdf CDE Files in Pentaho 5 x Production Community Server
Hi Guys,
Below tip is used for disable Edit Mode of CDE dashboards ..
When this is useful ?
CASE 1 :
If you are not going for Embedding BI to integrate the CDE dashboards.
CASE 2:
If you dont want your end user to open the CDE file to view the CODE.. If you are using the Server itself in your end client location he/she also may not need all these except logging into the server and see the dashboards...
For doing this.. i.e., to disable the Edit mode of CDE dashboards, you just need to comment below code in plugin.xml file of pentaho-cdf-dd folder.
File location : /home/sadakar/softwares installed/Pentaho/biserver-ce/pentaho-solutions/system/pentaho-cdf-dd
<!--
<operation>
<id>EDIT</id>
<perspective>wcdf.edit</perspective>
</operation>
-->
Sample Image:

NOTE: As it is a configuration file, you need to restart the server once the changes done to it.
Another Imp NOTE:
As C-Tools(CDE,CDF,CDA) are uneatable from Marketplace, and if you go for any upgrade of them then you might lost this configuration.. what itll do internally when you upgrade to new versions of C-Tools, internally itll uninstall the plug-ins and then download the new.. hence as you will get a fresh copy you there might be a chance of losing your settings.. This is not tested..
Thank you :-)
Sadakar
BI developer
Pentaho/Jasper/Talend ETL
Below tip is used for disable Edit Mode of CDE dashboards ..
When this is useful ?
CASE 1 :
If you are not going for Embedding BI to integrate the CDE dashboards.
CASE 2:
If you dont want your end user to open the CDE file to view the CODE.. If you are using the Server itself in your end client location he/she also may not need all these except logging into the server and see the dashboards...
For doing this.. i.e., to disable the Edit mode of CDE dashboards, you just need to comment below code in plugin.xml file of pentaho-cdf-dd folder.
File location : /home/sadakar/softwares installed/Pentaho/biserver-ce/pentaho-solutions/system/pentaho-cdf-dd
<!--
<operation>
<id>EDIT</id>
<perspective>wcdf.edit</perspective>
</operation>
-->
Sample Image:

NOTE: As it is a configuration file, you need to restart the server once the changes done to it.
Another Imp NOTE:
As C-Tools(CDE,CDF,CDA) are uneatable from Marketplace, and if you go for any upgrade of them then you might lost this configuration.. what itll do internally when you upgrade to new versions of C-Tools, internally itll uninstall the plug-ins and then download the new.. hence as you will get a fresh copy you there might be a chance of losing your settings.. This is not tested..
Thank you :-)
Sadakar
BI developer
Pentaho/Jasper/Talend ETL
Tuesday, February 10, 2015
Tip Pie or Bar Chart No visulization when the sql result is having all 0 values in Jasper iReport
Hi Guys,
Recently I came across a situation on plotting the 0 values result set on a pie chart and failed to produce the chart with out leaving any message.
Alternatively I have shown a message saying that "All the values in the result set are zero so can not plot the visualization".
Of course, this is not a big matter to blog but I can say that this is a best practice in report designing and would like narrate for the one who wish to follow best practices.
Your end-client can easily understand when the chart is having all zero values.
Example :
Query : SELECT field1, field2, field3 FROM dummyTable
Output :
field1 field2 field3
---------- --------- ---------
0 0 0
For instance assume you are showing data on pie chart and given expressions in 3 different series lets say "series1", "series2" , "series3".
Now, if you see the preview of the report, you will be getting nothing in output as your query resultset has all values as 0
Drag and drop the "Static Text Field" over the chart from palette section and write your message(message is : All values are zero so can not plot the visualization) and Print this field when ever the values are zero.
For doing this, you have to Write similar like below expression for "Static Text Fields" PrintWhenExpression
($F{field1}==0) && ($F{field2}) && ($F{field3})
Observation or Preview.
Now select some input controls for which you will get result set 0 .. You will get the below similar like output.

Thats it... When ever your query result set is having all 0s you will be displaying message saying that can not plot visualization.
Sadakar
BI developer
Recently I came across a situation on plotting the 0 values result set on a pie chart and failed to produce the chart with out leaving any message.
Alternatively I have shown a message saying that "All the values in the result set are zero so can not plot the visualization".
Of course, this is not a big matter to blog but I can say that this is a best practice in report designing and would like narrate for the one who wish to follow best practices.
Your end-client can easily understand when the chart is having all zero values.
Example :
Query : SELECT field1, field2, field3 FROM dummyTable
Output :
field1 field2 field3
---------- --------- ---------
0 0 0
For instance assume you are showing data on pie chart and given expressions in 3 different series lets say "series1", "series2" , "series3".
Now, if you see the preview of the report, you will be getting nothing in output as your query resultset has all values as 0
Drag and drop the "Static Text Field" over the chart from palette section and write your message(message is : All values are zero so can not plot the visualization) and Print this field when ever the values are zero.
For doing this, you have to Write similar like below expression for "Static Text Fields" PrintWhenExpression
($F{field1}==0) && ($F{field2}) && ($F{field3})
Observation or Preview.
Now select some input controls for which you will get result set 0 .. You will get the below similar like output.

Thats it... When ever your query result set is having all 0s you will be displaying message saying that can not plot visualization.
Sadakar
BI developer
Subscribe to:
Posts (Atom)