Showing posts with label or. Show all posts
Showing posts with label or. Show all posts
Thursday, February 12, 2015
Table Component Tooltip in Pentaho CDE Showing hidden column values as tool tip on 1st column or any column of table component
Hi Guys,
A requirement make you go in-depth of subject. Few days back I have got a requirement to show tool tip on table component column(s).
Id like to thank you to pentaho forum for their support in working with java script/jQuery in achieving this functionality.
Requirement :
Take a single query of 4 columns, hide 4th column and its values on table component and show this hidden column values as tool tip on the first column of table component.
In other words, Using CDA get 4 columns output but get only 1st 3 columns on table component and show the 4th column(hidden column) values as tool tip on the 1st column of table component.
Example Environment :
Pentaho C-Tools of TRUNK version(after 14 version trunk)
Pentaho BA server 5.1.0 stable
PostgreSQL foodmart database for querying purpose.
Here Id like to concentrate on the core part of the example hence design your layout.
What you can learn in this post ?
1. Query component usage.
2. How to store result set in a parameter using query component.
3. How to hide columns using java script/jQuery script on table component.
4. How to make use of tipsy function to show tooltip on table component.
Layout section :
Design as per your requirement
Data source section :
Query 1 :
SELECT employee_id,full_name,gender,position_title from employee limit 10
Sample image
Query output:

Components panel section
Here for this post you need to work out with a parameter, a query component and table component.
first lets have a parameter : Name it as tooltipValues

Query component :
You will be storing the query output in parameter using query component.

Write below Code in PostFetch Expressionof Query Component :
function f2(data){
var tooltipValues = [];
for(var i=0; i <data.resultset.length; i++){
tooltipValues.push(data.resultset[i][3]);
}
alert(tooltipValues);
alert("length="+data.resultset.length);
return tooltipValues;
}
Now the table Component
Add the table component, give a name to it, and the data source for it,(in this example give the same data source i.e., Datasource=query1_table) & the HTML Object here it is Panel_1
Write below code in Post Execution of table component
function myTip()
{
$(th:nth-child(4),td:nth-child(4)).hide();
$(#Panel_1 tr td:first-child).each(
function(index){
$(this).tipsy({title: function(){ return tooltipValues[index][3] ; }});
}
);
}
In the above code
Using hide() function you are hiding the result of 4th column
#Panel_1 is the HTML Object
Using tipsy() function you are showing the 4th column values as tooltip on the 1st column.
td:first-child, you are telling the jQuery to show the tooltip values on 1st column of the table component.
Thats it you are done...!!!
Save the dashboard and see the preview.
Preview/Observations :
Image 1 :

Image 2:

Image-3:
Source Code of this example :
Download here
Thank you for reading this article.
A requirement make you go in-depth of subject. Few days back I have got a requirement to show tool tip on table component column(s).
Id like to thank you to pentaho forum for their support in working with java script/jQuery in achieving this functionality.
Requirement :
Take a single query of 4 columns, hide 4th column and its values on table component and show this hidden column values as tool tip on the first column of table component.
In other words, Using CDA get 4 columns output but get only 1st 3 columns on table component and show the 4th column(hidden column) values as tool tip on the 1st column of table component.
Example Environment :
Pentaho C-Tools of TRUNK version(after 14 version trunk)
Pentaho BA server 5.1.0 stable
PostgreSQL foodmart database for querying purpose.
Here Id like to concentrate on the core part of the example hence design your layout.
What you can learn in this post ?
1. Query component usage.
2. How to store result set in a parameter using query component.
3. How to hide columns using java script/jQuery script on table component.
4. How to make use of tipsy function to show tooltip on table component.
Layout section :
Design as per your requirement
Data source section :
Query 1 :
SELECT employee_id,full_name,gender,position_title from employee limit 10
Sample image


Components panel section
Here for this post you need to work out with a parameter, a query component and table component.
first lets have a parameter : Name it as tooltipValues

Query component :
You will be storing the query output in parameter using query component.

Write below Code in PostFetch Expressionof Query Component :
function f2(data){
var tooltipValues = [];
for(var i=0; i <data.resultset.length; i++){
tooltipValues.push(data.resultset[i][3]);
}
alert(tooltipValues);
alert("length="+data.resultset.length);
return tooltipValues;
}
Now the table Component
Add the table component, give a name to it, and the data source for it,(in this example give the same data source i.e., Datasource=query1_table) & the HTML Object here it is Panel_1
Write below code in Post Execution of table component
function myTip()
{
$(th:nth-child(4),td:nth-child(4)).hide();
$(#Panel_1 tr td:first-child).each(
function(index){
$(this).tipsy({title: function(){ return tooltipValues[index][3] ; }});
}
);
}
In the above code
Using hide() function you are hiding the result of 4th column
#Panel_1 is the HTML Object
Using tipsy() function you are showing the 4th column values as tooltip on the 1st column.
td:first-child, you are telling the jQuery to show the tooltip values on 1st column of the table component.
Thats it you are done...!!!
Save the dashboard and see the preview.
Preview/Observations :
Image 1 :

