I would like to ask if there is any Nodes or Scripting that give me a Pdf Report based on highlighting.
For example, i Have a table has 3 rows and 3 column [ Author: "Smith", "Mike", "Smith" and Title:"Harry Potter", "Star Wars", "Titanic"]. Based On this table I want to highlight Only the name of the Author Smith.
a Highlighting can be produced when you export the table as a report (data to report node) .
once you put the data on the layout you click into the layout on the table. then you should see below the property editior
in the property editior there is a menu for highlighting where you can set the conditions.
finally in the main menu go to run...view report ... as pdf
please read the manual and do some reporting examples in order to get fit in KNIME.
once you understand how to generate a report, you can refer to the attached screenshot, that shows how to highligt things in a report.. no matter if pdf, web or in an other format..
Now I want to display all the rows in my layout as a string (Paragraph) but the problem is when i put my Column from the Data set view (Generated from my data table) that he gives me just the first row of the table.
For example:
Movie_Title
Actor
Titanic
Jack
star Wars
Smith
in my layout, my report wants him looks like that.
Hello again
I'm not an expert in reporting (yet..) but I figured out a way how to show all data in the report:
If you do it the way you did it only shows the first entry.. why.. I don't know..
how ever, if you drag the toReport73 from the dataset view straight into the empty report, it will occur a window where you can choose the attributes that you wnat to have integrated. THESE ATTRIBUTES OCCURE AS A TABLE..
I then draged the columns under the first column and deleted the other (now empty) columns, so that it is basically a table with one column streching over the whole sheet. and voilà.. all etries are lined up..
hope you can open my workflow and follow my inputs..
Thank you for your help!! its Work and I understand your concept ;)
Could you find a solution how to display a Table of content based on The Title Column? also for the highlight, i only want to highlight 1 or 2 words from the Cell NOT all The cell
( for Example Colum Title Contain: The Association between Smoking and Depression in a Canadian Community
I want to highlight only Smoking and Canadien in the same cell.
I did some experimenting with LIKE "*Smith*" but to no avail unfortunately.. Maybe one of thd Knime Gurus can enlight us..
or we need to file a feature request..
It seems that Highlighting demands the whole content.. and that is not practical..
Yes, I tried and it works well. But the issue here the highlight will be implemented for the whole cell. What I want exactly is to highlight just specific word in the cell (Only Smith)
example: Author Column: Smith, Jack, Broly
I want to highlight just Smith inside the same cell from the same column(Author)
Another idea would be to preprocess your data a little more in KNIME, i.e. put it into HTML with inline CSS to highlight specific words (like I did in the attached screenshot). It may seem a little fiddly, but can be implemented easily and should work.
To get partly highlighted string cells in your BIRT report you can try using HTML with inline CSS:
1. Use a String Manipulation node to find the relevant keywords and then wrap them in HTML with inline CSS. To do that you can use the following function: regexReplace($column1$, "(highlightWord1|highlightWord2|highlightWord3)", "<span style=\"color: #ff0000\">$1</span>"). The first argument is the column you want to work with. The second argument is an enumeration of words to be highlighted. The third argument wraps HTML and CSS around the word found by the regular expression ($1 is a generic way to express the positive matched string).
2. Within BIRT the only thing you have to do is bind the data to a Dynamic Text Item.