Qlik Community

QlikView Layout & Visualizations

Discussion Board for collaboration on QlikView Layout & Visualizations.

Not applicable

Writing text from a line as an html file

Hello,

I would like to download from the selected row/rows (by user) the value from the field (html code) and then save it to a file and after that open it as a web page.

I know that I need to write a macro but I can not do this.

Ahtml codesave
A<code>A piece of computer code</code>save
B<code>A piece of computer code 2 </code>save

Regards

7 Replies
hector_munoz_in
Valued Contributor

Re: Writing text from a line as an html file

Hi Paula,

Try something the following:

T1:

LOAD * INLINE [

A, html code, save

A, <code>A piece of computer code</code>, save

B, <code>A piece of computer code 2 </code>, save

];

T2:

LOAD [html code] AS '<!DOCTYPE html>'

RESIDENT T1;

STORE T2 INTO .\html.html (txt);

After this, open the HTML file created.

Regards,
H

Not applicable

Re: Writing text from a line as an html file

Hi,

Thank you for your answer.

Unfortunately, not exactly what I meant.

When I click on 'save', I just want to save the code and then display it on the screen.

hector_munoz_in
Valued Contributor

Re: Writing text from a line as an html file

Hi Paula,

Do you mean you want to extract data forma an HTML format?

Regards,

H

Not applicable

Re: Writing text from a line as an html file

Hi Hector,

I want to save the code <html> from the line as a .html file and then open it on the website.

Regards

Highlighted
hector_munoz_in
Valued Contributor

Re: Writing text from a line as an html file

OK,

Then I would look for in the Qlik Community for pieces of macros that:

Regards,

H

Re: Writing text from a line as an html file

Not applicable

Re: Writing text from a line as an html file

Thank You all for your help.

In Qlikview there are two built-in macros, 'Export' and 'Open URL', they were enough to solve my problem.

Community Browser