Image 2:

Image-3:

Source Code of this example :
Download here
Thank you for reading this article.
How to Find the Websites or Blogs that are Copying your Content

The websites or blogs that copy your content are actually committing Black-Hat SEO, which is something that Google punishes sites for. The trouble is that Google does not know who the duplicator is, and so will often punish both sites for duplicate content. This means that if another person copies your content, then they are also dragging your website down with them too. Added to this, is the insult that you have invested time (or money) into your web content, and now somebody else has come along and is stealing it.
Also Read: Tips on How to Have Better SEO Results with Link Building
CopyScape is a very good plagiarism checker
It is good because it has a reasonable mix of economy and quality. The truth is that there are some better plagiarism checkers out there, but they are very expensive when compared to CopyScape. On the other hand, do not let price fool you. There are some plagiarism checkers out there that are far more expensive than CopyScape and yet are not nearly as good as CopyScape.
This is a tool that you can use which will check the search engines for your content. The truth is that if the duplicate (plagiarized) content is not indexed by Google or Bing, then CopyScape is not going to find it. However, if Google or Bing has not indexed your plagiarized content yet, then there should not be any search engine penalizations.
You can check up to 2000 words in one go, and it only costs 5c. Or, you can load a number of text-filled documents into a batch search and it will check them all for you. It keys in on chains of three words. It also has a tolerance of around 5%. This is because some websites are going to have chains of three words that are the same as yours; however, if this occurs for more than 5% of the page, the CopyScape tool will show you a result. This does sometimes produce false positives, but they are few and far between.
CopySentry can stand guard over your content
If you are concerned that people are going to steal your content, then you can have CopySentry run a check on your chosen web pages every week. It is a tool offered by CopyScape, and it means that you will not have to keep running plagiarism checks manually. Also, as you can imagine, there is a small service charge for doing this, but CopyScape allows you to buy credit so that you will not have to make a payment every time it runs a check. CopyScape takes PayPal payments too, so you do not have to worry about entering your card details.
Also Read: Best Way to Easily Find and Remove Broken Links from your Website or Blog
CopyScape free URL searches
Every day you are able to run five free searches on the URLs of your choice. That means that if you were so inclined, you could check 35 pages per week for free. The tool will check the entire page and then show the pages that have been copied by others. If it does find copied content, the results it gives are pretty good. It will show you how many domains have the content, and you can click on the link to see what parts are copied from your website (or content). It will tell you how much of the page has copied content via a percentage, and it will highlight any copied content in red.
Google your own topics to look for plagiarism
When somebody re-writes your content or copies your content and hides it from the plagiarism checkers (it can be done), they are often uncreative in choosing a new title. All you need to do is Google your own page titles to see what turns up. Hopefully, you will see your own page riding high in the search engine results. Look around the search engine for articles with similar titles, and you may just come across your article that has been hidden from the plagiarism checkers.
Also Read: The Top 10 Websites to create free Logo for your Blog
You will have trouble finding spun content
This is true because according to a web crawler and plagiarism checker, if an article has been spun then it is new. Of course, it is not new by human standards, and if you are unlucky enough to read it then you will see that it makes very little sense and that it flows as well as syrup from a coffee filter. Nevertheless, for some reason people still do it, and it is possible to file a cease and desist order if you find content that has been spun from your content because it is still plagiarism.
About Author:
Kate Funk coaches individuals in SEO and business networking skills at Tutortop.
Wednesday, February 11, 2015
C Program to check whether a number is odd or even
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int a;
cout<<"enter the number:";
cin>>a;
if(a%2==0)
cout<<"
Even number";
else
cout<<"
Odd number";
getch();
}
#include<conio.h>
void main()
{
clrscr();
int a;
cout<<"enter the number:";
cin>>a;
if(a%2==0)
cout<<"
Even number";
else
cout<<"
Odd number";
getch();
}
Monday, February 2, 2015
View PowerPoint presentations on your iPad or mobile
authorSTREAM, the PowerPoint sharing platform which recently launched win-iPad contest has come up with an iPad compatible version of presentation output. As mentioned on authorSTREAM blog, all latest presentations are iPad compatible and loads in a HTML player.
This means that now authorSTREAM presentations can be viewed on any non flash browser running on iPad, iPhone or other mobile devices.
Only downside is that iPad output dont have any animations or sound. authorSTREAM claims that they will be adding animation and sound capabilities to iPad output soon.
Labels:
ipad,
mobile,
on,
or,
powerpoint,
presentations,
view,
your
Subscribe to:
Posts (Atom)