Hmm, fill cells width html

I’m new width KNIME,

i have to fill the column html width large html.

Bildschirmfoto 2024-07-31 um 17.25.02

What I need to do?

Thank you for your time

Hey there and welcome to the Forum.

To me it is not clear what you are trying to achieve. Is it possible for you to provide some anonymised input data and the desired output you want to achieve? I’m sure someone will be able to help you out then :slight_smile:

2 Likes

Hey MartinDDDD, for Hey, and for your fast reply!

2 csv files I created:

html in cell empty.csv|attachment (179 Bytes)

html in cell, created manually.csv (4.9 KB)

I make a workflow, here is the link: hartmut_theis/Private – KNIME Community Hub

I hope that you and others, know what I have to do!

Thank you for your time

1 Like

Thanks for the additional information - I think I get it now!

  1. You have a somewhat generic html template that has “placeholders” in it where the text from hte Text for replace column should go
  2. you want to create the html with the respective text in the same row in it

I’ve build a simple prototype:

  1. a String Widget it used to enter the html template - in the template I added the key word <<REPLACE_HERE>> in those places where the text should go in
  2. we pass the data from the CSV with empty html column to an Expressions node, we also connect the red variable port from the String Widget that holds the html
  3. In the Expressions node we overwrite the existing html column and use the following function:
replace($$["string-input"], "<<REPLACE_HERE>>", $["Text for Replace"])

This takes the html template and replaces <<REPLACE_HERE>> with whatever is in column “Text for Replace”

  1. At the top I have shown the general flow how things could progress from there to get it into a text widget: a value selection widget is configured to display the options of text in column Text for Replace, a user can choose one option. The data is then sent to a row filter, where everything else except the row chosen by the user is filtered out, the single row is turned into a variable and send to a Text View node and this node displays the content of the html variable

At the bottom of this Prototype I have turned the latter part into a component - in the composite view you can at the top select the value and everytime you change it the bottom text view gets updated…

Prototype:
html in cell.knwf (140.3 KB)

Overview:

5 Likes

Thank you very much for your kind work MartinDDDD!

I think, yes, you got it!

And, you have an great idea width the String Widget that I write the html into!

Unfortunately: I can’t open the Prototype file: html in cell.knwf (did’t know why)

So that I can look what you have done in the specific nodes.

now I’ll built it for me

thanks … :slightly_smiling_face: :upside_down_face: :slightly_smiling_face:

Hello MartinDDDD,

I can insert the html at the String Widget,

but where I can see the Multi-line editor, and; or have KNIME an HTML wysiwyg?

Thank you, for your, help and time

Once you have configured your widget, right click on the node and go either execute & open view or just open view (if node was executed already).

Then you can see the input and make changes etc…

Thank’s, for your fast, and perfect, reply

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.